11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Do all the work for Automake. -*- Autoconf -*-
16
# This macro actually does too much some checks are only needed if
17
# your package does certain things. But this isn't really a big deal.
19
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
20
# Free Software Foundation, Inc.
22
# This program is free software; you can redistribute it and/or modify
23
# it under the terms of the GNU General Public License as published by
24
# the Free Software Foundation; either version 2, or (at your option)
27
# This program is distributed in the hope that it will be useful,
28
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
# GNU General Public License for more details.
32
# You should have received a copy of the GNU General Public License
33
# along with this program; if not, write to the Free Software
34
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
42
# the ones we care about.
43
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
45
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
46
# AM_INIT_AUTOMAKE([OPTIONS])
47
# -----------------------------------------------
48
# The call with PACKAGE and VERSION arguments is the old style
49
# call (pre autoconf-2.50), which is being phased out. PACKAGE
50
# and VERSION should now be passed to AC_INIT and removed from
51
# the call to AM_INIT_AUTOMAKE.
52
# We support both call styles for the transition. After
53
# the next Automake release, Autoconf can make the AC_INIT
54
# arguments mandatory, and then we can depend on a new Autoconf
55
# release and drop the old call support.
56
AC_DEFUN([AM_INIT_AUTOMAKE],
57
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
58
AC_REQUIRE([AC_PROG_INSTALL])dnl
59
# test to see if srcdir already configured
60
if test "`cd $srcdir && pwd`" != "`pwd`" &&
61
test -f $srcdir/config.status; then
62
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
65
# test whether we have cygpath
66
if test -z "$CYGPATH_W"; then
67
if (cygpath --version) >/dev/null 2>/dev/null; then
68
CYGPATH_W='cygpath -w'
75
# Define the identity of the package.
76
dnl Distinguish between old-style and new-style calls.
78
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
79
AC_SUBST([PACKAGE], [$1])dnl
80
AC_SUBST([VERSION], [$2])],
81
[_AM_SET_OPTIONS([$1])dnl
82
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
83
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
85
_AM_IF_OPTION([no-define],,
86
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
89
# Some tools Automake needs.
90
AC_REQUIRE([AM_SANITY_CHECK])dnl
91
AC_REQUIRE([AC_ARG_PROGRAM])dnl
92
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
93
AM_MISSING_PROG(AUTOCONF, autoconf)
94
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
95
AM_MISSING_PROG(AUTOHEADER, autoheader)
96
AM_MISSING_PROG(MAKEINFO, makeinfo)
97
AM_MISSING_PROG(AMTAR, tar)
100
# We need awk for the "check" target. The system "awk" is bad on
102
AC_REQUIRE([AC_PROG_AWK])dnl
103
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
104
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
106
_AM_IF_OPTION([no-dependencies],,
107
[AC_PROVIDE_IFELSE([AC_PROG_CC],
108
[_AM_DEPENDENCIES(CC)],
109
[define([AC_PROG_CC],
110
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
111
AC_PROVIDE_IFELSE([AC_PROG_CXX],
112
[_AM_DEPENDENCIES(CXX)],
113
[define([AC_PROG_CXX],
114
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
119
# When config.status generates a header, we must update the stamp-h file.
120
# This file resides in the same directory as the config header
121
# that is generated. The stamp files are numbered to have different names.
123
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
124
# loop where config.status creates the headers, so we can generate
125
# our stamp files there.
126
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
127
[# Compute $1's index in $config_headers.
129
for _am_header in $config_headers :; do
134
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
137
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
139
# Copyright 2002 Free Software Foundation, Inc.
141
# This program is free software; you can redistribute it and/or modify
142
# it under the terms of the GNU General Public License as published by
143
# the Free Software Foundation; either version 2, or (at your option)
146
# This program is distributed in the hope that it will be useful,
147
# but WITHOUT ANY WARRANTY; without even the implied warranty of
148
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
149
# GNU General Public License for more details.
151
# You should have received a copy of the GNU General Public License
152
# along with this program; if not, write to the Free Software
153
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
155
# AM_AUTOMAKE_VERSION(VERSION)
156
# ----------------------------
157
# Automake X.Y traces this macro to ensure aclocal.m4 has been
158
# generated from the m4 files accompanying Automake X.Y.
159
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
161
# AM_SET_CURRENT_AUTOMAKE_VERSION
162
# -------------------------------
163
# Call AM_AUTOMAKE_VERSION so it can be traced.
164
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
165
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
166
[AM_AUTOMAKE_VERSION([1.7.9])])
168
# Helper functions for option handling. -*- Autoconf -*-
170
# Copyright 2001, 2002 Free Software Foundation, Inc.
172
# This program is free software; you can redistribute it and/or modify
173
# it under the terms of the GNU General Public License as published by
174
# the Free Software Foundation; either version 2, or (at your option)
177
# This program is distributed in the hope that it will be useful,
178
# but WITHOUT ANY WARRANTY; without even the implied warranty of
179
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
180
# GNU General Public License for more details.
182
# You should have received a copy of the GNU General Public License
183
# along with this program; if not, write to the Free Software
184
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
189
# _AM_MANGLE_OPTION(NAME)
190
# -----------------------
191
AC_DEFUN([_AM_MANGLE_OPTION],
192
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
194
# _AM_SET_OPTION(NAME)
195
# ------------------------------
196
# Set option NAME. Presently that only means defining a flag for this option.
197
AC_DEFUN([_AM_SET_OPTION],
198
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
200
# _AM_SET_OPTIONS(OPTIONS)
201
# ----------------------------------
202
# OPTIONS is a space-separated list of Automake options.
203
AC_DEFUN([_AM_SET_OPTIONS],
204
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
206
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
207
# -------------------------------------------
208
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
209
AC_DEFUN([_AM_IF_OPTION],
210
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
213
# Check to make sure that the build environment is sane.
216
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
218
# This program is free software; you can redistribute it and/or modify
219
# it under the terms of the GNU General Public License as published by
220
# the Free Software Foundation; either version 2, or (at your option)
223
# This program is distributed in the hope that it will be useful,
224
# but WITHOUT ANY WARRANTY; without even the implied warranty of
225
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
226
# GNU General Public License for more details.
228
# You should have received a copy of the GNU General Public License
229
# along with this program; if not, write to the Free Software
230
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
237
AC_DEFUN([AM_SANITY_CHECK],
238
[AC_MSG_CHECKING([whether build environment is sane])
241
echo timestamp > conftest.file
242
# Do `set' in a subshell so we don't clobber the current shell's
243
# arguments. Must try -L first in case configure is actually a
244
# symlink; some systems play weird games with the mod time of symlinks
245
# (eg FreeBSD returns the mod time of the symlink's containing
248
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
249
if test "$[*]" = "X"; then
251
set X `ls -t $srcdir/configure conftest.file`
254
if test "$[*]" != "X $srcdir/configure conftest.file" \
255
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
257
# If neither matched, then we have a broken ls. This can happen
258
# if, for instance, CONFIG_SHELL is bash and it inherits a
259
# broken ls alias from the environment. This has actually
260
# happened. Such a system could not be considered "sane".
261
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
262
alias in your environment])
265
test "$[2]" = conftest.file
271
AC_MSG_ERROR([newly created file is older than distributed files!
272
Check your system clock])
279
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
281
# This program is free software; you can redistribute it and/or modify
282
# it under the terms of the GNU General Public License as published by
283
# the Free Software Foundation; either version 2, or (at your option)
286
# This program is distributed in the hope that it will be useful,
287
# but WITHOUT ANY WARRANTY; without even the implied warranty of
288
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
289
# GNU General Public License for more details.
291
# You should have received a copy of the GNU General Public License
292
# along with this program; if not, write to the Free Software
293
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
298
# AM_MISSING_PROG(NAME, PROGRAM)
299
# ------------------------------
300
AC_DEFUN([AM_MISSING_PROG],
301
[AC_REQUIRE([AM_MISSING_HAS_RUN])
302
$1=${$1-"${am_missing_run}$2"}
308
# Define MISSING if not defined so far and test if it supports --run.
309
# If it does, set am_missing_run to use it, otherwise, to nothing.
310
AC_DEFUN([AM_MISSING_HAS_RUN],
311
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
312
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
313
# Use eval to expand $SHELL
314
if eval "$MISSING --run true"; then
315
am_missing_run="$MISSING --run "
318
AC_MSG_WARN([`missing' script is too old or missing])
324
# Copyright 2001 Free Software Foundation, Inc.
326
# This program is free software; you can redistribute it and/or modify
327
# it under the terms of the GNU General Public License as published by
328
# the Free Software Foundation; either version 2, or (at your option)
331
# This program is distributed in the hope that it will be useful,
332
# but WITHOUT ANY WARRANTY; without even the implied warranty of
333
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
334
# GNU General Public License for more details.
336
# You should have received a copy of the GNU General Public License
337
# along with this program; if not, write to the Free Software
338
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
341
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
342
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
343
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
345
# Of course, Automake must honor this variable whenever it calls a
346
# tool from the auxiliary directory. The problem is that $srcdir (and
347
# therefore $ac_aux_dir as well) can be either absolute or relative,
348
# depending on how configure is run. This is pretty annoying, since
349
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
350
# source directory, any form will work fine, but in subdirectories a
351
# relative path needs to be adjusted first.
353
# $ac_aux_dir/missing
354
# fails when called from a subdirectory if $ac_aux_dir is relative
355
# $top_srcdir/$ac_aux_dir/missing
356
# fails if $ac_aux_dir is absolute,
357
# fails when called from a subdirectory in a VPATH build with
358
# a relative $ac_aux_dir
360
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
361
# are both prefixed by $srcdir. In an in-source build this is usually
362
# harmless because $srcdir is `.', but things will broke when you
363
# start a VPATH build or use an absolute $srcdir.
365
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
366
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
367
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
368
# and then we would define $MISSING as
369
# MISSING="\${SHELL} $am_aux_dir/missing"
370
# This will work as long as MISSING is not called from configure, because
371
# unfortunately $(top_srcdir) has no meaning in configure.
372
# However there are other variables, like CC, which are often used in
373
# configure, and could therefore not use this "fixed" $ac_aux_dir.
375
# Another solution, used here, is to always expand $ac_aux_dir to an
376
# absolute PATH. The drawback is that using absolute paths prevent a
377
# configured tree to be moved without reconfiguration.
379
# Rely on autoconf to set up CDPATH properly.
382
AC_DEFUN([AM_AUX_DIR_EXPAND], [
383
# expand $ac_aux_dir to an absolute path
384
am_aux_dir=`cd $ac_aux_dir && pwd`
389
# Define $install_sh.
391
# Copyright 2001 Free Software Foundation, Inc.
393
# This program is free software; you can redistribute it and/or modify
394
# it under the terms of the GNU General Public License as published by
395
# the Free Software Foundation; either version 2, or (at your option)
398
# This program is distributed in the hope that it will be useful,
399
# but WITHOUT ANY WARRANTY; without even the implied warranty of
400
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
401
# GNU General Public License for more details.
403
# You should have received a copy of the GNU General Public License
404
# along with this program; if not, write to the Free Software
405
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
408
AC_DEFUN([AM_PROG_INSTALL_SH],
409
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
410
install_sh=${install_sh-"$am_aux_dir/install-sh"}
411
AC_SUBST(install_sh)])
413
# AM_PROG_INSTALL_STRIP
415
# Copyright 2001 Free Software Foundation, Inc.
417
# This program is free software; you can redistribute it and/or modify
418
# it under the terms of the GNU General Public License as published by
419
# the Free Software Foundation; either version 2, or (at your option)
422
# This program is distributed in the hope that it will be useful,
423
# but WITHOUT ANY WARRANTY; without even the implied warranty of
424
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
425
# GNU General Public License for more details.
427
# You should have received a copy of the GNU General Public License
428
# along with this program; if not, write to the Free Software
429
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
432
# One issue with vendor `install' (even GNU) is that you can't
433
# specify the program used to strip binaries. This is especially
434
# annoying in cross-compiling environments, where the build's strip
435
# is unlikely to handle the host's binaries.
436
# Fortunately install-sh will honor a STRIPPROG variable, so we
437
# always use install-sh in `make install-strip', and initialize
438
# STRIPPROG with the value of the STRIP variable (set by the user).
439
AC_DEFUN([AM_PROG_INSTALL_STRIP],
440
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
441
# Installed binaries are usually stripped using `strip' when the user
442
# run `make install-strip'. However `strip' might not be the right
443
# tool to use in cross-compilation environments, therefore Automake
444
# will honor the `STRIP' environment variable to overrule this program.
445
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
446
if test "$cross_compiling" != no; then
447
AC_CHECK_TOOL([STRIP], [strip], :)
449
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
450
AC_SUBST([INSTALL_STRIP_PROGRAM])])
453
# Copyright (C) 2003 Free Software Foundation, Inc.
455
# This program is free software; you can redistribute it and/or modify
456
# it under the terms of the GNU General Public License as published by
457
# the Free Software Foundation; either version 2, or (at your option)
460
# This program is distributed in the hope that it will be useful,
461
# but WITHOUT ANY WARRANTY; without even the implied warranty of
462
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
463
# GNU General Public License for more details.
465
# You should have received a copy of the GNU General Public License
466
# along with this program; if not, write to the Free Software
467
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
472
# Check whether the underlying file-system supports filenames
473
# with a leading dot. For instance MS-DOS doesn't.
474
AC_DEFUN([AM_SET_LEADING_DOT],
475
[rm -rf .tst 2>/dev/null
476
mkdir .tst 2>/dev/null
477
if test -d .tst; then
482
rmdir .tst 2>/dev/null
483
AC_SUBST([am__leading_dot])])
485
# serial 5 -*- Autoconf -*-
487
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
489
# This program is free software; you can redistribute it and/or modify
490
# it under the terms of the GNU General Public License as published by
491
# the Free Software Foundation; either version 2, or (at your option)
494
# This program is distributed in the hope that it will be useful,
495
# but WITHOUT ANY WARRANTY; without even the implied warranty of
496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
497
# GNU General Public License for more details.
499
# You should have received a copy of the GNU General Public License
500
# along with this program; if not, write to the Free Software
501
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
505
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
506
# written in clear, in which case automake, when reading aclocal.m4,
507
# will think it sees a *use*, and therefore will trigger all it's
508
# C support machinery. Also note that it means that autoscan, seeing
509
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
513
# _AM_DEPENDENCIES(NAME)
514
# ----------------------
515
# See how the compiler implements dependency checking.
516
# NAME is "CC", "CXX", "GCJ", or "OBJC".
517
# We try a few techniques and use that to set a single cache variable.
519
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
520
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
521
# dependency, and given that the user is not expected to run this macro,
522
# just rely on AC_PROG_CC.
523
AC_DEFUN([_AM_DEPENDENCIES],
524
[AC_REQUIRE([AM_SET_DEPDIR])dnl
525
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
526
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
527
AC_REQUIRE([AM_DEP_TRACK])dnl
529
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
530
[$1], CXX, [depcc="$CXX" am_compiler_list=],
531
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
532
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
533
[depcc="$$1" am_compiler_list=])
535
AC_CACHE_CHECK([dependency style of $depcc],
536
[am_cv_$1_dependencies_compiler_type],
537
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
538
# We make a subdir and do the tests there. Otherwise we can end up
539
# making bogus files that we don't know about and never remove. For
540
# instance it was reported that on HP-UX the gcc test will end up
541
# making a dummy file named `D' -- because `-MD' means `put the output
544
# Copy depcomp to subdir because otherwise we won't find it if we're
545
# using a relative directory.
546
cp "$am_depcomp" conftest.dir
548
# We will build objects and dependencies in a subdirectory because
549
# it helps to detect inapplicable dependency modes. For instance
550
# both Tru64's cc and ICC support -MD to output dependencies as a
551
# side effect of compilation, but ICC will put the dependencies in
552
# the current directory while Tru64 will put them in the object
556
am_cv_$1_dependencies_compiler_type=none
557
if test "$am_compiler_list" = ""; then
558
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
560
for depmode in $am_compiler_list; do
561
# Setup a source with many dependencies, because some compilers
562
# like to wrap large dependency lists on column 80 (with \), and
563
# we should not choose a depcomp mode which is confused by this.
565
# We need to recreate these files for each test, as the compiler may
566
# overwrite some of them when testing with obscure command lines.
567
# This happens at least with the AIX C compiler.
569
for i in 1 2 3 4 5 6; do
570
echo '#include "conftst'$i'.h"' >> sub/conftest.c
573
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
577
# after this tag, mechanisms are not by side-effect, so they'll
578
# only be used when explicitly requested
579
if test "x$enable_dependency_tracking" = xyes; then
587
# We check with `-c' and `-o' for the sake of the "dashmstdout"
588
# mode. It turns out that the SunPro C++ compiler does not properly
589
# handle `-M -o', and we need to detect this.
590
if depmode=$depmode \
591
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
592
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
593
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
594
>/dev/null 2>conftest.err &&
595
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
596
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
597
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
598
# icc doesn't choke on unknown options, it will just issue warnings
599
# (even with -Werror). So we grep stderr for any message
600
# that says an option was ignored.
601
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
602
am_cv_$1_dependencies_compiler_type=$depmode
611
am_cv_$1_dependencies_compiler_type=none
614
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
615
AM_CONDITIONAL([am__fastdep$1], [
616
test "x$enable_dependency_tracking" != xno \
617
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
623
# Choose a directory name for dependency files.
624
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
625
AC_DEFUN([AM_SET_DEPDIR],
626
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
627
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
633
AC_DEFUN([AM_DEP_TRACK],
634
[AC_ARG_ENABLE(dependency-tracking,
635
[ --disable-dependency-tracking Speeds up one-time builds
636
--enable-dependency-tracking Do not reject slow dependency extractors])
637
if test "x$enable_dependency_tracking" != xno; then
638
am_depcomp="$ac_aux_dir/depcomp"
641
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
642
AC_SUBST([AMDEPBACKSLASH])
645
# Generate code to set up dependency tracking. -*- Autoconf -*-
647
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
649
# This program is free software; you can redistribute it and/or modify
650
# it under the terms of the GNU General Public License as published by
651
# the Free Software Foundation; either version 2, or (at your option)
654
# This program is distributed in the hope that it will be useful,
655
# but WITHOUT ANY WARRANTY; without even the implied warranty of
656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
657
# GNU General Public License for more details.
659
# You should have received a copy of the GNU General Public License
660
# along with this program; if not, write to the Free Software
661
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
666
# _AM_OUTPUT_DEPENDENCY_COMMANDS
667
# ------------------------------
668
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
669
[for mf in $CONFIG_FILES; do
670
# Strip MF so we end up with the name of the file.
671
mf=`echo "$mf" | sed -e 's/:.*$//'`
672
# Check whether this is an Automake generated Makefile or not.
673
# We used to match only the files named `Makefile.in', but
674
# some people rename them; so instead we look at the file content.
675
# Grep'ing the first line is not enough: some people post-process
676
# each Makefile.in and add a new line on top of each file to say so.
677
# So let's grep whole file.
678
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
679
dirpart=`AS_DIRNAME("$mf")`
683
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
684
# Extract the definition of DEP_FILES from the Makefile without
686
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
687
test -z "$DEPDIR" && continue
688
# When using ansi2knr, U may be empty or an underscore; expand it
689
U=`sed -n -e '/^U = / s///p' < "$mf"`
690
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
691
# We invoke sed twice because it is the simplest approach to
692
# changing $(DEPDIR) to its actual value in the expansion.
693
for file in `sed -n -e '
694
/^DEP_FILES = .*\\\\$/ {
703
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
704
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
705
# Make sure the directory exists.
706
test -f "$dirpart/$file" && continue
707
fdir=`AS_DIRNAME(["$file"])`
708
AS_MKDIR_P([$dirpart/$fdir])
709
# echo "creating $dirpart/$file"
710
echo '# dummy' > "$dirpart/$file"
713
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
716
# AM_OUTPUT_DEPENDENCY_COMMANDS
717
# -----------------------------
718
# This macro should only be invoked once -- use via AC_REQUIRE.
720
# This code is only required when automatic dependency tracking
721
# is enabled. FIXME. This creates each `.P' file that we will
722
# need in order to bootstrap the dependency handling code.
723
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
724
[AC_CONFIG_COMMANDS([depfiles],
725
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
726
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
729
# Check to see how 'make' treats includes. -*- Autoconf -*-
731
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
733
# This program is free software; you can redistribute it and/or modify
734
# it under the terms of the GNU General Public License as published by
735
# the Free Software Foundation; either version 2, or (at your option)
738
# This program is distributed in the hope that it will be useful,
739
# but WITHOUT ANY WARRANTY; without even the implied warranty of
740
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
741
# GNU General Public License for more details.
743
# You should have received a copy of the GNU General Public License
744
# along with this program; if not, write to the Free Software
745
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
752
# Check to see how make treats includes.
753
AC_DEFUN([AM_MAKE_INCLUDE],
754
[am_make=${MAKE-make}
755
cat > confinc << 'END'
760
# If we don't find an include directive, just comment out the code.
761
AC_MSG_CHECKING([for style of include used by $am_make])
765
# First try GNU make style include.
766
echo "include confinc" > confmf
767
# We grep out `Entering directory' and `Leaving directory'
768
# messages which can occur if `w' ends up in MAKEFLAGS.
769
# In particular we don't look at `^make:' because GNU make might
770
# be invoked under some other name (usually "gmake"), in which
771
# case it prints its new name instead of `make'.
772
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
777
# Now try BSD make style include.
778
if test "$am__include" = "#"; then
779
echo '.include "confinc"' > confmf
780
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
786
AC_SUBST([am__include])
787
AC_SUBST([am__quote])
788
AC_MSG_RESULT([$_am_result])
792
# AM_CONDITIONAL -*- Autoconf -*-
794
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
796
# This program is free software; you can redistribute it and/or modify
797
# it under the terms of the GNU General Public License as published by
798
# the Free Software Foundation; either version 2, or (at your option)
801
# This program is distributed in the hope that it will be useful,
802
# but WITHOUT ANY WARRANTY; without even the implied warranty of
803
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
804
# GNU General Public License for more details.
806
# You should have received a copy of the GNU General Public License
807
# along with this program; if not, write to the Free Software
808
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
815
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
816
# -------------------------------------
817
# Define a conditional.
818
AC_DEFUN([AM_CONDITIONAL],
819
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
820
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
830
AC_CONFIG_COMMANDS_PRE(
831
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
832
AC_MSG_ERROR([conditional "$1" was never defined.
833
Usually this means the macro was only invoked conditionally.])
836
# Add --enable-maintainer-mode option to configure.
839
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
841
# This program is free software; you can redistribute it and/or modify
842
# it under the terms of the GNU General Public License as published by
843
# the Free Software Foundation; either version 2, or (at your option)
846
# This program is distributed in the hope that it will be useful,
847
# but WITHOUT ANY WARRANTY; without even the implied warranty of
848
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
849
# GNU General Public License for more details.
851
# You should have received a copy of the GNU General Public License
852
# along with this program; if not, write to the Free Software
853
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
858
AC_DEFUN([AM_MAINTAINER_MODE],
859
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
860
dnl maintainer-mode is disabled by default
861
AC_ARG_ENABLE(maintainer-mode,
862
[ --enable-maintainer-mode enable make rules and dependencies not useful
863
(and sometimes confusing) to the casual installer],
864
USE_MAINTAINER_MODE=$enableval,
865
USE_MAINTAINER_MODE=no)
866
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
867
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
868
MAINT=$MAINTAINER_MODE_TRUE
873
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
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.67],,
17
[m4_warning([this file was generated for autoconf 2.67.
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'.])])
875
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
877
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
880
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
881
# -----------------------------------------------------------
882
# If this macro is not defined by Autoconf, define it here.
883
m4_ifdef([AC_PROVIDE_IFELSE],
885
[m4_define([AC_PROVIDE_IFELSE],
886
[m4_ifdef([AC_PROVIDE_$1],
892
AC_DEFUN([AC_PROG_LIBTOOL],
893
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
894
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
895
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
896
AC_PROVIDE_IFELSE([AC_PROG_CXX],
898
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
900
dnl And a similar setup for Fortran 77 support
901
AC_PROVIDE_IFELSE([AC_PROG_F77],
903
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
906
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
907
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
908
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
909
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
911
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
913
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
915
[ifdef([AC_PROG_GCJ],
916
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
917
ifdef([A][M_PROG_GCJ],
918
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
919
ifdef([LT_AC_PROG_GCJ],
920
[define([LT_AC_PROG_GCJ],
921
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
922
])])# AC_PROG_LIBTOOL
927
AC_DEFUN([_AC_PROG_LIBTOOL],
928
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
929
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
930
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
931
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
24
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25
# 2006, 2007, 2008 Free Software Foundation, Inc.
26
# Written by Gordon Matzigkeit, 1996
28
# This file is free software; the Free Software Foundation gives
29
# unlimited permission to copy and/or distribute it, with or without
30
# modifications, as long as this notice is preserved.
32
m4_define([_LT_COPYING], [dnl
33
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34
# 2006, 2007, 2008 Free Software Foundation, Inc.
35
# Written by Gordon Matzigkeit, 1996
37
# This file is part of GNU Libtool.
39
# GNU Libtool is free software; you can redistribute it and/or
40
# modify it under the terms of the GNU General Public License as
41
# published by the Free Software Foundation; either version 2 of
42
# the License, or (at your option) any later version.
44
# As a special exception to the GNU General Public License,
45
# if you distribute this file as part of a program or library that
46
# is built using GNU Libtool, you may include this file under the
47
# same distribution terms that you use for the rest of that program.
49
# GNU Libtool is distributed in the hope that it will be useful,
50
# but WITHOUT ANY WARRANTY; without even the implied warranty of
51
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52
# GNU General Public License for more details.
54
# You should have received a copy of the GNU General Public License
55
# along with GNU Libtool; see the file COPYING. If not, a copy
56
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
57
# obtained by writing to the Free Software Foundation, Inc.,
58
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
66
# Complain and exit if this libtool version is less that VERSION.
68
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
70
[m4_fatal([Libtool version $1 or higher is required],
77
# Complain if the absolute build directory name contains unusual characters
78
m4_defun([_LT_CHECK_BUILDDIR],
81
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
89
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
90
AC_BEFORE([$0], [LT_LANG])dnl
91
AC_BEFORE([$0], [LT_OUTPUT])dnl
92
AC_BEFORE([$0], [LTDL_INIT])dnl
93
m4_require([_LT_CHECK_BUILDDIR])dnl
95
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
96
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
97
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
98
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
99
dnl unless we require an AC_DEFUNed macro:
100
AC_REQUIRE([LTOPTIONS_VERSION])dnl
101
AC_REQUIRE([LTSUGAR_VERSION])dnl
102
AC_REQUIRE([LTVERSION_VERSION])dnl
103
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
104
m4_require([_LT_PROG_LTMAIN])dnl
107
_LT_SET_OPTIONS([$0], [$1])
933
109
# This can be used to rebuild libtool when needed
934
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
110
LIBTOOL_DEPS="$ltmain"
936
112
# Always use our own libtool.
937
113
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
938
114
AC_SUBST(LIBTOOL)dnl
940
# Prevent multiple expansion
941
define([AC_PROG_LIBTOOL], [])
947
AC_DEFUN([AC_LIBTOOL_SETUP],
949
AC_REQUIRE([AC_ENABLE_SHARED])dnl
950
AC_REQUIRE([AC_ENABLE_STATIC])dnl
951
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
952
AC_REQUIRE([AC_CANONICAL_HOST])dnl
123
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
124
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
125
dnl aclocal-1.4 backwards compatibility:
126
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
127
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
130
# _LT_CC_BASENAME(CC)
131
# -------------------
132
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
133
m4_defun([_LT_CC_BASENAME],
134
[for cc_temp in $1""; do
136
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
137
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
142
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
146
# _LT_FILEUTILS_DEFAULTS
147
# ----------------------
148
# It is okay to use these file commands and assume they have been set
149
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
150
m4_defun([_LT_FILEUTILS_DEFAULTS],
154
])# _LT_FILEUTILS_DEFAULTS
159
m4_defun([_LT_SETUP],
160
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
953
161
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
162
_LT_DECL([], [host_alias], [0], [The host system])dnl
163
_LT_DECL([], [host], [0])dnl
164
_LT_DECL([], [host_os], [0])dnl
166
_LT_DECL([], [build_alias], [0], [The build system])dnl
167
_LT_DECL([], [build], [0])dnl
168
_LT_DECL([], [build_os], [0])dnl
954
170
AC_REQUIRE([AC_PROG_CC])dnl
955
AC_REQUIRE([AC_PROG_LD])dnl
956
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
957
AC_REQUIRE([AC_PROG_NM])dnl
171
AC_REQUIRE([LT_PATH_LD])dnl
172
AC_REQUIRE([LT_PATH_NM])dnl
959
174
AC_REQUIRE([AC_PROG_LN_S])dnl
960
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
961
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
962
AC_REQUIRE([AC_OBJEXT])dnl
963
AC_REQUIRE([AC_EXEEXT])dnl
966
AC_LIBTOOL_SYS_MAX_CMD_LEN
967
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
970
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
971
_LT_AC_PROG_ECHO_BACKSLASH
175
test -z "$LN_S" && LN_S="ln -s"
176
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
178
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
179
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
180
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
182
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
183
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
184
m4_require([_LT_CMD_RELOAD])dnl
185
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
186
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
187
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
189
_LT_CONFIG_LIBTOOL_INIT([
190
# See if we are running on zsh, and set the options which allow our
191
# commands through without removal of \ escapes INIT.
192
if test -n "\${ZSH_VERSION+set}" ; then
196
if test -n "${ZSH_VERSION+set}" ; then
202
m4_require([_LT_TAG_COMPILER])dnl
203
_LT_PROG_ECHO_BACKSLASH
985
217
# Sed substitution that helps us do robust quoting. It backslashifies
986
218
# metacharacters that are still active within double-quoted strings.
987
Xsed='sed -e 1s/^X//'
988
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
219
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
990
221
# Same as above, but do not quote variable references.
991
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
222
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
993
224
# Sed substitution to delay expansion of an escaped shell variable in a
994
225
# double_quote_subst'ed string.
995
226
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
228
# Sed substitution to delay expansion of an escaped single quote.
229
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
997
231
# Sed substitution to avoid accidental globbing in evaled expressions
998
232
no_glob_subst='s/\*/\\\*/g'
1003
234
# Global variables:
1004
default_ofile=libtool
1005
236
can_build_shared=yes
1007
238
# All known linkers require a `.a' archive for static linking (except MSVC,
1008
239
# which needs '.lib').
1010
ltmain="$ac_aux_dir/ltmain.sh"
1011
ofile="$default_ofile"
1012
242
with_gnu_ld="$lt_cv_prog_gnu_ld"
1014
AC_CHECK_TOOL(AR, ar, false)
1015
AC_CHECK_TOOL(RANLIB, ranlib, :)
1016
AC_CHECK_TOOL(STRIP, strip, :)
1019
245
old_CFLAGS="$CFLAGS"
1021
247
# Set sane defaults for various variables
1022
test -z "$AR" && AR=ar
1023
test -z "$AR_FLAGS" && AR_FLAGS=cru
1024
test -z "$AS" && AS=as
1025
248
test -z "$CC" && CC=cc
1026
249
test -z "$LTCC" && LTCC=$CC
1027
250
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1028
test -z "$DLLTOOL" && DLLTOOL=dlltool
1029
251
test -z "$LD" && LD=ld
1030
test -z "$LN_S" && LN_S="ln -s"
1031
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1032
test -z "$NM" && NM=nm
1033
test -z "$SED" && SED=sed
1034
test -z "$OBJDUMP" && OBJDUMP=objdump
1035
test -z "$RANLIB" && RANLIB=:
1036
test -z "$STRIP" && STRIP=:
1037
252
test -z "$ac_objext" && ac_objext=o
1039
# Determine commands to create old-style static archives.
1040
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1041
old_postinstall_cmds='chmod 644 $oldlib'
1042
old_postuninstall_cmds=
1044
if test -n "$RANLIB"; then
1047
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1050
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1053
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1056
254
_LT_CC_BASENAME([$compiler])
1058
256
# Only perform the check for file, if the check method requires it
257
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1059
258
case $deplibs_check_method in
1061
260
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1067
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1068
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1069
enable_win32_dll=yes, enable_win32_dll=no)
1071
AC_ARG_ENABLE([libtool-lock],
1072
[AC_HELP_STRING([--disable-libtool-lock],
1073
[avoid locking (might break parallel builds)])])
1074
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1077
[AC_HELP_STRING([--with-pic],
1078
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1079
[pic_mode="$withval"],
1081
test -z "$pic_mode" && pic_mode=default
1083
266
# Use C for the default configuration in the libtool script
1085
AC_LIBTOOL_LANG_C_CONFIG
1087
])# AC_LIBTOOL_SETUP
1090
# _LT_AC_SYS_COMPILER
267
LT_SUPPORTED_TAG([CC])
269
_LT_LANG_DEFAULT_CONFIG
276
# Note that this code is called both from `configure', and `config.status'
277
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
278
# `config.status' has no value for ac_aux_dir unless we are using Automake,
279
# so we pass a copy along to make sure it has a sensible value anyway.
280
m4_defun([_LT_PROG_LTMAIN],
281
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
282
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
283
ltmain="$ac_aux_dir/ltmain.sh"
288
# So that we can recreate a full libtool script including additional
289
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
290
# in macros and then make a single call at the end using the `libtool'
294
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
295
# ----------------------------------------
296
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
297
m4_define([_LT_CONFIG_LIBTOOL_INIT],
299
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
304
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
307
# _LT_CONFIG_LIBTOOL([COMMANDS])
308
# ------------------------------
309
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
310
m4_define([_LT_CONFIG_LIBTOOL],
312
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
317
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
320
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
321
# -----------------------------------------------------
322
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
323
[_LT_CONFIG_LIBTOOL([$1])
324
_LT_CONFIG_LIBTOOL_INIT([$2])
328
# _LT_FORMAT_COMMENT([COMMENT])
329
# -----------------------------
330
# Add leading comment marks to the start of each line, and a trailing
331
# full-stop to the whole comment if one is not present already.
332
m4_define([_LT_FORMAT_COMMENT],
334
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
335
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
342
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
343
# -------------------------------------------------------------------
344
# CONFIGNAME is the name given to the value in the libtool script.
345
# VARNAME is the (base) name used in the configure script.
346
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
347
# VARNAME. Any other value will be used directly.
348
m4_define([_LT_DECL],
349
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
350
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
351
[m4_ifval([$1], [$1], [$2])])
352
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
354
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
355
lt_dict_add_subkey([lt_decl_dict], [$2],
356
[tagged?], [m4_ifval([$5], [yes], [no])])])
360
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
361
# --------------------------------------------------------
362
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
365
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
366
# ------------------------------------------------
367
m4_define([lt_decl_tag_varnames],
368
[_lt_decl_filter([tagged?], [yes], $@)])
371
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
372
# ---------------------------------------------------------
373
m4_define([_lt_decl_filter],
375
[0], [m4_fatal([$0: too few arguments: $#])],
376
[1], [m4_fatal([$0: too few arguments: $#: $1])],
377
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
378
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
379
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
383
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
384
# --------------------------------------------------
385
m4_define([lt_decl_quote_varnames],
386
[_lt_decl_filter([value], [1], $@)])
389
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
390
# ---------------------------------------------------
391
m4_define([lt_decl_dquote_varnames],
392
[_lt_decl_filter([value], [2], $@)])
395
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
396
# ---------------------------------------------------
397
m4_define([lt_decl_varnames_tagged],
398
[m4_assert([$# <= 2])dnl
399
_$0(m4_quote(m4_default([$1], [[, ]])),
400
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
401
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
402
m4_define([_lt_decl_varnames_tagged],
403
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
406
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
407
# ------------------------------------------------
408
m4_define([lt_decl_all_varnames],
409
[_$0(m4_quote(m4_default([$1], [[, ]])),
411
m4_quote(lt_decl_varnames),
412
m4_quote(m4_shift($@))))[]dnl
414
m4_define([_lt_decl_all_varnames],
415
[lt_join($@, lt_decl_varnames_tagged([$1],
416
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
420
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
421
# ------------------------------------
422
# Quote a variable value, and forward it to `config.status' so that its
423
# declaration there will have the same value as in `configure'. VARNAME
424
# must have a single quote delimited value for this to work.
425
m4_define([_LT_CONFIG_STATUS_DECLARE],
426
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
429
# _LT_CONFIG_STATUS_DECLARATIONS
430
# ------------------------------
431
# We delimit libtool config variables with single quotes, so when
432
# we write them to config.status, we have to be sure to quote all
433
# embedded single quotes properly. In configure, this macro expands
434
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
436
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
437
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
438
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
439
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
444
# Output comment and list of tags supported by the script
445
m4_defun([_LT_LIBTOOL_TAGS],
446
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
447
available_tags="_LT_TAGS"dnl
451
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
452
# -----------------------------------
453
# Extract the dictionary values for VARNAME (optionally with TAG) and
454
# expand to a commented shell variable setting:
456
# # Some comment about what VAR is for.
457
# visible_name=$lt_internal_name
458
m4_define([_LT_LIBTOOL_DECLARE],
459
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
460
[description])))[]dnl
461
m4_pushdef([_libtool_name],
462
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
463
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
464
[0], [_libtool_name=[$]$1],
465
[1], [_libtool_name=$lt_[]$1],
466
[2], [_libtool_name=$lt_[]$1],
467
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
468
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
472
# _LT_LIBTOOL_CONFIG_VARS
473
# -----------------------
474
# Produce commented declarations of non-tagged libtool config variables
475
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
476
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
477
# section) are produced by _LT_LIBTOOL_TAG_VARS.
478
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
479
[m4_foreach([_lt_var],
480
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
481
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
484
# _LT_LIBTOOL_TAG_VARS(TAG)
485
# -------------------------
486
m4_define([_LT_LIBTOOL_TAG_VARS],
487
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
488
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
491
# _LT_TAGVAR(VARNAME, [TAGNAME])
492
# ------------------------------
493
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
496
# _LT_CONFIG_COMMANDS
1091
497
# -------------------
1092
AC_DEFUN([_LT_AC_SYS_COMPILER],
498
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
499
# variables for single and double quote escaping we saved from calls
500
# to _LT_DECL, we can put quote escaped variables declarations
501
# into `config.status', and then the shell code to quote escape them in
502
# for loops in `config.status'. Finally, any additional code accumulated
503
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
504
m4_defun([_LT_CONFIG_COMMANDS],
505
[AC_PROVIDE_IFELSE([LT_OUTPUT],
506
dnl If the libtool generation code has been placed in $CONFIG_LT,
507
dnl instead of duplicating it all over again into config.status,
508
dnl then we will have config.status run $CONFIG_LT later, so it
509
dnl needs to know what name is stored there:
510
[AC_CONFIG_COMMANDS([libtool],
511
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
512
dnl If the libtool generation code is destined for config.status,
513
dnl expand the accumulated commands and init code now:
514
[AC_CONFIG_COMMANDS([libtool],
515
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
516
])#_LT_CONFIG_COMMANDS
520
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
523
# The HP-UX ksh and POSIX shell print the target directory to stdout
525
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
527
sed_quote_subst='$sed_quote_subst'
528
double_quote_subst='$double_quote_subst'
529
delay_variable_subst='$delay_variable_subst'
530
_LT_CONFIG_STATUS_DECLARATIONS
533
compiler='$compiler_DEFAULT'
535
# Quote evaled strings.
536
for var in lt_decl_all_varnames([[ \
537
]], lt_decl_quote_varnames); do
538
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
539
*[[\\\\\\\`\\"\\\$]]*)
540
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
543
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
548
# Double-quote double-evaled strings.
549
for var in lt_decl_all_varnames([[ \
550
]], lt_decl_dquote_varnames); do
551
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
552
*[[\\\\\\\`\\"\\\$]]*)
553
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
556
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
561
# Fix-up fallback echo if it was mangled by the above quoting rules.
563
*'\\\[$]0 --fallback-echo"')dnl "
564
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
568
_LT_OUTPUT_LIBTOOL_INIT
574
# This macro allows early generation of the libtool script (before
575
# AC_OUTPUT is called), incase it is used in configure for compilation
577
AC_DEFUN([LT_OUTPUT],
578
[: ${CONFIG_LT=./config.lt}
579
AC_MSG_NOTICE([creating $CONFIG_LT])
580
cat >"$CONFIG_LT" <<_LTEOF
582
# Generated by $as_me.
583
# Run this file to recreate a libtool stub with the current configuration.
586
SHELL=\${CONFIG_SHELL-$SHELL}
589
cat >>"$CONFIG_LT" <<\_LTEOF
593
exec AS_MESSAGE_FD>&1
594
exec AS_MESSAGE_LOG_FD>>config.log
597
AS_BOX([Running $as_me.])
598
} >&AS_MESSAGE_LOG_FD
601
\`$as_me' creates a local libtool stub from the current configuration,
602
for use in further configure time tests before the real libtool is
605
Usage: $[0] [[OPTIONS]]
607
-h, --help print this help, then exit
608
-V, --version print version number, then exit
609
-q, --quiet do not print progress messages
610
-d, --debug don't remove temporary files
612
Report bugs to <bug-libtool@gnu.org>."
615
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
616
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
617
configured by $[0], generated by m4_PACKAGE_STRING.
619
Copyright (C) 2008 Free Software Foundation, Inc.
620
This config.lt script is free software; the Free Software Foundation
621
gives unlimited permision to copy, distribute and modify it."
626
--version | --v* | -V )
627
echo "$lt_cl_version"; exit 0 ;;
629
echo "$lt_cl_help"; exit 0 ;;
630
--debug | --d* | -d )
632
--quiet | --q* | --silent | --s* | -q )
635
-*) AC_MSG_ERROR([unrecognized option: $[1]
636
Try \`$[0] --help' for more information.]) ;;
638
*) AC_MSG_ERROR([unrecognized argument: $[1]
639
Try \`$[0] --help' for more information.]) ;;
644
if $lt_cl_silent; then
645
exec AS_MESSAGE_FD>/dev/null
649
cat >>"$CONFIG_LT" <<_LTEOF
650
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
653
cat >>"$CONFIG_LT" <<\_LTEOF
654
AC_MSG_NOTICE([creating $ofile])
655
_LT_OUTPUT_LIBTOOL_COMMANDS
658
chmod +x "$CONFIG_LT"
660
# configure is writing to config.log, but config.lt does its own redirection,
661
# appending to config.log, which fails on DOS, as config.log is still kept
662
# open by configure. Here we exec the FD to /dev/null, effectively closing
663
# config.log, so it can be properly (re)opened and appended to by config.lt.
664
if test "$no_create" != yes; then
666
test "$silent" = yes &&
667
lt_config_lt_args="$lt_config_lt_args --quiet"
668
exec AS_MESSAGE_LOG_FD>/dev/null
669
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
670
exec AS_MESSAGE_LOG_FD>>config.log
671
$lt_cl_success || AS_EXIT(1)
678
# If TAG is the built-in tag, create an initial libtool script with a
679
# default configuration from the untagged config vars. Otherwise add code
680
# to config.status for appending the configuration named by TAG from the
681
# matching tagged config vars.
682
m4_defun([_LT_CONFIG],
683
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
684
_LT_CONFIG_SAVE_COMMANDS([
685
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
686
m4_if(_LT_TAG, [C], [
687
# See if we are running on zsh, and set the options which allow our
688
# commands through without removal of \ escapes.
689
if test -n "${ZSH_VERSION+set}" ; then
694
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
697
cat <<_LT_EOF >> "$cfgfile"
700
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
701
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
702
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
703
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
708
# ### BEGIN LIBTOOL CONFIG
709
_LT_LIBTOOL_CONFIG_VARS
711
# ### END LIBTOOL CONFIG
717
cat <<\_LT_EOF >> "$cfgfile"
718
# AIX sometimes has problems with the GCC collect2 program. For some
719
# reason, if we set the COLLECT_NAMES environment variable, the problems
720
# vanish in a puff of smoke.
721
if test "X${COLLECT_NAMES+set}" != Xset; then
731
# We use sed instead of cat because bash on DJGPP gets confused if
732
# if finds mixed CR/LF and LF-only lines. Since sed operates in
733
# text mode, it properly converts lines to CR/LF. This bash problem
734
# is reportedly fixed, but why not run on old versions too?
735
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
736
|| (rm -f "$cfgfile"; exit 1)
738
_LT_PROG_XSI_SHELLFNS
740
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
741
|| (rm -f "$cfgfile"; exit 1)
743
mv -f "$cfgfile" "$ofile" ||
744
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
747
[cat <<_LT_EOF >> "$ofile"
749
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
750
dnl in a comment (ie after a #).
751
# ### BEGIN LIBTOOL TAG CONFIG: $1
752
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
753
# ### END LIBTOOL TAG CONFIG: $1
760
TIMESTAMP='$TIMESTAMP'
763
])dnl /_LT_CONFIG_SAVE_COMMANDS
767
# LT_SUPPORTED_TAG(TAG)
768
# ---------------------
769
# Trace this macro to discover what tags are supported by the libtool
770
# --tag option, using:
771
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
772
AC_DEFUN([LT_SUPPORTED_TAG], [])
775
# C support is built-in for now
776
m4_define([_LT_LANG_C_enabled], [])
777
m4_define([_LT_TAGS], [])
782
# Enable libtool support for the given language if not already enabled.
784
[AC_BEFORE([$0], [LT_OUTPUT])dnl
787
[C++], [_LT_LANG(CXX)],
788
[Java], [_LT_LANG(GCJ)],
789
[Fortran 77], [_LT_LANG(F77)],
790
[Fortran], [_LT_LANG(FC)],
791
[Windows Resource], [_LT_LANG(RC)],
792
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
794
[m4_fatal([$0: unsupported language: "$1"])])])dnl
801
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
802
[LT_SUPPORTED_TAG([$1])dnl
803
m4_append([_LT_TAGS], [$1 ])dnl
804
m4_define([_LT_LANG_]$1[_enabled], [])dnl
805
_LT_LANG_$1_CONFIG($1)])dnl
809
# _LT_LANG_DEFAULT_CONFIG
810
# -----------------------
811
m4_defun([_LT_LANG_DEFAULT_CONFIG],
812
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
814
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
816
AC_PROVIDE_IFELSE([AC_PROG_F77],
818
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
820
AC_PROVIDE_IFELSE([AC_PROG_FC],
822
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
824
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
825
dnl pulling things in needlessly.
826
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
828
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
830
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
832
[m4_ifdef([AC_PROG_GCJ],
833
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
834
m4_ifdef([A][M_PROG_GCJ],
835
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
836
m4_ifdef([LT_PROG_GCJ],
837
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
839
AC_PROVIDE_IFELSE([LT_PROG_RC],
841
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
842
])# _LT_LANG_DEFAULT_CONFIG
845
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
846
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
847
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
848
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
849
dnl aclocal-1.4 backwards compatibility:
850
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
851
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
852
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
853
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
858
m4_defun([_LT_TAG_COMPILER],
1093
859
[AC_REQUIRE([AC_PROG_CC])dnl
861
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
862
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
863
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
864
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1095
866
# If no C compiler was specified, use CC.
1096
867
LTCC=${LTCC-"$CC"}
3359
3294
AC_CHECK_LIB(m, cos, LIBM="-lm")
3365
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3366
# -----------------------------------
3367
# sets LIBLTDL to the link flags for the libltdl convenience library and
3368
# LTDLINCL to the include flags for the libltdl header and adds
3369
# --enable-ltdl-convenience to the configure arguments. Note that
3370
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3371
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3372
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3373
# (note the single quotes!). If your package is not flat and you're not
3374
# using automake, define top_builddir and top_srcdir appropriately in
3376
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3377
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3378
case $enable_ltdl_convenience in
3379
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3380
"") enable_ltdl_convenience=yes
3381
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3383
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3384
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3385
# For backwards non-gettext consistent compatibility...
3387
])# AC_LIBLTDL_CONVENIENCE
3390
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3391
# -----------------------------------
3392
# sets LIBLTDL to the link flags for the libltdl installable library and
3393
# LTDLINCL to the include flags for the libltdl header and adds
3394
# --enable-ltdl-install to the configure arguments. Note that
3395
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3396
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3397
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3398
# '${top_srcdir}/' (note the single quotes!). If your package is not
3399
# flat and you're not using automake, define top_builddir and top_srcdir
3400
# appropriately in the Makefiles.
3401
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3402
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3403
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3404
AC_CHECK_LIB(ltdl, lt_dlinit,
3405
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3406
[if test x"$enable_ltdl_install" = xno; then
3407
AC_MSG_WARN([libltdl not installed, but installation disabled])
3409
enable_ltdl_install=yes
3412
if test x"$enable_ltdl_install" = x"yes"; then
3413
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3414
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3415
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3417
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3421
# For backwards non-gettext consistent compatibility...
3423
])# AC_LIBLTDL_INSTALLABLE
3428
# enable support for C++ libraries
3429
AC_DEFUN([AC_LIBTOOL_CXX],
3430
[AC_REQUIRE([_LT_AC_LANG_CXX])
3436
AC_DEFUN([_LT_AC_LANG_CXX],
3437
[AC_REQUIRE([AC_PROG_CXX])
3438
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3439
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3442
# _LT_AC_PROG_CXXCPP
3443
# ------------------
3444
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3446
AC_REQUIRE([AC_PROG_CXX])
3447
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3448
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3449
(test "X$CXX" != "Xg++"))) ; then
3452
])# _LT_AC_PROG_CXXCPP
3456
# enable support for Fortran 77 libraries
3457
AC_DEFUN([AC_LIBTOOL_F77],
3458
[AC_REQUIRE([_LT_AC_LANG_F77])
3464
AC_DEFUN([_LT_AC_LANG_F77],
3465
[AC_REQUIRE([AC_PROG_F77])
3466
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3472
# enable support for GCJ libraries
3473
AC_DEFUN([AC_LIBTOOL_GCJ],
3474
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3480
AC_DEFUN([_LT_AC_LANG_GCJ],
3481
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3482
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3483
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3484
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3485
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3486
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3487
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3493
# enable support for Windows resource files
3494
AC_DEFUN([AC_LIBTOOL_RC],
3495
[AC_REQUIRE([LT_AC_PROG_RC])
3496
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3500
# AC_LIBTOOL_LANG_C_CONFIG
3501
# ------------------------
3502
# Ensure that the configuration vars for the C compiler are
3503
# suitably defined. Those variables are subsequently used by
3504
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3505
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3506
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3510
# Source file extension for C test sources.
3513
# Object file extension for compiled C test sources.
3515
_LT_AC_TAGVAR(objext, $1)=$objext
3517
# Code to be used in simple compile tests
3518
lt_simple_compile_test_code="int some_variable = 0;\n"
3520
# Code to be used in simple link tests
3521
lt_simple_link_test_code='int main(){return(0);}\n'
3525
# save warnings/boilerplate of simple test code
3526
_LT_COMPILER_BOILERPLATE
3527
_LT_LINKER_BOILERPLATE
3529
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3530
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3531
AC_LIBTOOL_PROG_CC_C_O($1)
3532
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3533
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3534
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3535
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3536
AC_LIBTOOL_SYS_LIB_STRIP
3537
AC_LIBTOOL_DLOPEN_SELF
3539
# Report which library types will actually be built
3540
AC_MSG_CHECKING([if libtool supports shared libraries])
3541
AC_MSG_RESULT([$can_build_shared])
3543
AC_MSG_CHECKING([whether to build shared libraries])
3544
test "$can_build_shared" = "no" && enable_shared=no
3546
# On AIX, shared libraries and static libraries use the same namespace, and
3547
# are all built from PIC.
3550
test "$enable_shared" = yes && enable_static=no
3551
if test -n "$RANLIB"; then
3552
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3553
postinstall_cmds='$RANLIB $lib'
3558
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3559
test "$enable_shared" = yes && enable_static=no
3563
AC_MSG_RESULT([$enable_shared])
3565
AC_MSG_CHECKING([whether to build static libraries])
3566
# Make sure either enable_shared or enable_static is yes.
3567
test "$enable_shared" = yes || enable_static=yes
3568
AC_MSG_RESULT([$enable_static])
3570
AC_LIBTOOL_CONFIG($1)
3574
])# AC_LIBTOOL_LANG_C_CONFIG
3577
# AC_LIBTOOL_LANG_CXX_CONFIG
3578
# --------------------------
3579
# Ensure that the configuration vars for the C compiler are
3580
# suitably defined. Those variables are subsequently used by
3581
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3582
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3583
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3585
AC_REQUIRE([AC_PROG_CXX])
3586
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3588
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3589
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3590
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3591
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3592
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3593
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3594
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3595
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3596
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3597
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3598
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3599
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3600
_LT_AC_TAGVAR(module_cmds, $1)=
3601
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3602
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3603
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3604
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3605
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3606
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3608
# Dependencies to place before and after the object being linked:
3609
_LT_AC_TAGVAR(predep_objects, $1)=
3610
_LT_AC_TAGVAR(postdep_objects, $1)=
3611
_LT_AC_TAGVAR(predeps, $1)=
3612
_LT_AC_TAGVAR(postdeps, $1)=
3613
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3615
# Source file extension for C++ test sources.
3618
# Object file extension for compiled C++ test sources.
3620
_LT_AC_TAGVAR(objext, $1)=$objext
3622
# Code to be used in simple compile tests
3623
lt_simple_compile_test_code="int some_variable = 0;\n"
3625
# Code to be used in simple link tests
3626
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3628
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3631
# save warnings/boilerplate of simple test code
3632
_LT_COMPILER_BOILERPLATE
3633
_LT_LINKER_BOILERPLATE
3635
# Allow CC to be a program name with arguments.
3640
lt_save_with_gnu_ld=$with_gnu_ld
3641
lt_save_path_LD=$lt_cv_path_LD
3642
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3643
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3645
$as_unset lt_cv_prog_gnu_ld
3647
if test -n "${lt_cv_path_LDCXX+set}"; then
3648
lt_cv_path_LD=$lt_cv_path_LDCXX
3650
$as_unset lt_cv_path_LD
3652
test -z "${LDCXX+set}" || LD=$LDCXX
3655
_LT_AC_TAGVAR(compiler, $1)=$CC
3656
_LT_CC_BASENAME([$compiler])
3658
# We don't want -fno-exception wen compiling C++ code, so set the
3659
# no_builtin_flag separately
3660
if test "$GXX" = yes; then
3661
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3663
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3666
if test "$GXX" = yes; then
3667
# Set up default GNU C++ configuration
3671
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3672
# archiving commands below assume that GNU ld is being used.
3673
if test "$with_gnu_ld" = yes; then
3674
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3675
_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'
3677
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3678
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3680
# If archive_cmds runs LD, not CC, wlarc should be empty
3681
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3682
# investigate it a little bit more. (MM)
3685
# ancient GNU ld didn't support --whole-archive et. al.
3686
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3687
grep 'no-whole-archive' > /dev/null; then
3688
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3690
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3696
# A generic and very simple default shared library creation
3697
# command for GNU C++ for the case where it uses the native
3698
# linker, instead of GNU ld. If possible, this setting should
3699
# overridden to take advantage of the native linker features on
3700
# the platform it is being used on.
3701
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3704
# Commands to make compiler produce verbose output that lists
3705
# what "hidden" libraries, object files and flags are used when
3706
# linking a shared library.
3707
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3715
# PORTME: fill in a description of your system's C++ link characteristics
3716
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3717
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3720
# FIXME: insert proper C++ library support
3721
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3724
if test "$host_cpu" = ia64; then
3725
# On IA64, the linker does run time linking by default, so we don't
3726
# have to do anything special.
3727
aix_use_runtimelinking=no
3728
exp_sym_flag='-Bexport'
3731
aix_use_runtimelinking=no
3733
# Test if we are trying to use run time linking or normal
3734
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3735
# need to do runtime linking.
3736
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3737
for ld_flag in $LDFLAGS; do
3740
aix_use_runtimelinking=yes
3748
exp_sym_flag='-bexport'
3749
no_entry_flag='-bnoentry'
3752
# When large executables or shared objects are built, AIX ld can
3753
# have problems creating the table of contents. If linking a library
3754
# or program results in "error TOC overflow" add -mminimal-toc to
3755
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3756
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3758
_LT_AC_TAGVAR(archive_cmds, $1)=''
3759
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3760
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3761
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3763
if test "$GXX" = yes; then
3764
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3765
# We only want to do this on AIX 4.2 and lower, the check
3766
# below for broken collect2 doesn't work under 4.3+
3767
collect2name=`${CC} -print-prog-name=collect2`
3768
if test -f "$collect2name" && \
3769
strings "$collect2name" | grep resolve_lib_name >/dev/null
3771
# We have reworked collect2
3772
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3774
# We have old collect2
3775
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3776
# It fails to find uninstalled libraries when the uninstalled
3777
# path is not listed in the libpath. Setting hardcode_minus_L
3778
# to unsupported forces relinking
3779
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3780
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3781
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3785
shared_flag='-shared'
3786
if test "$aix_use_runtimelinking" = yes; then
3787
shared_flag="$shared_flag "'${wl}-G'
3791
if test "$host_cpu" = ia64; then
3792
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3793
# chokes on -Wl,-G. The following line is correct:
3796
if test "$aix_use_runtimelinking" = yes; then
3797
shared_flag='${wl}-G'
3799
shared_flag='${wl}-bM:SRE'
3804
# It seems that -bexpall does not export symbols beginning with
3805
# underscore (_), so it is better to generate a list of symbols to export.
3806
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3807
if test "$aix_use_runtimelinking" = yes; then
3808
# Warning - without using the other runtime loading flags (-brtl),
3809
# -berok will link without error, but may produce a broken library.
3810
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3811
# Determine the default libpath from the value encoded in an empty executable.
3812
_LT_AC_SYS_LIBPATH_AIX
3813
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3815
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3817
if test "$host_cpu" = ia64; then
3818
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3819
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3820
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3822
# Determine the default libpath from the value encoded in an empty executable.
3823
_LT_AC_SYS_LIBPATH_AIX
3824
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3825
# Warning - without using the other run time loading flags,
3826
# -berok will link without error, but may produce a broken library.
3827
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3828
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3829
# Exported symbols can be pulled into shared objects from archives
3830
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3831
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3832
# This is similar to how AIX traditionally builds its shared libraries.
3833
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3839
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3840
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3841
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3842
# support --undefined. This deserves some investigation. FIXME
3843
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3845
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3850
case $cc_basename in
3852
# FIXME: insert proper C++ library support
3853
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3858
cygwin* | mingw* | pw32*)
3859
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3860
# as there is no search path for DLLs.
3861
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3862
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3863
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3864
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3866
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3867
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3868
# If the export-symbols file already is a .def file (1st line
3869
# is EXPORTS), use it as is; otherwise, prepend...
3870
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3871
cp $export_symbols $output_objdir/$soname.def;
3873
echo EXPORTS > $output_objdir/$soname.def;
3874
cat $export_symbols >> $output_objdir/$soname.def;
3876
$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'
3878
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3881
darwin* | rhapsody*)
3883
rhapsody* | darwin1.[[012]])
3884
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3887
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3888
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3890
case ${MACOSX_DEPLOYMENT_TARGET} in
3892
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3895
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3901
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3902
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3903
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3904
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3905
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3906
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3908
if test "$GXX" = yes ; then
3909
lt_int_apple_cc_single_mod=no
3910
output_verbose_link_cmd='echo'
3911
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3912
lt_int_apple_cc_single_mod=yes
3914
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3915
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3917
_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'
3919
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3920
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3921
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3922
_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}'
3924
_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}'
3926
_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}'
3928
case $cc_basename in
3930
output_verbose_link_cmd='echo'
3931
_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'
3932
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3933
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3934
_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}'
3935
_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}'
3938
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3945
case $cc_basename in
3947
# FIXME: insert proper C++ library support
3948
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3951
# Green Hills C++ Compiler
3952
# FIXME: insert proper C++ library support
3953
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3956
# FIXME: insert proper C++ library support
3957
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3962
# C++ shared libraries reported to be fairly broken before switch to ELF
3963
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3966
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3968
freebsd* | dragonfly*)
3969
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3971
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3976
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3977
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3978
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3979
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3980
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3981
# but as the default
3982
# location of the library.
3984
case $cc_basename in
3986
# FIXME: insert proper C++ library support
3987
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3990
_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'
3991
# Commands to make compiler produce verbose output that lists
3992
# what "hidden" libraries, object files and flags are used when
3993
# linking a shared library.
3995
# There doesn't appear to be a way to prevent this compiler from
3996
# explicitly linking system object files so we need to strip them
3997
# from the output so that they don't get included in the library
3999
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'
4002
if test "$GXX" = yes; then
4003
_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'
4005
# FIXME: insert proper C++ library support
4006
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4012
if test $with_gnu_ld = no; then
4013
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4014
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4018
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4021
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4027
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4028
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4031
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4032
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4033
# but as the default
4034
# location of the library.
4038
case $cc_basename in
4040
# FIXME: insert proper C++ library support
4041
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4046
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4049
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4052
_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'
4055
# Commands to make compiler produce verbose output that lists
4056
# what "hidden" libraries, object files and flags are used when
4057
# linking a shared library.
4059
# There doesn't appear to be a way to prevent this compiler from
4060
# explicitly linking system object files so we need to strip them
4061
# from the output so that they don't get included in the library
4063
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'
4066
if test "$GXX" = yes; then
4067
if test $with_gnu_ld = no; then
4070
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4073
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4076
_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'
4081
# FIXME: insert proper C++ library support
4082
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4088
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4089
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4090
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4091
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4092
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4093
# Instead, shared libraries are loaded at an image base (0x10000000 by
4094
# default) and relocated if they conflict, which is a slow very memory
4095
# consuming and fragmenting process. To avoid this, we pick a random,
4096
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4097
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4098
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4099
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4102
case $cc_basename in
4105
_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'
4107
# Archives containing C++ object files must be created using
4108
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4109
# necessary to make sure instantiated templates are included
4111
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4114
if test "$GXX" = yes; then
4115
if test "$with_gnu_ld" = no; then
4116
_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'
4118
_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'
4121
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4124
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4125
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4127
linux* | k*bsd*-gnu)
4128
case $cc_basename in
4130
# Kuck and Associates, Inc. (KAI) C++ Compiler
4132
# KCC will only create a shared library if the output file
4133
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4134
# to its proper name (with version) after linking.
4135
_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'
4136
_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'
4137
# Commands to make compiler produce verbose output that lists
4138
# what "hidden" libraries, object files and flags are used when
4139
# linking a shared library.
4141
# There doesn't appear to be a way to prevent this compiler from
4142
# explicitly linking system object files so we need to strip them
4143
# from the output so that they don't get included in the library
4145
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'
4147
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4148
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4150
# Archives containing C++ object files must be created using
4151
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4152
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4157
# version 8.0 and above of icpc choke on multiply defined symbols
4158
# if we add $predep_objects and $postdep_objects, however 7.1 and
4159
# earlier do not add the objects themselves.
4160
case `$CC -V 2>&1` in
4162
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4163
_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'
4165
*) # Version 8.0 or newer
4168
ia64*) tmp_idyn=' -i_dynamic';;
4170
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4171
_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'
4174
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4175
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4176
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4177
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4180
# Portland Group C++ compiler
4181
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4182
_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'
4184
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4185
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4186
_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'
4190
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4191
_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'
4193
runpath_var=LD_RUN_PATH
4194
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4195
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4197
# Commands to make compiler produce verbose output that lists
4198
# what "hidden" libraries, object files and flags are used when
4199
# linking a shared library.
4201
# There doesn't appear to be a way to prevent this compiler from
4202
# explicitly linking system object files so we need to strip them
4203
# from the output so that they don't get included in the library
4205
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'
4210
# FIXME: insert proper C++ library support
4211
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4214
# FIXME: insert proper C++ library support
4215
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4218
case $cc_basename in
4220
# FIXME: insert proper C++ library support
4221
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4224
# FIXME: insert proper C++ library support
4225
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4229
netbsd* | netbsdelf*-gnu)
4230
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4231
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4233
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4234
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4235
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4237
# Workaround some broken pre-1.5 toolchains
4238
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4241
# C++ shared libraries are fairly broken
4242
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4245
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4246
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4247
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4248
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4249
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4250
_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'
4251
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4252
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4254
output_verbose_link_cmd='echo'
4257
case $cc_basename in
4259
# Kuck and Associates, Inc. (KAI) C++ Compiler
4261
# KCC will only create a shared library if the output file
4262
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4263
# to its proper name (with version) after linking.
4264
_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'
4266
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4267
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4269
# Archives containing C++ object files must be created using
4270
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4271
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4275
# Rational C++ 2.4.1
4276
# FIXME: insert proper C++ library support
4277
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4280
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4281
_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'
4283
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4284
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4286
# Commands to make compiler produce verbose output that lists
4287
# what "hidden" libraries, object files and flags are used when
4288
# linking a shared library.
4290
# There doesn't appear to be a way to prevent this compiler from
4291
# explicitly linking system object files so we need to strip them
4292
# from the output so that they don't get included in the library
4294
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'
4297
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4298
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4299
_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'
4301
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4302
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4304
# Commands to make compiler produce verbose output that lists
4305
# what "hidden" libraries, object files and flags are used when
4306
# linking a shared library.
4307
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4310
# FIXME: insert proper C++ library support
4311
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4317
case $cc_basename in
4319
# Kuck and Associates, Inc. (KAI) C++ Compiler
4321
# KCC will only create a shared library if the output file
4322
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4323
# to its proper name (with version) after linking.
4324
_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'
4326
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4327
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4329
# Archives containing C++ object files must be created using
4330
# the KAI C++ compiler.
4331
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4334
# Rational C++ 2.4.1
4335
# FIXME: insert proper C++ library support
4336
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4339
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4340
_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'
4341
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4342
echo "-hidden">> $lib.exp~
4343
$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~
4346
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4347
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4349
# Commands to make compiler produce verbose output that lists
4350
# what "hidden" libraries, object files and flags are used when
4351
# linking a shared library.
4353
# There doesn't appear to be a way to prevent this compiler from
4354
# explicitly linking system object files so we need to strip them
4355
# from the output so that they don't get included in the library
4357
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'
4360
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4361
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4362
_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'
4364
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4365
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4367
# Commands to make compiler produce verbose output that lists
4368
# what "hidden" libraries, object files and flags are used when
4369
# linking a shared library.
4370
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4373
# FIXME: insert proper C++ library support
4374
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4380
# FIXME: insert proper C++ library support
4381
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4384
case $cc_basename in
4387
# FIXME: insert proper C++ library support
4388
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4392
# FIXME: insert proper C++ library support
4393
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4396
# FIXME: insert proper C++ library support
4397
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4402
case $cc_basename in
4404
# Sun C++ 4.2, 5.x and Centerline C++
4405
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4406
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4407
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4408
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4409
$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'
4411
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4412
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4414
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4416
# The C++ compiler is used as linker so we must use $wl
4417
# flag to pass the commands to the underlying system
4418
# linker. We must also pass each convience library through
4419
# to the system linker between allextract/defaultextract.
4420
# The C++ compiler will combine linker options so we
4421
# cannot just pass the convience library names through
4423
# Supported since Solaris 2.6 (maybe 2.5.1?)
4424
_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'
4427
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4429
output_verbose_link_cmd='echo'
4431
# Archives containing C++ object files must be created using
4432
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4433
# necessary to make sure instantiated templates are included
4435
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4438
# Green Hills C++ Compiler
4439
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4441
# The C++ compiler must be used to create the archive.
4442
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4445
# GNU C++ compiler with Solaris linker
4446
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4447
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4448
if $CC --version | grep -v '^2\.7' > /dev/null; then
4449
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4450
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4451
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4453
# Commands to make compiler produce verbose output that lists
4454
# what "hidden" libraries, object files and flags are used when
4455
# linking a shared library.
4456
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4458
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4460
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4461
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4462
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4464
# Commands to make compiler produce verbose output that lists
4465
# what "hidden" libraries, object files and flags are used when
4466
# linking a shared library.
4467
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4470
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4475
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4476
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4477
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4478
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4479
runpath_var='LD_RUN_PATH'
4481
case $cc_basename in
4483
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4484
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4487
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4488
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4492
sysv5* | sco3.2v5* | sco5v6*)
4493
# Note: We can NOT use -z defs as we might desire, because we do not
4494
# link with -lc, and that would cause any symbols used from libc to
4495
# always be unresolved, which means just about no library would
4496
# ever link correctly. If we're not using GNU ld we use -z text
4497
# though, which does catch some bad symbols but isn't as heavy-handed
4499
# For security reasons, it is highly recommended that you always
4500
# use absolute paths for naming shared libraries, and exclude the
4501
# DT_RUNPATH tag from executables and libraries. But doing so
4502
# requires that you compile everything twice, which is a pain.
4503
# So that behaviour is only enabled if SCOABSPATH is set to a
4504
# non-empty value in the environment. Most likely only useful for
4505
# creating official distributions of packages.
4506
# This is a hack until libtool officially supports absolute path
4507
# names for shared libraries.
4508
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4509
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4510
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4511
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4512
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4513
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4514
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4515
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4516
runpath_var='LD_RUN_PATH'
4518
case $cc_basename in
4520
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4521
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4524
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4525
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4530
case $cc_basename in
4532
# NonStop-UX NCC 3.20
4533
# FIXME: insert proper C++ library support
4534
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4537
# FIXME: insert proper C++ library support
4538
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4543
# FIXME: insert proper C++ library support
4544
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4547
# FIXME: insert proper C++ library support
4548
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4551
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4552
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4554
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4555
_LT_AC_TAGVAR(LD, $1)="$LD"
4557
AC_LIBTOOL_POSTDEP_PREDEP($1)
4558
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4559
AC_LIBTOOL_PROG_CC_C_O($1)
4560
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4561
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4562
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4563
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4565
AC_LIBTOOL_CONFIG($1)
4572
with_gnu_ldcxx=$with_gnu_ld
4573
with_gnu_ld=$lt_save_with_gnu_ld
4574
lt_cv_path_LDCXX=$lt_cv_path_LD
4575
lt_cv_path_LD=$lt_save_path_LD
4576
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4577
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4578
])# AC_LIBTOOL_LANG_CXX_CONFIG
4580
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4581
# ------------------------------------
4582
# Figure out "hidden" library dependencies from verbose
4583
# compiler output when linking a shared library.
4584
# Parse the compiler output and extract the necessary
4585
# objects, libraries and library flags.
4586
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4587
dnl we can't use the lt_simple_compile_test_code here,
4588
dnl because it contains code intended for an executable,
4589
dnl not a library. It's possible we should let each
4590
dnl tag define a new lt_????_link_test_code variable,
4591
dnl but it's only used here...
4592
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4594
void foo (void) { a = 0; }
4596
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4600
Foo (void) { a = 0; }
4605
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4613
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4616
public void bar (void) {
4622
dnl Parse the compiler output and extract the necessary
4623
dnl objects, libraries and library flags.
4624
if AC_TRY_EVAL(ac_compile); then
4625
# Parse the compiler output and extract the necessary
4626
# objects, libraries and library flags.
4628
# Sentinel used to keep track of whether or not we are before
4629
# the conftest object file.
4630
pre_test_object_deps_done=no
4632
# The `*' in the case matches for architectures that use `case' in
4633
# $output_verbose_cmd can trigger glob expansion during the loop
4634
# eval without this substitution.
4635
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4637
for p in `eval $output_verbose_link_cmd`; do
4641
# Some compilers place space between "-{L,R}" and the path.
4644
|| test $p = "-R"; then
4651
if test "$pre_test_object_deps_done" = no; then
4654
# Internal compiler library paths should come after those
4655
# provided the user. The postdeps already come after the
4656
# user supplied libs so there is no need to process them.
4657
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4658
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4660
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4663
# The "-l" case would never come before the object being
4664
# linked, so don't bother handling this case.
4667
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4668
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4670
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4676
# This assumes that the test object file only shows up
4677
# once in the compiler output.
4678
if test "$p" = "conftest.$objext"; then
4679
pre_test_object_deps_done=yes
4683
if test "$pre_test_object_deps_done" = no; then
4684
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4685
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4687
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4690
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4691
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4693
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4698
*) ;; # Ignore the rest.
4706
echo "libtool.m4: error: problem compiling $1 test program"
4709
$rm -f confest.$objext
4711
# PORTME: override above test on systems where it is broken
4715
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4716
# hack all around it, let's just trust "g++" to DTRT.
4717
_LT_AC_TAGVAR(predep_objects,$1)=
4718
_LT_AC_TAGVAR(postdep_objects,$1)=
4719
_LT_AC_TAGVAR(postdeps,$1)=
4723
case $cc_basename in
4725
# Adding this requires a known-good setup of shared libraries for
4726
# Sun compiler versions before 5.6, else PIC objects from an old
4727
# archive will be linked into the output, leading to subtle bugs.
4728
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4735
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4736
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4738
])# AC_LIBTOOL_POSTDEP_PREDEP
4740
# AC_LIBTOOL_LANG_F77_CONFIG
4741
# --------------------------
4742
# Ensure that the configuration vars for the C compiler are
4743
# suitably defined. Those variables are subsequently used by
4744
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4745
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4746
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4747
[AC_REQUIRE([AC_PROG_F77])
4748
AC_LANG_PUSH(Fortran 77)
4750
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4751
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4752
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4753
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4754
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4755
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4756
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4757
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4758
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4759
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4760
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4761
_LT_AC_TAGVAR(module_cmds, $1)=
4762
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4763
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4764
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4765
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4766
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4767
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4769
# Source file extension for f77 test sources.
4772
# Object file extension for compiled f77 test sources.
4774
_LT_AC_TAGVAR(objext, $1)=$objext
4776
# Code to be used in simple compile tests
4777
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4779
# Code to be used in simple link tests
4780
lt_simple_link_test_code=" program t\n end\n"
4782
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4785
# save warnings/boilerplate of simple test code
4786
_LT_COMPILER_BOILERPLATE
4787
_LT_LINKER_BOILERPLATE
4789
# Allow CC to be a program name with arguments.
4793
_LT_AC_TAGVAR(compiler, $1)=$CC
4794
_LT_CC_BASENAME([$compiler])
4796
AC_MSG_CHECKING([if libtool supports shared libraries])
4797
AC_MSG_RESULT([$can_build_shared])
4799
AC_MSG_CHECKING([whether to build shared libraries])
4800
test "$can_build_shared" = "no" && enable_shared=no
4802
# On AIX, shared libraries and static libraries use the same namespace, and
4803
# are all built from PIC.
4806
test "$enable_shared" = yes && enable_static=no
4807
if test -n "$RANLIB"; then
4808
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4809
postinstall_cmds='$RANLIB $lib'
4813
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4814
test "$enable_shared" = yes && enable_static=no
4818
AC_MSG_RESULT([$enable_shared])
4820
AC_MSG_CHECKING([whether to build static libraries])
4821
# Make sure either enable_shared or enable_static is yes.
4822
test "$enable_shared" = yes || enable_static=yes
4823
AC_MSG_RESULT([$enable_static])
4825
_LT_AC_TAGVAR(GCC, $1)="$G77"
4826
_LT_AC_TAGVAR(LD, $1)="$LD"
4828
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4829
AC_LIBTOOL_PROG_CC_C_O($1)
4830
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4831
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4832
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4833
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4835
AC_LIBTOOL_CONFIG($1)
4839
])# AC_LIBTOOL_LANG_F77_CONFIG
4842
# AC_LIBTOOL_LANG_GCJ_CONFIG
4843
# --------------------------
4844
# Ensure that the configuration vars for the C compiler are
4845
# suitably defined. Those variables are subsequently used by
4846
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4847
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4848
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4851
# Source file extension for Java test sources.
4854
# Object file extension for compiled Java test sources.
4856
_LT_AC_TAGVAR(objext, $1)=$objext
4858
# Code to be used in simple compile tests
4859
lt_simple_compile_test_code="class foo {}\n"
4861
# Code to be used in simple link tests
4862
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4864
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4867
# save warnings/boilerplate of simple test code
4868
_LT_COMPILER_BOILERPLATE
4869
_LT_LINKER_BOILERPLATE
4871
# Allow CC to be a program name with arguments.
4875
_LT_AC_TAGVAR(compiler, $1)=$CC
4876
_LT_CC_BASENAME([$compiler])
4878
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4879
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4881
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4883
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4884
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4885
AC_LIBTOOL_PROG_CC_C_O($1)
4886
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4887
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4888
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4889
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4891
AC_LIBTOOL_CONFIG($1)
4895
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4898
# AC_LIBTOOL_LANG_RC_CONFIG
4899
# -------------------------
4900
# Ensure that the configuration vars for the Windows resource compiler are
4901
# suitably defined. Those variables are subsequently used by
4902
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4903
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4904
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4907
# Source file extension for RC test sources.
4910
# Object file extension for compiled RC test sources.
4912
_LT_AC_TAGVAR(objext, $1)=$objext
4914
# Code to be used in simple compile tests
4915
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4917
# Code to be used in simple link tests
4918
lt_simple_link_test_code="$lt_simple_compile_test_code"
4920
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4923
# save warnings/boilerplate of simple test code
4924
_LT_COMPILER_BOILERPLATE
4925
_LT_LINKER_BOILERPLATE
4927
# Allow CC to be a program name with arguments.
4931
_LT_AC_TAGVAR(compiler, $1)=$CC
4932
_LT_CC_BASENAME([$compiler])
4933
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4935
AC_LIBTOOL_CONFIG($1)
4939
])# AC_LIBTOOL_LANG_RC_CONFIG
4942
# AC_LIBTOOL_CONFIG([TAGNAME])
4943
# ----------------------------
4944
# If TAGNAME is not passed, then create an initial libtool script
4945
# with a default configuration from the untagged config vars. Otherwise
4946
# add code to config.status for appending the configuration named by
4947
# TAGNAME from the matching tagged config vars.
4948
AC_DEFUN([AC_LIBTOOL_CONFIG],
4949
[# The else clause should only fire when bootstrapping the
4950
# libtool distribution, otherwise you forgot to ship ltmain.sh
4951
# with your package, and you will get complaints that there are
4952
# no rules to generate ltmain.sh.
4953
if test -f "$ltmain"; then
4954
# See if we are running on zsh, and set the options which allow our commands through
4955
# without removal of \ escapes.
4956
if test -n "${ZSH_VERSION+set}" ; then
4957
setopt NO_GLOB_SUBST
4959
# Now quote all the things that may contain metacharacters while being
4960
# careful not to overquote the AC_SUBSTed values. We take copies of the
4961
# variables and quote the copies for generation of the libtool script.
4962
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4964
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4965
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4966
deplibs_check_method reload_flag reload_cmds need_locks \
4967
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4968
lt_cv_sys_global_symbol_to_c_name_address \
4969
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4970
old_postinstall_cmds old_postuninstall_cmds \
4971
_LT_AC_TAGVAR(compiler, $1) \
4972
_LT_AC_TAGVAR(CC, $1) \
4973
_LT_AC_TAGVAR(LD, $1) \
4974
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4975
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4976
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4977
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4978
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4979
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4980
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4981
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4982
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4983
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4984
_LT_AC_TAGVAR(predep_objects, $1) \
4985
_LT_AC_TAGVAR(postdep_objects, $1) \
4986
_LT_AC_TAGVAR(predeps, $1) \
4987
_LT_AC_TAGVAR(postdeps, $1) \
4988
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4989
_LT_AC_TAGVAR(archive_cmds, $1) \
4990
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4991
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4992
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4993
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4994
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4995
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4996
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4997
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4998
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4999
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5000
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5001
_LT_AC_TAGVAR(module_cmds, $1) \
5002
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5003
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5004
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5005
_LT_AC_TAGVAR(include_expsyms, $1); do
5008
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5009
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5010
_LT_AC_TAGVAR(archive_cmds, $1) | \
5011
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5012
_LT_AC_TAGVAR(module_cmds, $1) | \
5013
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5014
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5015
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5016
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5017
postinstall_cmds | postuninstall_cmds | \
5018
old_postinstall_cmds | old_postuninstall_cmds | \
5019
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5020
# Double-quote double-evaled strings.
5021
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5024
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5030
*'\[$]0 --fallback-echo"')
5031
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5036
[cfgfile="${ofile}T"
5037
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5039
AC_MSG_NOTICE([creating $ofile])],
5042
cat <<__EOF__ >> "$cfgfile"
5046
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5047
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5048
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5050
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5051
# Free Software Foundation, Inc.
5053
# This file is part of GNU Libtool:
5054
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5056
# This program is free software; you can redistribute it and/or modify
5057
# it under the terms of the GNU General Public License as published by
5058
# the Free Software Foundation; either version 2 of the License, or
5059
# (at your option) any later version.
5061
# This program is distributed in the hope that it will be useful, but
5062
# WITHOUT ANY WARRANTY; without even the implied warranty of
5063
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5064
# General Public License for more details.
5066
# You should have received a copy of the GNU General Public License
5067
# along with this program; if not, write to the Free Software
5068
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5070
# As a special exception to the GNU General Public License, if you
5071
# distribute this file as part of a program that contains a
5072
# configuration script generated by Autoconf, you may include it under
5073
# the same distribution terms that you use for the rest of that program.
5075
# A sed program that does not truncate output.
5078
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5079
Xsed="$SED -e 1s/^X//"
5081
# The HP-UX ksh and POSIX shell print the target directory to stdout
5083
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5085
# The names of the tagged configurations supported by this script.
5088
# ### BEGIN LIBTOOL CONFIG],
5089
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5091
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5093
# Shell to use when invoking shell scripts.
5096
# Whether or not to build shared libraries.
5097
build_libtool_libs=$enable_shared
5099
# Whether or not to build static libraries.
5100
build_old_libs=$enable_static
5102
# Whether or not to add -lc for building shared libraries.
5103
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5105
# Whether or not to disallow shared libs when runtime libs are static
5106
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5108
# Whether or not to optimize for fast installation.
5109
fast_install=$enable_fast_install
5112
host_alias=$host_alias
5117
build_alias=$build_alias
5121
# An echo program that does not interpret backslashes.
5126
AR_FLAGS=$lt_AR_FLAGS
5131
# LTCC compiler flags.
5132
LTCFLAGS=$lt_LTCFLAGS
5134
# A language-specific compiler.
5135
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5137
# Is the compiler the GNU C compiler?
5138
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5143
# The linker used to build libraries.
5144
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5146
# Whether we need hard or soft links.
5149
# A BSD-compatible nm program.
5152
# A symbol stripping program
5155
# Used to examine libraries when file_magic_cmd begins "file"
5156
MAGIC_CMD=$MAGIC_CMD
5158
# Used on cygwin: DLL creation program.
5161
# Used on cygwin: object dumper.
5164
# Used on cygwin: assembler.
5167
# The name of the directory that contains temporary libtool files.
5170
# How to create reloadable object files.
5171
reload_flag=$lt_reload_flag
5172
reload_cmds=$lt_reload_cmds
5174
# How to pass a linker flag through the compiler.
5175
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5177
# Object file suffix (normally "o").
5180
# Old archive suffix (normally "a").
5183
# Shared library suffix (normally ".so").
5184
shrext_cmds='$shrext_cmds'
5186
# Executable file suffix (normally "").
5189
# Additional compiler flags for building library objects.
5190
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5193
# What is the maximum length of a command?
5194
max_cmd_len=$lt_cv_sys_max_cmd_len
5196
# Does compiler simultaneously support -c and -o options?
5197
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5199
# Must we lock files when doing compilation?
5200
need_locks=$lt_need_locks
5202
# Do we need the lib prefix for modules?
5203
need_lib_prefix=$need_lib_prefix
5205
# Do we need a version for libraries?
5206
need_version=$need_version
5208
# Whether dlopen is supported.
5209
dlopen_support=$enable_dlopen
5211
# Whether dlopen of programs is supported.
5212
dlopen_self=$enable_dlopen_self
5214
# Whether dlopen of statically linked programs is supported.
5215
dlopen_self_static=$enable_dlopen_self_static
5217
# Compiler flag to prevent dynamic linking.
5218
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5220
# Compiler flag to turn off builtin functions.
5221
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5223
# Compiler flag to allow reflexive dlopens.
5224
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5226
# Compiler flag to generate shared objects directly from archives.
5227
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5229
# Compiler flag to generate thread-safe objects.
5230
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5232
# Library versioning type.
5233
version_type=$version_type
5235
# Format of library name prefix.
5236
libname_spec=$lt_libname_spec
5238
# List of archive names. First name is the real one, the rest are links.
5239
# The last name is the one that the linker finds with -lNAME.
5240
library_names_spec=$lt_library_names_spec
5242
# The coded name of the library, if different from the real name.
5243
soname_spec=$lt_soname_spec
5245
# Commands used to build and install an old-style archive.
5247
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5248
old_postinstall_cmds=$lt_old_postinstall_cmds
5249
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5251
# Create an old-style archive from a shared archive.
5252
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5254
# Create a temporary old-style archive to link instead of a shared archive.
5255
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5257
# Commands used to build and install a shared archive.
5258
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5259
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5260
postinstall_cmds=$lt_postinstall_cmds
5261
postuninstall_cmds=$lt_postuninstall_cmds
5263
# Commands used to build a loadable module (assumed same as above if empty)
5264
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5265
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5267
# Commands to strip libraries.
5268
old_striplib=$lt_old_striplib
5269
striplib=$lt_striplib
5271
# Dependencies to place before the objects being linked to create a
5273
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5275
# Dependencies to place after the objects being linked to create a
5277
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5279
# Dependencies to place before the objects being linked to create a
5281
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5283
# Dependencies to place after the objects being linked to create a
5285
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5287
# The library search path used internally by the compiler when linking
5289
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5291
# Method to check whether dependent libraries are shared objects.
5292
deplibs_check_method=$lt_deplibs_check_method
5294
# Command to use when deplibs_check_method == file_magic.
5295
file_magic_cmd=$lt_file_magic_cmd
5297
# Flag that allows shared libraries with undefined symbols to be built.
5298
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5300
# Flag that forces no undefined symbols.
5301
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5303
# Commands used to finish a libtool library installation in a directory.
5304
finish_cmds=$lt_finish_cmds
5306
# Same as above, but a single script fragment to be evaled but not shown.
5307
finish_eval=$lt_finish_eval
5309
# Take the output of nm and produce a listing of raw symbols and C names.
5310
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5312
# Transform the output of nm in a proper C declaration
5313
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5315
# Transform the output of nm in a C name address pair
5316
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5318
# This is the shared library runtime path variable.
5319
runpath_var=$runpath_var
5321
# This is the shared library path variable.
5322
shlibpath_var=$shlibpath_var
5324
# Is shlibpath searched before the hard-coded library search path?
5325
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5327
# How to hardcode a shared library path into an executable.
5328
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5330
# Whether we should hardcode library paths into libraries.
5331
hardcode_into_libs=$hardcode_into_libs
5333
# Flag to hardcode \$libdir into a binary during linking.
5334
# This must work even if \$libdir does not exist.
5335
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5337
# If ld is used when linking, flag to hardcode \$libdir into
5338
# a binary during linking. This must work even if \$libdir does
5340
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5342
# Whether we need a single -rpath flag with a separated argument.
5343
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5345
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5347
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5349
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5351
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5353
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5354
# the resulting binary.
5355
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5357
# Set to yes if building a shared library automatically hardcodes DIR into the library
5358
# and all subsequent libraries and executables linked against it.
5359
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5361
# Variables whose values should be saved in libtool wrapper scripts and
5362
# restored at relink time.
5363
variables_saved_for_relink="$variables_saved_for_relink"
5365
# Whether libtool must link a program against all its dependency libraries.
5366
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5368
# Compile-time system search path for libraries
5369
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5371
# Run-time system search path for libraries
5372
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5374
# Fix the shell variable \$srcfile for the compiler.
5375
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5377
# Set to yes if exported symbols are required.
5378
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5380
# The commands to list exported symbols.
5381
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5383
# The commands to extract the exported symbol list from a shared archive.
5384
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5386
# Symbols that should not be listed in the preloaded symbols.
5387
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5389
# Symbols that must always be exported.
5390
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5393
[# ### END LIBTOOL CONFIG],
5394
[# ### END LIBTOOL TAG CONFIG: $tagname])
5401
cat <<\EOF >> "$cfgfile"
5403
# AIX sometimes has problems with the GCC collect2 program. For some
5404
# reason, if we set the COLLECT_NAMES environment variable, the problems
5405
# vanish in a puff of smoke.
5406
if test "X${COLLECT_NAMES+set}" != Xset; then
5408
export COLLECT_NAMES
5414
# We use sed instead of cat because bash on DJGPP gets confused if
5415
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5416
# text mode, it properly converts lines to CR/LF. This bash problem
5417
# is reportedly fixed, but why not run on old versions too?
5418
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5420
mv -f "$cfgfile" "$ofile" || \
5421
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5425
# If there is no Makefile yet, we rely on a make rule to execute
5426
# `config.status --recheck' to rerun these tests and create the
5427
# libtool script then.
5428
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5429
if test -f "$ltmain_in"; then
5430
test -f Makefile && make "$ltmain"
5433
])# AC_LIBTOOL_CONFIG
5436
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5437
# -------------------------------------------
5438
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5439
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5441
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3301
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3302
dnl aclocal-1.4 backwards compatibility:
3303
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3306
# _LT_COMPILER_NO_RTTI([TAGNAME])
3307
# -------------------------------
3308
m4_defun([_LT_COMPILER_NO_RTTI],
3309
[m4_require([_LT_TAG_COMPILER])dnl
3311
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5443
3313
if test "$GCC" = yes; then
5444
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3314
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5446
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3316
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5447
3317
lt_cv_prog_compiler_rtti_exceptions,
5448
3318
[-fno-rtti -fno-exceptions], [],
5449
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3319
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5451
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5454
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5455
# ---------------------------------
5456
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5457
[AC_REQUIRE([AC_CANONICAL_HOST])
5458
AC_REQUIRE([AC_PROG_NM])
5459
AC_REQUIRE([AC_OBJEXT])
3321
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3322
[Compiler flag to turn off builtin functions])
3323
])# _LT_COMPILER_NO_RTTI
3326
# _LT_CMD_GLOBAL_SYMBOLS
3327
# ----------------------
3328
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3329
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3330
AC_REQUIRE([AC_PROG_CC])dnl
3331
AC_REQUIRE([LT_PATH_NM])dnl
3332
AC_REQUIRE([LT_PATH_LD])dnl
3333
m4_require([_LT_DECL_SED])dnl
3334
m4_require([_LT_DECL_EGREP])dnl
3335
m4_require([_LT_TAG_COMPILER])dnl
5460
3337
# Check for command to grab the raw symbol name followed by C symbol from nm.
5461
3338
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5462
3339
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6043
3991
# +Z the default
6046
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3994
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6049
3997
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6050
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3998
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6053
4001
irix5* | irix6* | nonstopux*)
6054
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4002
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6055
4003
# PIC (with -KPIC) is the default.
6056
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6060
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6061
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6064
linux* | k*bsd*-gnu)
4004
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4007
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6065
4008
case $cc_basename in
6067
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6068
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6069
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4009
# old Intel for x86_64 which still supported -KPIC.
4011
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4012
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4013
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4015
# icc used to be incompatible with GCC.
4016
# ICC 10 doesn't accept -KPIC any more.
4018
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4019
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4020
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4022
# Lahey Fortran 8.1.
4024
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4025
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4026
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6071
4028
pgcc* | pgf77* | pgf90* | pgf95*)
6072
4029
# Portland Group compilers (*not* the Pentium gcc compiler,
6073
4030
# which looks to be a dead project)
6074
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6075
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6076
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4031
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4032
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4033
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6079
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4036
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6080
4037
# All Alpha code is PIC.
6081
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4038
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4041
# IBM XL C 8.0/Fortran 10.1 on PPC
4042
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4044
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4047
case `$CC -V 2>&1 | sed 5q` in
4050
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4051
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4052
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4055
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4056
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4057
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4058
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4066
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4067
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4071
# QNX uses GNU C++, but need to define -shared option too, otherwise
4073
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6086
4076
osf3* | osf4* | osf5*)
6087
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4077
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6088
4078
# All OSF/1 code is PIC.
6089
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4079
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4083
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6093
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6094
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4087
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4088
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6095
4089
case $cc_basename in
6096
4090
f77* | f90* | f95*)
6097
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4091
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6099
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4093
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6104
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6105
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6106
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4098
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4099
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4100
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6109
4103
sysv4 | sysv4.2uw2* | sysv4.3*)
6110
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6111
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6112
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4104
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4105
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4106
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6116
4110
if test -d /usr/nec ;then
6117
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6118
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4111
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4112
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6122
4116
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6123
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6124
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6125
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4117
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4118
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4119
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6129
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6130
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4123
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4124
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6134
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6135
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4128
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4129
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6139
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4133
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6144
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4139
# For platforms which do not support PIC, -DPIC is meaningless:
4141
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4144
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4147
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4148
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4149
[How to pass a linker flag through the compiler])
6147
4152
# Check to make sure the PIC flag actually works.
6149
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6150
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6151
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6152
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6153
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4154
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4155
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4156
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4157
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4158
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6155
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4160
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6157
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6158
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4162
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4163
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6161
# For platforms which do not support PIC, -DPIC is meaningless:
6163
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6166
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4165
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4166
[Additional compiler flags for building library objects])
6171
4169
# Check to make sure the static flag actually works.
6173
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6174
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6175
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4171
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4172
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4173
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6176
4174
$lt_tmp_static_flag,
6178
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6182
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6183
# ------------------------------------
4176
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4177
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4178
[Compiler flag to prevent dynamic linking])
4179
])# _LT_COMPILER_PIC
4182
# _LT_LINKER_SHLIBS([TAGNAME])
4183
# ----------------------------
6184
4184
# See if the linker supports building shared libraries.
6185
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6186
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6188
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4185
m4_defun([_LT_LINKER_SHLIBS],
4186
[AC_REQUIRE([LT_PATH_LD])dnl
4187
AC_REQUIRE([LT_PATH_NM])dnl
4188
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4189
m4_require([_LT_DECL_EGREP])dnl
4190
m4_require([_LT_DECL_SED])dnl
4191
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4192
m4_require([_LT_TAG_COMPILER])dnl
4193
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4194
m4_if([$1], [CXX], [
4195
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6189
4196
case $host_os in
6191
4198
# If we're using GNU nm, then we don't want the "-C" option.
6192
4199
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6193
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6194
_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'
4200
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4201
_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'
6196
_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'
4203
_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'
6200
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4207
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6203
_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'
4209
cygwin* | mingw* | cegcc*)
4210
_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'
6205
4212
linux* | k*bsd*-gnu)
6206
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
4213
_LT_TAGVAR(link_all_deplibs, $1)=no
6209
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4216
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4219
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6214
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6215
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6216
_LT_AC_TAGVAR(archive_cmds, $1)=
6217
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6218
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6219
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6220
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6221
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6222
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6223
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6224
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6225
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6226
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6227
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6228
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6229
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6230
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6231
_LT_AC_TAGVAR(module_cmds, $1)=
6232
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6233
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6234
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4222
_LT_TAGVAR(allow_undefined_flag, $1)=
4223
_LT_TAGVAR(always_export_symbols, $1)=no
4224
_LT_TAGVAR(archive_cmds, $1)=
4225
_LT_TAGVAR(archive_expsym_cmds, $1)=
4226
_LT_TAGVAR(compiler_needs_object, $1)=no
4227
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4228
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4229
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4230
_LT_TAGVAR(hardcode_automatic, $1)=no
4231
_LT_TAGVAR(hardcode_direct, $1)=no
4232
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4233
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4234
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4235
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4236
_LT_TAGVAR(hardcode_minus_L, $1)=no
4237
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4238
_LT_TAGVAR(inherit_rpath, $1)=no
4239
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4240
_LT_TAGVAR(module_cmds, $1)=
4241
_LT_TAGVAR(module_expsym_cmds, $1)=
4242
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4243
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4244
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4245
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6235
4246
# include_expsyms should be a list of space-separated symbols to be *always*
6236
4247
# included in the symbol list
6237
_LT_AC_TAGVAR(include_expsyms, $1)=
4248
_LT_TAGVAR(include_expsyms, $1)=
6238
4249
# exclude_expsyms can be an extended regexp of symbols to exclude
6239
4250
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6240
4251
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6241
4252
# as well as any symbol that contains `d'.
6242
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
4253
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6243
4254
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6244
4255
# platforms (ab)use it in PIC code, but their linkers get confused if
6245
4256
# the symbol is explicitly referenced. Since portable code cannot
6246
4257
# rely on this symbol name, it's probably fine to never include it in
6247
4258
# preloaded symbol tables.
4259
# Exclude shared library initialization/finalization symbols.
4260
dnl Note also adjust exclude_expsyms for C++ above.
6248
4261
extract_expsyms_cmds=
6249
# Just being paranoid about ensuring that cc_basename is set.
6250
_LT_CC_BASENAME([$compiler])
6251
4263
case $host_os in
6252
cygwin* | mingw* | pw32*)
4264
cygwin* | mingw* | pw32* | cegcc*)
6253
4265
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6254
4266
# When not using gcc, we currently assume that we are using
6255
4267
# Microsoft Visual C++.
6830
4856
irix5* | irix6* | nonstopux*)
6831
4857
if test "$GCC" = yes; then
6832
_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'
4858
_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'
4859
# Try to use the -exported_symbol ld option, if it does not
4860
# work, assume that -exports_file does not work either and
4861
# implicitly export all symbols.
4862
save_LDFLAGS="$LDFLAGS"
4863
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4864
AC_LINK_IFELSE(int foo(void) {},
4865
_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'
4867
LDFLAGS="$save_LDFLAGS"
6834
_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'
6835
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4869
_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'
4870
_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'
6837
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6838
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6839
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4872
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4873
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4874
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4875
_LT_TAGVAR(inherit_rpath, $1)=yes
4876
_LT_TAGVAR(link_all_deplibs, $1)=yes
6842
4879
netbsd* | netbsdelf*-gnu)
6843
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6844
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4880
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4881
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6846
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4883
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6848
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6849
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6850
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4885
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4886
_LT_TAGVAR(hardcode_direct, $1)=yes
4887
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6854
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6855
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6856
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6857
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6858
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4891
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4892
_LT_TAGVAR(hardcode_direct, $1)=yes
4893
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4894
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4895
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6862
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6863
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6864
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6865
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6866
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6867
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6868
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4902
if test -f /usr/libexec/ld.so; then
4903
_LT_TAGVAR(hardcode_direct, $1)=yes
4904
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4905
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4906
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4907
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4908
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4909
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4910
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4913
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4914
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4915
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4918
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4919
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6871
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6872
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6873
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6876
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6877
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4924
_LT_TAGVAR(ld_shlibs, $1)=no
6884
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6885
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6886
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6887
_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'
6888
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4929
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4930
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4931
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4932
_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'
4933
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6892
4937
if test "$GCC" = yes; then
6893
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6894
_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'
4938
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4939
_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'
6896
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6897
_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'
4941
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4942
_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'
6899
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6900
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4944
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4945
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4946
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6903
4949
osf4* | osf5*) # as osf3* with the addition of -msym flag
6904
4950
if test "$GCC" = yes; then
6905
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6906
_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'
6907
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4951
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4952
_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'
4953
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6909
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6910
_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'
6911
_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~
6912
$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'
4955
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4956
_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'
4957
_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~
4958
$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'
6914
4960
# Both c and cxx compiler support -rpath directly
6915
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4961
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6917
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4963
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4964
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6921
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4968
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6922
4969
if test "$GCC" = yes; then
6924
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6925
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6926
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4971
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4972
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4973
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6929
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6930
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6931
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4975
case `$CC -V 2>&1` in
4978
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4979
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4980
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4984
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4985
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4986
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6933
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6934
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4990
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4991
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6935
4992
case $host_os in
6936
4993
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6938
# The compiler driver will combine linker options so we
6939
# cannot just pass the convience library names through
6940
# without $wl, iff we do not link with $LD.
6941
# Luckily, gcc supports the same syntax we need for Sun Studio.
6942
# Supported since Solaris 2.6 (maybe 2.5.1?)
6945
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6947
_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' ;;
4995
# The compiler driver will combine and reorder linker options,
4996
# but understands `-z linker_flag'. GCC discards it without `$wl',
4997
# but is careful enough not to reorder.
4998
# Supported since Solaris 2.6 (maybe 2.5.1?)
4999
if test "$GCC" = yes; then
5000
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5002
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6950
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5006
_LT_TAGVAR(link_all_deplibs, $1)=yes
6954
5010
if test "x$host_vendor" = xsequent; then
6955
5011
# Use $CC to link under sequent, because it throws in some extra .o
6956
5012
# files that make .init and .fini sections work.
6957
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5013
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6959
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5015
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6961
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6962
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6963
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6964
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5017
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5018
_LT_TAGVAR(hardcode_direct, $1)=yes
5019
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5020
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6968
5024
case $host_vendor in
6970
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6971
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5026
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5027
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6974
5030
## LD is ld it makes a PLAMLIB
6975
5031
## CC just makes a GrossModule.
6976
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6977
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6978
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5032
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5033
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5034
_LT_TAGVAR(hardcode_direct, $1)=no
6981
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6982
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5037
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5038
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6985
5041
runpath_var='LD_RUN_PATH'
6986
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5042
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6990
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6991
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6992
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5046
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5047
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5048
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6996
5052
if test -d /usr/nec; then
6997
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6998
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5053
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5054
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6999
5055
runpath_var=LD_RUN_PATH
7000
5056
hardcode_runpath_var=yes
7001
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5057
_LT_TAGVAR(ld_shlibs, $1)=yes
7005
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7006
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7007
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7008
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5061
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5062
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5063
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5064
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7009
5065
runpath_var='LD_RUN_PATH'
7011
5067
if test "$GCC" = yes; then
7012
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7013
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5068
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5069
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7015
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7016
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5071
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5072
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7076
5147
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7077
5148
# to ld, don't add -lc before -lgcc.
7078
5149
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7080
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5151
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7082
5153
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7083
5154
soname=conftest
7085
5156
libobjs=conftest.$ac_objext
7087
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7088
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5158
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5159
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7089
5160
compiler_flags=-v
7090
5161
linker_flags=-v
7092
5163
output_objdir=.
7093
5164
libname=conftest
7094
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7095
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7096
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5165
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5166
_LT_TAGVAR(allow_undefined_flag, $1)=
5167
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7098
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5169
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7100
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5171
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7102
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5173
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7104
5175
cat conftest.err 1>&5
7107
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5178
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7113
])# AC_LIBTOOL_PROG_LD_SHLIBS
7116
# _LT_AC_FILE_LTDLL_C
7117
# -------------------
7118
# Be careful that the start marker always follows a newline.
7119
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7120
# /* ltdll.c starts here */
7121
# #define WIN32_LEAN_AND_MEAN
7122
# #include <windows.h>
7123
# #undef WIN32_LEAN_AND_MEAN
7124
# #include <stdio.h>
7126
# #ifndef __CYGWIN__
7127
# # ifdef __CYGWIN32__
7128
# # define __CYGWIN__ __CYGWIN32__
7132
# #ifdef __cplusplus
7135
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7136
# #ifdef __cplusplus
7141
# #include <cygwin/cygwin_dll.h>
7142
# DECLARE_CYGWIN_DLL( DllMain );
7144
# HINSTANCE __hDllInstance_base;
7147
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7149
# __hDllInstance_base = hInst;
7152
# /* ltdll.c ends here */
7153
])# _LT_AC_FILE_LTDLL_C
7156
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5185
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5186
[Whether or not to add -lc for building shared libraries])
5187
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5188
[enable_shared_with_static_runtimes], [0],
5189
[Whether or not to disallow shared libs when runtime libs are static])
5190
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5191
[Compiler flag to allow reflexive dlopens])
5192
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5193
[Compiler flag to generate shared objects directly from archives])
5194
_LT_TAGDECL([], [compiler_needs_object], [1],
5195
[Whether the compiler copes with passing no objects directly])
5196
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5197
[Create an old-style archive from a shared archive])
5198
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5199
[Create a temporary old-style archive to link instead of a shared archive])
5200
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5201
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5202
_LT_TAGDECL([], [module_cmds], [2],
5203
[Commands used to build a loadable module if different from building
5205
_LT_TAGDECL([], [module_expsym_cmds], [2])
5206
_LT_TAGDECL([], [with_gnu_ld], [1],
5207
[Whether we are building with GNU ld or not])
5208
_LT_TAGDECL([], [allow_undefined_flag], [1],
5209
[Flag that allows shared libraries with undefined symbols to be built])
5210
_LT_TAGDECL([], [no_undefined_flag], [1],
5211
[Flag that enforces no undefined symbols])
5212
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5213
[Flag to hardcode $libdir into a binary during linking.
5214
This must work even if $libdir does not exist])
5215
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5216
[[If ld is used when linking, flag to hardcode $libdir into a binary
5217
during linking. This must work even if $libdir does not exist]])
5218
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5219
[Whether we need a single "-rpath" flag with a separated argument])
5220
_LT_TAGDECL([], [hardcode_direct], [0],
5221
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5222
DIR into the resulting binary])
5223
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5224
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5225
DIR into the resulting binary and the resulting library dependency is
5226
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5227
library is relocated])
5228
_LT_TAGDECL([], [hardcode_minus_L], [0],
5229
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5230
into the resulting binary])
5231
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5232
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5233
into the resulting binary])
5234
_LT_TAGDECL([], [hardcode_automatic], [0],
5235
[Set to "yes" if building a shared library automatically hardcodes DIR
5236
into the library and all subsequent libraries and executables linked
5238
_LT_TAGDECL([], [inherit_rpath], [0],
5239
[Set to yes if linker adds runtime paths of dependent libraries
5240
to runtime path list])
5241
_LT_TAGDECL([], [link_all_deplibs], [0],
5242
[Whether libtool must link a program against all its dependency libraries])
5243
_LT_TAGDECL([], [fix_srcfile_path], [1],
5244
[Fix the shell variable $srcfile for the compiler])
5245
_LT_TAGDECL([], [always_export_symbols], [0],
5246
[Set to "yes" if exported symbols are required])
5247
_LT_TAGDECL([], [export_symbols_cmds], [2],
5248
[The commands to list exported symbols])
5249
_LT_TAGDECL([], [exclude_expsyms], [1],
5250
[Symbols that should not be listed in the preloaded symbols])
5251
_LT_TAGDECL([], [include_expsyms], [1],
5252
[Symbols that must always be exported])
5253
_LT_TAGDECL([], [prelink_cmds], [2],
5254
[Commands necessary for linking programs (against libraries) with templates])
5255
_LT_TAGDECL([], [file_list_spec], [1],
5256
[Specify filename containing input files])
5257
dnl FIXME: Not yet implemented
5258
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5259
dnl [Compiler flag to generate thread safe objects])
5260
])# _LT_LINKER_SHLIBS
5263
# _LT_LANG_C_CONFIG([TAG])
5264
# ------------------------
5265
# Ensure that the configuration variables for a C compiler are suitably
5266
# defined. These variables are subsequently used by _LT_CONFIG to write
5267
# the compiler configuration to `libtool'.
5268
m4_defun([_LT_LANG_C_CONFIG],
5269
[m4_require([_LT_DECL_EGREP])dnl
5273
# Source file extension for C test sources.
5276
# Object file extension for compiled C test sources.
5278
_LT_TAGVAR(objext, $1)=$objext
5280
# Code to be used in simple compile tests
5281
lt_simple_compile_test_code="int some_variable = 0;"
5283
# Code to be used in simple link tests
5284
lt_simple_link_test_code='int main(){return(0);}'
5287
# Save the default compiler, since it gets overwritten when the other
5288
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5289
compiler_DEFAULT=$CC
5291
# save warnings/boilerplate of simple test code
5292
_LT_COMPILER_BOILERPLATE
5293
_LT_LINKER_BOILERPLATE
5295
if test -n "$compiler"; then
5296
_LT_COMPILER_NO_RTTI($1)
5297
_LT_COMPILER_PIC($1)
5298
_LT_COMPILER_C_O($1)
5299
_LT_COMPILER_FILE_LOCKS($1)
5300
_LT_LINKER_SHLIBS($1)
5301
_LT_SYS_DYNAMIC_LINKER($1)
5302
_LT_LINKER_HARDCODE_LIBPATH($1)
5306
# Report which library types will actually be built
5307
AC_MSG_CHECKING([if libtool supports shared libraries])
5308
AC_MSG_RESULT([$can_build_shared])
5310
AC_MSG_CHECKING([whether to build shared libraries])
5311
test "$can_build_shared" = "no" && enable_shared=no
5313
# On AIX, shared libraries and static libraries use the same namespace, and
5314
# are all built from PIC.
5317
test "$enable_shared" = yes && enable_static=no
5318
if test -n "$RANLIB"; then
5319
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5320
postinstall_cmds='$RANLIB $lib'
5325
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5326
test "$enable_shared" = yes && enable_static=no
5330
AC_MSG_RESULT([$enable_shared])
5332
AC_MSG_CHECKING([whether to build static libraries])
5333
# Make sure either enable_shared or enable_static is yes.
5334
test "$enable_shared" = yes || enable_static=yes
5335
AC_MSG_RESULT([$enable_static])
5341
])# _LT_LANG_C_CONFIG
5346
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5347
# compiler, we have our own version here.
5348
m4_defun([_LT_PROG_CXX],
5350
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5352
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5353
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5354
(test "X$CXX" != "Xg++"))) ; then
5357
_lt_caught_CXX_error=yes
5359
popdef([AC_MSG_ERROR])
5362
dnl aclocal-1.4 backwards compatibility:
5363
dnl AC_DEFUN([_LT_PROG_CXX], [])
5366
# _LT_LANG_CXX_CONFIG([TAG])
5367
# --------------------------
5368
# Ensure that the configuration variables for a C++ compiler are suitably
5369
# defined. These variables are subsequently used by _LT_CONFIG to write
5370
# the compiler configuration to `libtool'.
5371
m4_defun([_LT_LANG_CXX_CONFIG],
5372
[AC_REQUIRE([_LT_PROG_CXX])dnl
5373
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5374
m4_require([_LT_DECL_EGREP])dnl
5377
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5378
_LT_TAGVAR(allow_undefined_flag, $1)=
5379
_LT_TAGVAR(always_export_symbols, $1)=no
5380
_LT_TAGVAR(archive_expsym_cmds, $1)=
5381
_LT_TAGVAR(compiler_needs_object, $1)=no
5382
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5383
_LT_TAGVAR(hardcode_direct, $1)=no
5384
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5385
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5386
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5387
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5388
_LT_TAGVAR(hardcode_minus_L, $1)=no
5389
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5390
_LT_TAGVAR(hardcode_automatic, $1)=no
5391
_LT_TAGVAR(inherit_rpath, $1)=no
5392
_LT_TAGVAR(module_cmds, $1)=
5393
_LT_TAGVAR(module_expsym_cmds, $1)=
5394
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5395
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5396
_LT_TAGVAR(no_undefined_flag, $1)=
5397
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5398
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5400
# Source file extension for C++ test sources.
5403
# Object file extension for compiled C++ test sources.
5405
_LT_TAGVAR(objext, $1)=$objext
5407
# No sense in running all these tests if we already determined that
5408
# the CXX compiler isn't working. Some variables (like enable_shared)
5409
# are currently assumed to apply to all compilers on this platform,
5410
# and will be corrupted by setting them based on a non-working compiler.
5411
if test "$_lt_caught_CXX_error" != yes; then
5412
# Code to be used in simple compile tests
5413
lt_simple_compile_test_code="int some_variable = 0;"
5415
# Code to be used in simple link tests
5416
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5418
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5421
# save warnings/boilerplate of simple test code
5422
_LT_COMPILER_BOILERPLATE
5423
_LT_LINKER_BOILERPLATE
5425
# Allow CC to be a program name with arguments.
5430
lt_save_with_gnu_ld=$with_gnu_ld
5431
lt_save_path_LD=$lt_cv_path_LD
5432
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5433
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5435
$as_unset lt_cv_prog_gnu_ld
5437
if test -n "${lt_cv_path_LDCXX+set}"; then
5438
lt_cv_path_LD=$lt_cv_path_LDCXX
5440
$as_unset lt_cv_path_LD
5442
test -z "${LDCXX+set}" || LD=$LDCXX
5445
_LT_TAGVAR(compiler, $1)=$CC
5446
_LT_CC_BASENAME([$compiler])
5448
if test -n "$compiler"; then
5449
# We don't want -fno-exception when compiling C++ code, so set the
5450
# no_builtin_flag separately
5451
if test "$GXX" = yes; then
5452
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5454
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5457
if test "$GXX" = yes; then
5458
# Set up default GNU C++ configuration
5462
# Check if GNU C++ uses GNU ld as the underlying linker, since the
5463
# archiving commands below assume that GNU ld is being used.
5464
if test "$with_gnu_ld" = yes; then
5465
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5466
_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'
5468
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5469
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5471
# If archive_cmds runs LD, not CC, wlarc should be empty
5472
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5473
# investigate it a little bit more. (MM)
5476
# ancient GNU ld didn't support --whole-archive et. al.
5477
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5478
$GREP 'no-whole-archive' > /dev/null; then
5479
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5481
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5487
# A generic and very simple default shared library creation
5488
# command for GNU C++ for the case where it uses the native
5489
# linker, instead of GNU ld. If possible, this setting should
5490
# overridden to take advantage of the native linker features on
5491
# the platform it is being used on.
5492
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5495
# Commands to make compiler produce verbose output that lists
5496
# what "hidden" libraries, object files and flags are used when
5497
# linking a shared library.
5498
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5506
# PORTME: fill in a description of your system's C++ link characteristics
5507
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5508
_LT_TAGVAR(ld_shlibs, $1)=yes
5511
# FIXME: insert proper C++ library support
5512
_LT_TAGVAR(ld_shlibs, $1)=no
5515
if test "$host_cpu" = ia64; then
5516
# On IA64, the linker does run time linking by default, so we don't
5517
# have to do anything special.
5518
aix_use_runtimelinking=no
5519
exp_sym_flag='-Bexport'
5522
aix_use_runtimelinking=no
5524
# Test if we are trying to use run time linking or normal
5525
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5526
# need to do runtime linking.
5527
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5528
for ld_flag in $LDFLAGS; do
5531
aix_use_runtimelinking=yes
5539
exp_sym_flag='-bexport'
5540
no_entry_flag='-bnoentry'
5543
# When large executables or shared objects are built, AIX ld can
5544
# have problems creating the table of contents. If linking a library
5545
# or program results in "error TOC overflow" add -mminimal-toc to
5546
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5547
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5549
_LT_TAGVAR(archive_cmds, $1)=''
5550
_LT_TAGVAR(hardcode_direct, $1)=yes
5551
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5552
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5553
_LT_TAGVAR(link_all_deplibs, $1)=yes
5554
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5556
if test "$GXX" = yes; then
5557
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5558
# We only want to do this on AIX 4.2 and lower, the check
5559
# below for broken collect2 doesn't work under 4.3+
5560
collect2name=`${CC} -print-prog-name=collect2`
5561
if test -f "$collect2name" &&
5562
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5564
# We have reworked collect2
5567
# We have old collect2
5568
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5569
# It fails to find uninstalled libraries when the uninstalled
5570
# path is not listed in the libpath. Setting hardcode_minus_L
5571
# to unsupported forces relinking
5572
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5573
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5574
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5577
shared_flag='-shared'
5578
if test "$aix_use_runtimelinking" = yes; then
5579
shared_flag="$shared_flag "'${wl}-G'
5583
if test "$host_cpu" = ia64; then
5584
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5585
# chokes on -Wl,-G. The following line is correct:
5588
if test "$aix_use_runtimelinking" = yes; then
5589
shared_flag='${wl}-G'
5591
shared_flag='${wl}-bM:SRE'
5596
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5597
# It seems that -bexpall does not export symbols beginning with
5598
# underscore (_), so it is better to generate a list of symbols to
5600
_LT_TAGVAR(always_export_symbols, $1)=yes
5601
if test "$aix_use_runtimelinking" = yes; then
5602
# Warning - without using the other runtime loading flags (-brtl),
5603
# -berok will link without error, but may produce a broken library.
5604
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5605
# Determine the default libpath from the value encoded in an empty
5607
_LT_SYS_MODULE_PATH_AIX
5608
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5610
_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"
5612
if test "$host_cpu" = ia64; then
5613
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5614
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5615
_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"
5617
# Determine the default libpath from the value encoded in an
5619
_LT_SYS_MODULE_PATH_AIX
5620
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5621
# Warning - without using the other run time loading flags,
5622
# -berok will link without error, but may produce a broken library.
5623
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5624
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5625
# Exported symbols can be pulled into shared objects from archives
5626
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5627
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5628
# This is similar to how AIX traditionally builds its shared
5630
_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'
5636
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5637
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5638
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5639
# support --undefined. This deserves some investigation. FIXME
5640
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5642
_LT_TAGVAR(ld_shlibs, $1)=no
5647
case $cc_basename in
5649
# FIXME: insert proper C++ library support
5650
_LT_TAGVAR(ld_shlibs, $1)=no
5655
cygwin* | mingw* | pw32* | cegcc*)
5656
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5657
# as there is no search path for DLLs.
5658
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5659
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5660
_LT_TAGVAR(always_export_symbols, $1)=no
5661
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5663
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5664
_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'
5665
# If the export-symbols file already is a .def file (1st line
5666
# is EXPORTS), use it as is; otherwise, prepend...
5667
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5668
cp $export_symbols $output_objdir/$soname.def;
5670
echo EXPORTS > $output_objdir/$soname.def;
5671
cat $export_symbols >> $output_objdir/$soname.def;
5673
$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'
5675
_LT_TAGVAR(ld_shlibs, $1)=no
5678
darwin* | rhapsody*)
5679
_LT_DARWIN_LINKER_FEATURES($1)
5683
case $cc_basename in
5685
# FIXME: insert proper C++ library support
5686
_LT_TAGVAR(ld_shlibs, $1)=no
5689
# Green Hills C++ Compiler
5690
# FIXME: insert proper C++ library support
5691
_LT_TAGVAR(ld_shlibs, $1)=no
5694
# FIXME: insert proper C++ library support
5695
_LT_TAGVAR(ld_shlibs, $1)=no
5701
# C++ shared libraries reported to be fairly broken before
5703
_LT_TAGVAR(ld_shlibs, $1)=no
5707
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5710
freebsd* | dragonfly*)
5711
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5713
_LT_TAGVAR(ld_shlibs, $1)=yes
5720
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5721
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5722
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5723
_LT_TAGVAR(hardcode_direct, $1)=yes
5724
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5725
# but as the default
5726
# location of the library.
5728
case $cc_basename in
5730
# FIXME: insert proper C++ library support
5731
_LT_TAGVAR(ld_shlibs, $1)=no
5734
_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'
5735
# Commands to make compiler produce verbose output that lists
5736
# what "hidden" libraries, object files and flags are used when
5737
# linking a shared library.
5739
# There doesn't appear to be a way to prevent this compiler from
5740
# explicitly linking system object files so we need to strip them
5741
# from the output so that they don't get included in the library
5743
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'
5746
if test "$GXX" = yes; then
5747
_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'
5749
# FIXME: insert proper C++ library support
5750
_LT_TAGVAR(ld_shlibs, $1)=no
5757
if test $with_gnu_ld = no; then
5758
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5759
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5765
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5771
_LT_TAGVAR(hardcode_direct, $1)=no
5772
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5775
_LT_TAGVAR(hardcode_direct, $1)=yes
5776
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5777
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5778
# but as the default
5779
# location of the library.
5783
case $cc_basename in
5785
# FIXME: insert proper C++ library support
5786
_LT_TAGVAR(ld_shlibs, $1)=no
5791
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5794
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5797
_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'
5800
# Commands to make compiler produce verbose output that lists
5801
# what "hidden" libraries, object files and flags are used when
5802
# linking a shared library.
5804
# There doesn't appear to be a way to prevent this compiler from
5805
# explicitly linking system object files so we need to strip them
5806
# from the output so that they don't get included in the library
5808
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'
5811
if test "$GXX" = yes; then
5812
if test $with_gnu_ld = no; then
5815
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5818
_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'
5821
_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'
5826
# FIXME: insert proper C++ library support
5827
_LT_TAGVAR(ld_shlibs, $1)=no
5834
_LT_TAGVAR(hardcode_direct, $1)=no
5835
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5836
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5837
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5838
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5839
# Instead, shared libraries are loaded at an image base (0x10000000 by
5840
# default) and relocated if they conflict, which is a slow very memory
5841
# consuming and fragmenting process. To avoid this, we pick a random,
5842
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5843
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5844
_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'
5845
_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'
5848
case $cc_basename in
5851
_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'
5853
# Archives containing C++ object files must be created using
5854
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
5855
# necessary to make sure instantiated templates are included
5857
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5860
if test "$GXX" = yes; then
5861
if test "$with_gnu_ld" = no; then
5862
_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'
5864
_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'
5867
_LT_TAGVAR(link_all_deplibs, $1)=yes
5870
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5871
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5872
_LT_TAGVAR(inherit_rpath, $1)=yes
5875
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5876
case $cc_basename in
5878
# Kuck and Associates, Inc. (KAI) C++ Compiler
5880
# KCC will only create a shared library if the output file
5881
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5882
# to its proper name (with version) after linking.
5883
_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'
5884
_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'
5885
# Commands to make compiler produce verbose output that lists
5886
# what "hidden" libraries, object files and flags are used when
5887
# linking a shared library.
5889
# There doesn't appear to be a way to prevent this compiler from
5890
# explicitly linking system object files so we need to strip them
5891
# from the output so that they don't get included in the library
5893
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'
5895
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5896
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5898
# Archives containing C++ object files must be created using
5899
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5900
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5905
# version 8.0 and above of icpc choke on multiply defined symbols
5906
# if we add $predep_objects and $postdep_objects, however 7.1 and
5907
# earlier do not add the objects themselves.
5908
case `$CC -V 2>&1` in
5910
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5911
_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'
5913
*) # Version 8.0 or newer
5916
ia64*) tmp_idyn=' -i_dynamic';;
5918
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5919
_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'
5922
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5923
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5924
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5925
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5928
# Portland Group C++ compiler
5930
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5931
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5933
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5934
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5935
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5937
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5938
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5940
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5942
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5943
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5944
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5946
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5947
$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'
5949
*) # Version 6 will use weak symbols
5950
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5951
_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'
5955
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5956
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5957
_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'
5961
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5962
_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'
5964
runpath_var=LD_RUN_PATH
5965
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5966
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5968
# Commands to make compiler produce verbose output that lists
5969
# what "hidden" libraries, object files and flags are used when
5970
# linking a shared library.
5972
# There doesn't appear to be a way to prevent this compiler from
5973
# explicitly linking system object files so we need to strip them
5974
# from the output so that they don't get included in the library
5976
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'
5979
# IBM XL 8.0 on PPC, with GNU ld
5980
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5981
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5982
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5983
if test "x$supports_anon_versioning" = xyes; then
5984
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5985
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5986
echo "local: *; };" >> $output_objdir/$libname.ver~
5987
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5991
case `$CC -V 2>&1 | sed 5q` in
5994
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5995
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5996
_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'
5997
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5998
_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'
5999
_LT_TAGVAR(compiler_needs_object, $1)=yes
6001
# Not sure whether something based on
6002
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6004
output_verbose_link_cmd='echo'
6006
# Archives containing C++ object files must be created using
6007
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6008
# necessary to make sure instantiated templates are included
6010
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6018
# FIXME: insert proper C++ library support
6019
_LT_TAGVAR(ld_shlibs, $1)=no
6023
# FIXME: insert proper C++ library support
6024
_LT_TAGVAR(ld_shlibs, $1)=no
6028
case $cc_basename in
6030
# FIXME: insert proper C++ library support
6031
_LT_TAGVAR(ld_shlibs, $1)=no
6034
# FIXME: insert proper C++ library support
6035
_LT_TAGVAR(ld_shlibs, $1)=no
6041
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6042
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6044
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6045
_LT_TAGVAR(hardcode_direct, $1)=yes
6046
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6048
# Workaround some broken pre-1.5 toolchains
6049
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6053
_LT_TAGVAR(ld_shlibs, $1)=yes
6057
# C++ shared libraries are fairly broken
6058
_LT_TAGVAR(ld_shlibs, $1)=no
6062
if test -f /usr/libexec/ld.so; then
6063
_LT_TAGVAR(hardcode_direct, $1)=yes
6064
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6065
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6066
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6067
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6068
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6069
_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'
6070
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6071
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6073
output_verbose_link_cmd=echo
6075
_LT_TAGVAR(ld_shlibs, $1)=no
6079
osf3* | osf4* | osf5*)
6080
case $cc_basename in
6082
# Kuck and Associates, Inc. (KAI) C++ Compiler
6084
# KCC will only create a shared library if the output file
6085
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6086
# to its proper name (with version) after linking.
6087
_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'
6089
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6090
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6092
# Archives containing C++ object files must be created using
6093
# the KAI C++ compiler.
6095
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6096
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6100
# Rational C++ 2.4.1
6101
# FIXME: insert proper C++ library support
6102
_LT_TAGVAR(ld_shlibs, $1)=no
6107
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6108
_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'
6109
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6112
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6113
_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'
6114
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6115
echo "-hidden">> $lib.exp~
6116
$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~
6118
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6122
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6124
# Commands to make compiler produce verbose output that lists
6125
# what "hidden" libraries, object files and flags are used when
6126
# linking a shared library.
6128
# There doesn't appear to be a way to prevent this compiler from
6129
# explicitly linking system object files so we need to strip them
6130
# from the output so that they don't get included in the library
6132
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'
6135
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6136
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6139
_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'
6142
_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'
6146
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6147
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6149
# Commands to make compiler produce verbose output that lists
6150
# what "hidden" libraries, object files and flags are used when
6151
# linking a shared library.
6152
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6155
# FIXME: insert proper C++ library support
6156
_LT_TAGVAR(ld_shlibs, $1)=no
6163
# FIXME: insert proper C++ library support
6164
_LT_TAGVAR(ld_shlibs, $1)=no
6168
case $cc_basename in
6171
# FIXME: insert proper C++ library support
6172
_LT_TAGVAR(ld_shlibs, $1)=no
6176
# FIXME: insert proper C++ library support
6177
_LT_TAGVAR(ld_shlibs, $1)=no
6180
# FIXME: insert proper C++ library support
6181
_LT_TAGVAR(ld_shlibs, $1)=no
6187
case $cc_basename in
6189
# Sun C++ 4.2, 5.x and Centerline C++
6190
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6191
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6192
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6193
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6194
$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'
6196
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6197
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6199
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6201
# The compiler driver will combine and reorder linker options,
6202
# but understands `-z linker_flag'.
6203
# Supported since Solaris 2.6 (maybe 2.5.1?)
6204
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6207
_LT_TAGVAR(link_all_deplibs, $1)=yes
6209
output_verbose_link_cmd='echo'
6211
# Archives containing C++ object files must be created using
6212
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6213
# necessary to make sure instantiated templates are included
6215
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6218
# Green Hills C++ Compiler
6219
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6221
# The C++ compiler must be used to create the archive.
6222
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6225
# GNU C++ compiler with Solaris linker
6226
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6227
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6228
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6229
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6230
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6231
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6233
# Commands to make compiler produce verbose output that lists
6234
# what "hidden" libraries, object files and flags are used when
6235
# linking a shared library.
6236
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6238
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6240
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6241
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6242
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6244
# Commands to make compiler produce verbose output that lists
6245
# what "hidden" libraries, object files and flags are used when
6246
# linking a shared library.
6247
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6250
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6252
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6254
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6262
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6263
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6264
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6265
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6266
runpath_var='LD_RUN_PATH'
6268
case $cc_basename in
6270
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6271
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6274
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6275
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6280
sysv5* | sco3.2v5* | sco5v6*)
6281
# Note: We can NOT use -z defs as we might desire, because we do not
6282
# link with -lc, and that would cause any symbols used from libc to
6283
# always be unresolved, which means just about no library would
6284
# ever link correctly. If we're not using GNU ld we use -z text
6285
# though, which does catch some bad symbols but isn't as heavy-handed
6287
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6288
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6289
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6290
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6291
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6292
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6293
_LT_TAGVAR(link_all_deplibs, $1)=yes
6294
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6295
runpath_var='LD_RUN_PATH'
6297
case $cc_basename in
6299
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6300
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6303
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6304
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6310
case $cc_basename in
6312
# NonStop-UX NCC 3.20
6313
# FIXME: insert proper C++ library support
6314
_LT_TAGVAR(ld_shlibs, $1)=no
6317
# FIXME: insert proper C++ library support
6318
_LT_TAGVAR(ld_shlibs, $1)=no
6324
# FIXME: insert proper C++ library support
6325
_LT_TAGVAR(ld_shlibs, $1)=no
6329
# FIXME: insert proper C++ library support
6330
_LT_TAGVAR(ld_shlibs, $1)=no
6334
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6335
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6337
_LT_TAGVAR(GCC, $1)="$GXX"
6338
_LT_TAGVAR(LD, $1)="$LD"
6341
## There is no encapsulation within the following macros, do not change
6342
## the running order or otherwise move them around unless you know exactly
6343
## what you are doing...
6344
_LT_SYS_HIDDEN_LIBDEPS($1)
6345
_LT_COMPILER_PIC($1)
6346
_LT_COMPILER_C_O($1)
6347
_LT_COMPILER_FILE_LOCKS($1)
6348
_LT_LINKER_SHLIBS($1)
6349
_LT_SYS_DYNAMIC_LINKER($1)
6350
_LT_LINKER_HARDCODE_LIBPATH($1)
6353
fi # test -n "$compiler"
6359
with_gnu_ld=$lt_save_with_gnu_ld
6360
lt_cv_path_LDCXX=$lt_cv_path_LD
6361
lt_cv_path_LD=$lt_save_path_LD
6362
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6363
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6364
fi # test "$_lt_caught_CXX_error" != yes
6367
])# _LT_LANG_CXX_CONFIG
6370
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7157
6371
# ---------------------------------
7158
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7162
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7163
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7164
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7165
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7166
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7167
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7168
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7170
# This is just to silence aclocal about the macro not being used
7171
ifelse([AC_DISABLE_FAST_INSTALL])
7173
AC_DEFUN([LT_AC_PROG_GCJ],
7174
[AC_CHECK_TOOL(GCJ, gcj, no)
7175
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7179
AC_DEFUN([LT_AC_PROG_RC],
7180
[AC_CHECK_TOOL(RC, windres, no)
6372
# Figure out "hidden" library dependencies from verbose
6373
# compiler output when linking a shared library.
6374
# Parse the compiler output and extract the necessary
6375
# objects, libraries and library flags.
6376
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6377
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6378
# Dependencies to place before and after the object being linked:
6379
_LT_TAGVAR(predep_objects, $1)=
6380
_LT_TAGVAR(postdep_objects, $1)=
6381
_LT_TAGVAR(predeps, $1)=
6382
_LT_TAGVAR(postdeps, $1)=
6383
_LT_TAGVAR(compiler_lib_search_path, $1)=
6385
dnl we can't use the lt_simple_compile_test_code here,
6386
dnl because it contains code intended for an executable,
6387
dnl not a library. It's possible we should let each
6388
dnl tag define a new lt_????_link_test_code variable,
6389
dnl but it's only used here...
6390
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6392
void foo (void) { a = 0; }
6394
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6398
Foo (void) { a = 0; }
6403
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6411
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6419
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6422
public void bar (void) {
6428
dnl Parse the compiler output and extract the necessary
6429
dnl objects, libraries and library flags.
6430
if AC_TRY_EVAL(ac_compile); then
6431
# Parse the compiler output and extract the necessary
6432
# objects, libraries and library flags.
6434
# Sentinel used to keep track of whether or not we are before
6435
# the conftest object file.
6436
pre_test_object_deps_done=no
6438
for p in `eval "$output_verbose_link_cmd"`; do
6442
# Some compilers place space between "-{L,R}" and the path.
6444
if test $p = "-L" ||
6445
test $p = "-R"; then
6452
if test "$pre_test_object_deps_done" = no; then
6455
# Internal compiler library paths should come after those
6456
# provided the user. The postdeps already come after the
6457
# user supplied libs so there is no need to process them.
6458
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6459
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6461
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6464
# The "-l" case would never come before the object being
6465
# linked, so don't bother handling this case.
6468
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6469
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
6471
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6477
# This assumes that the test object file only shows up
6478
# once in the compiler output.
6479
if test "$p" = "conftest.$objext"; then
6480
pre_test_object_deps_done=yes
6484
if test "$pre_test_object_deps_done" = no; then
6485
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6486
_LT_TAGVAR(predep_objects, $1)="$p"
6488
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6491
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6492
_LT_TAGVAR(postdep_objects, $1)="$p"
6494
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6499
*) ;; # Ignore the rest.
6507
echo "libtool.m4: error: problem compiling $1 test program"
6510
$RM -f confest.$objext
6512
# PORTME: override above test on systems where it is broken
6516
# Interix 3.5 installs completely hosed .la files for C++, so rather than
6517
# hack all around it, let's just trust "g++" to DTRT.
6518
_LT_TAGVAR(predep_objects,$1)=
6519
_LT_TAGVAR(postdep_objects,$1)=
6520
_LT_TAGVAR(postdeps,$1)=
6524
case `$CC -V 2>&1 | sed 5q` in
6528
# The more standards-conforming stlport4 library is
6529
# incompatible with the Cstd library. Avoid specifying
6530
# it if it's in CXXFLAGS. Ignore libCrun as
6531
# -library=stlport4 depends on it.
6532
case " $CXX $CXXFLAGS " in
6533
*" -library=stlport4 "*)
6534
solaris_use_stlport4=yes
6538
if test "$solaris_use_stlport4" != yes; then
6539
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6546
case $cc_basename in
6548
# The more standards-conforming stlport4 library is
6549
# incompatible with the Cstd library. Avoid specifying
6550
# it if it's in CXXFLAGS. Ignore libCrun as
6551
# -library=stlport4 depends on it.
6552
case " $CXX $CXXFLAGS " in
6553
*" -library=stlport4 "*)
6554
solaris_use_stlport4=yes
6558
# Adding this requires a known-good setup of shared libraries for
6559
# Sun compiler versions before 5.6, else PIC objects from an old
6560
# archive will be linked into the output, leading to subtle bugs.
6561
if test "$solaris_use_stlport4" != yes; then
6562
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6570
case " $_LT_TAGVAR(postdeps, $1) " in
6571
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6573
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
6574
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6575
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6577
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6578
[The directories searched by this compiler when creating a shared library])
6579
_LT_TAGDECL([], [predep_objects], [1],
6580
[Dependencies to place before and after the objects being linked to
6581
create a shared library])
6582
_LT_TAGDECL([], [postdep_objects], [1])
6583
_LT_TAGDECL([], [predeps], [1])
6584
_LT_TAGDECL([], [postdeps], [1])
6585
_LT_TAGDECL([], [compiler_lib_search_path], [1],
6586
[The library search path used internally by the compiler when linking
6588
])# _LT_SYS_HIDDEN_LIBDEPS
6593
# Since AC_PROG_F77 is broken, in that it returns the empty string
6594
# if there is no fortran compiler, we have our own version here.
6595
m4_defun([_LT_PROG_F77],
6597
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6599
if test -z "$F77" || test "X$F77" = "Xno"; then
6602
popdef([AC_MSG_ERROR])
6605
dnl aclocal-1.4 backwards compatibility:
6606
dnl AC_DEFUN([_LT_PROG_F77], [])
6609
# _LT_LANG_F77_CONFIG([TAG])
6610
# --------------------------
6611
# Ensure that the configuration variables for a Fortran 77 compiler are
6612
# suitably defined. These variables are subsequently used by _LT_CONFIG
6613
# to write the compiler configuration to `libtool'.
6614
m4_defun([_LT_LANG_F77_CONFIG],
6615
[AC_REQUIRE([_LT_PROG_F77])dnl
6616
AC_LANG_PUSH(Fortran 77)
6618
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6619
_LT_TAGVAR(allow_undefined_flag, $1)=
6620
_LT_TAGVAR(always_export_symbols, $1)=no
6621
_LT_TAGVAR(archive_expsym_cmds, $1)=
6622
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6623
_LT_TAGVAR(hardcode_direct, $1)=no
6624
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6625
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6626
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6627
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6628
_LT_TAGVAR(hardcode_minus_L, $1)=no
6629
_LT_TAGVAR(hardcode_automatic, $1)=no
6630
_LT_TAGVAR(inherit_rpath, $1)=no
6631
_LT_TAGVAR(module_cmds, $1)=
6632
_LT_TAGVAR(module_expsym_cmds, $1)=
6633
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6634
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6635
_LT_TAGVAR(no_undefined_flag, $1)=
6636
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6637
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6639
# Source file extension for f77 test sources.
6642
# Object file extension for compiled f77 test sources.
6644
_LT_TAGVAR(objext, $1)=$objext
6646
# No sense in running all these tests if we already determined that
6647
# the F77 compiler isn't working. Some variables (like enable_shared)
6648
# are currently assumed to apply to all compilers on this platform,
6649
# and will be corrupted by setting them based on a non-working compiler.
6650
if test "$_lt_disable_F77" != yes; then
6651
# Code to be used in simple compile tests
6652
lt_simple_compile_test_code="\
6658
# Code to be used in simple link tests
6659
lt_simple_link_test_code="\
6664
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6667
# save warnings/boilerplate of simple test code
6668
_LT_COMPILER_BOILERPLATE
6669
_LT_LINKER_BOILERPLATE
6671
# Allow CC to be a program name with arguments.
6676
_LT_TAGVAR(compiler, $1)=$CC
6677
_LT_CC_BASENAME([$compiler])
6679
if test -n "$compiler"; then
6680
AC_MSG_CHECKING([if libtool supports shared libraries])
6681
AC_MSG_RESULT([$can_build_shared])
6683
AC_MSG_CHECKING([whether to build shared libraries])
6684
test "$can_build_shared" = "no" && enable_shared=no
6686
# On AIX, shared libraries and static libraries use the same namespace, and
6687
# are all built from PIC.
6690
test "$enable_shared" = yes && enable_static=no
6691
if test -n "$RANLIB"; then
6692
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6693
postinstall_cmds='$RANLIB $lib'
6697
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6698
test "$enable_shared" = yes && enable_static=no
6702
AC_MSG_RESULT([$enable_shared])
6704
AC_MSG_CHECKING([whether to build static libraries])
6705
# Make sure either enable_shared or enable_static is yes.
6706
test "$enable_shared" = yes || enable_static=yes
6707
AC_MSG_RESULT([$enable_static])
6709
_LT_TAGVAR(GCC, $1)="$G77"
6710
_LT_TAGVAR(LD, $1)="$LD"
6713
## There is no encapsulation within the following macros, do not change
6714
## the running order or otherwise move them around unless you know exactly
6715
## what you are doing...
6716
_LT_COMPILER_PIC($1)
6717
_LT_COMPILER_C_O($1)
6718
_LT_COMPILER_FILE_LOCKS($1)
6719
_LT_LINKER_SHLIBS($1)
6720
_LT_SYS_DYNAMIC_LINKER($1)
6721
_LT_LINKER_HARDCODE_LIBPATH($1)
6724
fi # test -n "$compiler"
6728
fi # test "$_lt_disable_F77" != yes
6731
])# _LT_LANG_F77_CONFIG
6736
# Since AC_PROG_FC is broken, in that it returns the empty string
6737
# if there is no fortran compiler, we have our own version here.
6738
m4_defun([_LT_PROG_FC],
6740
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6742
if test -z "$FC" || test "X$FC" = "Xno"; then
6745
popdef([AC_MSG_ERROR])
6748
dnl aclocal-1.4 backwards compatibility:
6749
dnl AC_DEFUN([_LT_PROG_FC], [])
6752
# _LT_LANG_FC_CONFIG([TAG])
6753
# -------------------------
6754
# Ensure that the configuration variables for a Fortran compiler are
6755
# suitably defined. These variables are subsequently used by _LT_CONFIG
6756
# to write the compiler configuration to `libtool'.
6757
m4_defun([_LT_LANG_FC_CONFIG],
6758
[AC_REQUIRE([_LT_PROG_FC])dnl
6759
AC_LANG_PUSH(Fortran)
6761
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6762
_LT_TAGVAR(allow_undefined_flag, $1)=
6763
_LT_TAGVAR(always_export_symbols, $1)=no
6764
_LT_TAGVAR(archive_expsym_cmds, $1)=
6765
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6766
_LT_TAGVAR(hardcode_direct, $1)=no
6767
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6768
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6769
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6770
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6771
_LT_TAGVAR(hardcode_minus_L, $1)=no
6772
_LT_TAGVAR(hardcode_automatic, $1)=no
6773
_LT_TAGVAR(inherit_rpath, $1)=no
6774
_LT_TAGVAR(module_cmds, $1)=
6775
_LT_TAGVAR(module_expsym_cmds, $1)=
6776
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6777
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6778
_LT_TAGVAR(no_undefined_flag, $1)=
6779
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6780
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6782
# Source file extension for fc test sources.
6783
ac_ext=${ac_fc_srcext-f}
6785
# Object file extension for compiled fc test sources.
6787
_LT_TAGVAR(objext, $1)=$objext
6789
# No sense in running all these tests if we already determined that
6790
# the FC compiler isn't working. Some variables (like enable_shared)
6791
# are currently assumed to apply to all compilers on this platform,
6792
# and will be corrupted by setting them based on a non-working compiler.
6793
if test "$_lt_disable_FC" != yes; then
6794
# Code to be used in simple compile tests
6795
lt_simple_compile_test_code="\
6801
# Code to be used in simple link tests
6802
lt_simple_link_test_code="\
6807
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6810
# save warnings/boilerplate of simple test code
6811
_LT_COMPILER_BOILERPLATE
6812
_LT_LINKER_BOILERPLATE
6814
# Allow CC to be a program name with arguments.
6819
GCC=$ac_cv_fc_compiler_gnu
6821
_LT_TAGVAR(compiler, $1)=$CC
6822
_LT_CC_BASENAME([$compiler])
6824
if test -n "$compiler"; then
6825
AC_MSG_CHECKING([if libtool supports shared libraries])
6826
AC_MSG_RESULT([$can_build_shared])
6828
AC_MSG_CHECKING([whether to build shared libraries])
6829
test "$can_build_shared" = "no" && enable_shared=no
6831
# On AIX, shared libraries and static libraries use the same namespace, and
6832
# are all built from PIC.
6835
test "$enable_shared" = yes && enable_static=no
6836
if test -n "$RANLIB"; then
6837
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6838
postinstall_cmds='$RANLIB $lib'
6842
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6843
test "$enable_shared" = yes && enable_static=no
6847
AC_MSG_RESULT([$enable_shared])
6849
AC_MSG_CHECKING([whether to build static libraries])
6850
# Make sure either enable_shared or enable_static is yes.
6851
test "$enable_shared" = yes || enable_static=yes
6852
AC_MSG_RESULT([$enable_static])
6854
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6855
_LT_TAGVAR(LD, $1)="$LD"
6858
## There is no encapsulation within the following macros, do not change
6859
## the running order or otherwise move them around unless you know exactly
6860
## what you are doing...
6861
_LT_SYS_HIDDEN_LIBDEPS($1)
6862
_LT_COMPILER_PIC($1)
6863
_LT_COMPILER_C_O($1)
6864
_LT_COMPILER_FILE_LOCKS($1)
6865
_LT_LINKER_SHLIBS($1)
6866
_LT_SYS_DYNAMIC_LINKER($1)
6867
_LT_LINKER_HARDCODE_LIBPATH($1)
6870
fi # test -n "$compiler"
6874
fi # test "$_lt_disable_FC" != yes
6877
])# _LT_LANG_FC_CONFIG
6880
# _LT_LANG_GCJ_CONFIG([TAG])
6881
# --------------------------
6882
# Ensure that the configuration variables for the GNU Java Compiler compiler
6883
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6884
# to write the compiler configuration to `libtool'.
6885
m4_defun([_LT_LANG_GCJ_CONFIG],
6886
[AC_REQUIRE([LT_PROG_GCJ])dnl
6889
# Source file extension for Java test sources.
6892
# Object file extension for compiled Java test sources.
6894
_LT_TAGVAR(objext, $1)=$objext
6896
# Code to be used in simple compile tests
6897
lt_simple_compile_test_code="class foo {}"
6899
# Code to be used in simple link tests
6900
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6902
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6905
# save warnings/boilerplate of simple test code
6906
_LT_COMPILER_BOILERPLATE
6907
_LT_LINKER_BOILERPLATE
6909
# Allow CC to be a program name with arguments.
6915
_LT_TAGVAR(compiler, $1)=$CC
6916
_LT_TAGVAR(LD, $1)="$LD"
6917
_LT_CC_BASENAME([$compiler])
6919
# GCJ did not exist at the time GCC didn't implicitly link libc in.
6920
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6922
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6924
if test -n "$compiler"; then
6925
_LT_COMPILER_NO_RTTI($1)
6926
_LT_COMPILER_PIC($1)
6927
_LT_COMPILER_C_O($1)
6928
_LT_COMPILER_FILE_LOCKS($1)
6929
_LT_LINKER_SHLIBS($1)
6930
_LT_LINKER_HARDCODE_LIBPATH($1)
6939
])# _LT_LANG_GCJ_CONFIG
6942
# _LT_LANG_RC_CONFIG([TAG])
6943
# -------------------------
6944
# Ensure that the configuration variables for the Windows resource compiler
6945
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6946
# to write the compiler configuration to `libtool'.
6947
m4_defun([_LT_LANG_RC_CONFIG],
6948
[AC_REQUIRE([LT_PROG_RC])dnl
6951
# Source file extension for RC test sources.
6954
# Object file extension for compiled RC test sources.
6956
_LT_TAGVAR(objext, $1)=$objext
6958
# Code to be used in simple compile tests
6959
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6961
# Code to be used in simple link tests
6962
lt_simple_link_test_code="$lt_simple_compile_test_code"
6964
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6967
# save warnings/boilerplate of simple test code
6968
_LT_COMPILER_BOILERPLATE
6969
_LT_LINKER_BOILERPLATE
6971
# Allow CC to be a program name with arguments.
6977
_LT_TAGVAR(compiler, $1)=$CC
6978
_LT_CC_BASENAME([$compiler])
6979
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6981
if test -n "$compiler"; then
6989
])# _LT_LANG_RC_CONFIG
6994
AC_DEFUN([LT_PROG_GCJ],
6995
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6996
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6997
[AC_CHECK_TOOL(GCJ, gcj,)
6998
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6999
AC_SUBST(GCJFLAGS)])])[]dnl
7003
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7004
dnl aclocal-1.4 backwards compatibility:
7005
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7010
AC_DEFUN([LT_PROG_RC],
7011
[AC_CHECK_TOOL(RC, windres,)
7015
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7016
dnl aclocal-1.4 backwards compatibility:
7017
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7022
# If we don't have a new enough Autoconf to choose the best grep
7023
# available, choose the one first in the user's PATH.
7024
m4_defun([_LT_DECL_EGREP],
7025
[AC_REQUIRE([AC_PROG_EGREP])dnl
7026
AC_REQUIRE([AC_PROG_FGREP])dnl
7027
test -z "$GREP" && GREP=grep
7028
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7029
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7030
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7031
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7038
# If we don't have a new enough Autoconf to choose the best objdump
7039
# available, choose the one first in the user's PATH.
7040
m4_defun([_LT_DECL_OBJDUMP],
7041
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7042
test -z "$OBJDUMP" && OBJDUMP=objdump
7043
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7050
# Check for a fully-functional sed program, that truncates
7051
# as few characters as possible. Prefer GNU sed if found.
7052
m4_defun([_LT_DECL_SED],
7054
test -z "$SED" && SED=sed
7055
Xsed="$SED -e 1s/^X//"
7056
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7057
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7058
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7061
m4_ifndef([AC_PROG_SED], [
7183
7062
# NOTE: This macro has been submitted for inclusion into #
7184
7063
# GNU Autoconf as AC_PROG_SED. When it is available in #
7185
7064
# a released version of Autoconf we should remove this #
7186
7065
# macro and use it instead. #
7189
# Check for a fully-functional sed program, that truncates
7190
# as few characters as possible. Prefer GNU sed if found.
7191
AC_DEFUN([LT_AC_PROG_SED],
7067
m4_defun([AC_PROG_SED],
7192
7068
[AC_MSG_CHECKING([for a sed that does not truncate output])
7193
7069
AC_CACHE_VAL(lt_cv_path_SED,
7194
7070
[# Loop through the user's path and test for sed and gsed.
7240
7117
SED=$lt_cv_path_SED
7241
7119
AC_MSG_RESULT([$SED])
7124
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7125
dnl aclocal-1.4 backwards compatibility:
7126
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7129
# _LT_CHECK_SHELL_FEATURES
7130
# ------------------------
7131
# Find out whether the shell is Bourne or XSI compatible,
7132
# or has some other useful features.
7133
m4_defun([_LT_CHECK_SHELL_FEATURES],
7134
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7135
# Try some XSI features
7138
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7140
&& eval 'test $(( 1 + 1 )) -eq 2 \
7141
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7143
AC_MSG_RESULT([$xsi_shell])
7144
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7146
AC_MSG_CHECKING([whether the shell understands "+="])
7148
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7150
&& lt_shell_append=yes
7151
AC_MSG_RESULT([$lt_shell_append])
7152
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7154
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7159
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7161
# test EBCDIC or ASCII
7162
case `echo X|tr X '\101'` in
7163
A) # ASCII based system
7164
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7165
lt_SP2NL='tr \040 \012'
7166
lt_NL2SP='tr \015\012 \040\040'
7168
*) # EBCDIC based system
7169
lt_SP2NL='tr \100 \n'
7170
lt_NL2SP='tr \r\n \100\100'
7173
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7174
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7175
])# _LT_CHECK_SHELL_FEATURES
7178
# _LT_PROG_XSI_SHELLFNS
7179
# ---------------------
7180
# Bourne and XSI compatible variants of some useful shell functions.
7181
m4_defun([_LT_PROG_XSI_SHELLFNS],
7184
cat << \_LT_EOF >> "$cfgfile"
7186
# func_dirname file append nondir_replacement
7187
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7188
# otherwise set result to NONDIR_REPLACEMENT.
7192
*/*) func_dirname_result="${1%/*}${2}" ;;
7193
* ) func_dirname_result="${3}" ;;
7197
# func_basename file
7200
func_basename_result="${1##*/}"
7203
# func_dirname_and_basename file append nondir_replacement
7204
# perform func_basename and func_dirname in a single function
7206
# dirname: Compute the dirname of FILE. If nonempty,
7207
# add APPEND to the result, otherwise set result
7208
# to NONDIR_REPLACEMENT.
7209
# value returned in "$func_dirname_result"
7210
# basename: Compute filename of FILE.
7211
# value retuned in "$func_basename_result"
7212
# Implementation must be kept synchronized with func_dirname
7213
# and func_basename. For efficiency, we do not delegate to
7214
# those functions but instead duplicate the functionality here.
7215
func_dirname_and_basename ()
7218
*/*) func_dirname_result="${1%/*}${2}" ;;
7219
* ) func_dirname_result="${3}" ;;
7221
func_basename_result="${1##*/}"
7224
# func_stripname prefix suffix name
7225
# strip PREFIX and SUFFIX off of NAME.
7226
# PREFIX and SUFFIX must not contain globbing or regex special
7227
# characters, hashes, percent signs, but SUFFIX may contain a leading
7228
# dot (in which case that matches only a dot).
7231
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7232
# positional parameters, so assign one to ordinary parameter first.
7233
func_stripname_result=${3}
7234
func_stripname_result=${func_stripname_result#"${1}"}
7235
func_stripname_result=${func_stripname_result%"${2}"}
7241
func_opt_split_opt=${1%%=*}
7242
func_opt_split_arg=${1#*=}
7249
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7250
*) func_lo2o_result=${1} ;;
7254
# func_xform libobj-or-source
7257
func_xform_result=${1%.*}.lo
7260
# func_arith arithmetic-term...
7263
func_arith_result=$(( $[*] ))
7267
# STRING may not start with a hyphen.
7270
func_len_result=${#1}
7275
*) # Bourne compatible functions.
7276
cat << \_LT_EOF >> "$cfgfile"
7278
# func_dirname file append nondir_replacement
7279
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7280
# otherwise set result to NONDIR_REPLACEMENT.
7283
# Extract subdirectory from the argument.
7284
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7285
if test "X$func_dirname_result" = "X${1}"; then
7286
func_dirname_result="${3}"
7288
func_dirname_result="$func_dirname_result${2}"
7292
# func_basename file
7295
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7298
dnl func_dirname_and_basename
7299
dnl A portable version of this function is already defined in general.m4sh
7300
dnl so there is no need for it here.
7302
# func_stripname prefix suffix name
7303
# strip PREFIX and SUFFIX off of NAME.
7304
# PREFIX and SUFFIX must not contain globbing or regex special
7305
# characters, hashes, percent signs, but SUFFIX may contain a leading
7306
# dot (in which case that matches only a dot).
7307
# func_strip_suffix prefix name
7311
.*) func_stripname_result=`$ECHO "X${3}" \
7312
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7313
*) func_stripname_result=`$ECHO "X${3}" \
7314
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7319
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7320
my_sed_long_arg='1s/^-[[^=]]*=//'
7325
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7326
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7332
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7335
# func_xform libobj-or-source
7338
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7341
# func_arith arithmetic-term...
7344
func_arith_result=`expr "$[@]"`
7348
# STRING may not start with a hyphen.
7351
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7357
case $lt_shell_append in
7359
cat << \_LT_EOF >> "$cfgfile"
7361
# func_append var value
7362
# Append VALUE to the end of shell variable VAR.
7370
cat << \_LT_EOF >> "$cfgfile"
7372
# func_append var value
7373
# Append VALUE to the end of shell variable VAR.
7376
eval "$[1]=\$$[1]\$[2]"
7384
# Helper functions for option handling. -*- Autoconf -*-
7386
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7387
# Written by Gary V. Vaughan, 2004
7389
# This file is free software; the Free Software Foundation gives
7390
# unlimited permission to copy and/or distribute it, with or without
7391
# modifications, as long as this notice is preserved.
7393
# serial 6 ltoptions.m4
7395
# This is to help aclocal find these macros, as it can't see m4_define.
7396
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7399
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7400
# ------------------------------------------
7401
m4_define([_LT_MANGLE_OPTION],
7402
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7405
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7406
# ---------------------------------------
7407
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7408
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
7410
m4_define([_LT_SET_OPTION],
7411
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7412
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7413
_LT_MANGLE_DEFUN([$1], [$2]),
7414
[m4_warning([Unknown $1 option `$2'])])[]dnl
7418
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7419
# ------------------------------------------------------------
7420
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7421
m4_define([_LT_IF_OPTION],
7422
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7425
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7426
# -------------------------------------------------------
7427
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7429
m4_define([_LT_UNLESS_OPTIONS],
7430
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7431
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7432
[m4_define([$0_found])])])[]dnl
7433
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7438
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7439
# ----------------------------------------
7440
# OPTION-LIST is a space-separated list of Libtool options associated
7441
# with MACRO-NAME. If any OPTION has a matching handler declared with
7442
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7443
# the unknown option and exit.
7444
m4_defun([_LT_SET_OPTIONS],
7446
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7447
[_LT_SET_OPTION([$1], _LT_Option)])
7449
m4_if([$1],[LT_INIT],[
7451
dnl Simply set some default values (i.e off) if boolean options were not
7453
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7455
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7458
dnl If no reference was made to various pairs of opposing options, then
7459
dnl we run the default mode handler for the pair. For example, if neither
7460
dnl `shared' nor `disable-shared' was passed, we enable building of shared
7461
dnl archives by default:
7462
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7463
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7464
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7465
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7466
[_LT_ENABLE_FAST_INSTALL])
7472
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7473
# -----------------------------------------
7474
m4_define([_LT_MANGLE_DEFUN],
7475
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7478
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7479
# -----------------------------------------------
7480
m4_define([LT_OPTION_DEFINE],
7481
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7482
])# LT_OPTION_DEFINE
7487
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7490
AU_DEFUN([AC_LIBTOOL_DLOPEN],
7491
[_LT_SET_OPTION([LT_INIT], [dlopen])
7492
AC_DIAGNOSE([obsolete],
7493
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7494
put the `dlopen' option into LT_INIT's first parameter.])
7497
dnl aclocal-1.4 backwards compatibility:
7498
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7503
# Declare package support for building win32 dll's.
7504
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7505
[enable_win32_dll=yes
7508
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7509
AC_CHECK_TOOL(AS, as, false)
7510
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7511
AC_CHECK_TOOL(OBJDUMP, objdump, false)
7515
test -z "$AS" && AS=as
7516
_LT_DECL([], [AS], [0], [Assembler program])dnl
7518
test -z "$DLLTOOL" && DLLTOOL=dlltool
7519
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7521
test -z "$OBJDUMP" && OBJDUMP=objdump
7522
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7525
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7526
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7527
_LT_SET_OPTION([LT_INIT], [win32-dll])
7528
AC_DIAGNOSE([obsolete],
7529
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7530
put the `win32-dll' option into LT_INIT's first parameter.])
7533
dnl aclocal-1.4 backwards compatibility:
7534
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7537
# _LT_ENABLE_SHARED([DEFAULT])
7538
# ----------------------------
7539
# implement the --enable-shared flag, and supports the `shared' and
7540
# `disable-shared' LT_INIT options.
7541
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7542
m4_define([_LT_ENABLE_SHARED],
7543
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7544
AC_ARG_ENABLE([shared],
7545
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7546
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7547
[p=${PACKAGE-default}
7549
yes) enable_shared=yes ;;
7550
no) enable_shared=no ;;
7553
# Look at the argument we got. We use all the common list separators.
7554
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7555
for pkg in $enableval; do
7557
if test "X$pkg" = "X$p"; then
7564
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7566
_LT_DECL([build_libtool_libs], [enable_shared], [0],
7567
[Whether or not to build shared libraries])
7568
])# _LT_ENABLE_SHARED
7570
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7571
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7574
AC_DEFUN([AC_ENABLE_SHARED],
7575
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7578
AC_DEFUN([AC_DISABLE_SHARED],
7579
[_LT_SET_OPTION([LT_INIT], [disable-shared])
7582
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7583
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7585
dnl aclocal-1.4 backwards compatibility:
7586
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7587
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7591
# _LT_ENABLE_STATIC([DEFAULT])
7592
# ----------------------------
7593
# implement the --enable-static flag, and support the `static' and
7594
# `disable-static' LT_INIT options.
7595
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7596
m4_define([_LT_ENABLE_STATIC],
7597
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7598
AC_ARG_ENABLE([static],
7599
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7600
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7601
[p=${PACKAGE-default}
7603
yes) enable_static=yes ;;
7604
no) enable_static=no ;;
7607
# Look at the argument we got. We use all the common list separators.
7608
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7609
for pkg in $enableval; do
7611
if test "X$pkg" = "X$p"; then
7618
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7620
_LT_DECL([build_old_libs], [enable_static], [0],
7621
[Whether or not to build static libraries])
7622
])# _LT_ENABLE_STATIC
7624
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7625
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7628
AC_DEFUN([AC_ENABLE_STATIC],
7629
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7632
AC_DEFUN([AC_DISABLE_STATIC],
7633
[_LT_SET_OPTION([LT_INIT], [disable-static])
7636
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7637
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7639
dnl aclocal-1.4 backwards compatibility:
7640
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7641
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7645
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
7646
# ----------------------------------
7647
# implement the --enable-fast-install flag, and support the `fast-install'
7648
# and `disable-fast-install' LT_INIT options.
7649
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7650
m4_define([_LT_ENABLE_FAST_INSTALL],
7651
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7652
AC_ARG_ENABLE([fast-install],
7653
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7654
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7655
[p=${PACKAGE-default}
7657
yes) enable_fast_install=yes ;;
7658
no) enable_fast_install=no ;;
7660
enable_fast_install=no
7661
# Look at the argument we got. We use all the common list separators.
7662
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7663
for pkg in $enableval; do
7665
if test "X$pkg" = "X$p"; then
7666
enable_fast_install=yes
7672
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7674
_LT_DECL([fast_install], [enable_fast_install], [0],
7675
[Whether or not to optimize for fast installation])dnl
7676
])# _LT_ENABLE_FAST_INSTALL
7678
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7679
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7682
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7683
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7684
AC_DIAGNOSE([obsolete],
7685
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7686
the `fast-install' option into LT_INIT's first parameter.])
7689
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7690
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7691
AC_DIAGNOSE([obsolete],
7692
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7693
the `disable-fast-install' option into LT_INIT's first parameter.])
7696
dnl aclocal-1.4 backwards compatibility:
7697
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7698
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7701
# _LT_WITH_PIC([MODE])
7702
# --------------------
7703
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
7705
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7706
m4_define([_LT_WITH_PIC],
7708
[AS_HELP_STRING([--with-pic],
7709
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7710
[pic_mode="$withval"],
7713
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7715
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7718
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7719
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7722
AU_DEFUN([AC_LIBTOOL_PICMODE],
7723
[_LT_SET_OPTION([LT_INIT], [pic-only])
7724
AC_DIAGNOSE([obsolete],
7725
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7726
put the `pic-only' option into LT_INIT's first parameter.])
7729
dnl aclocal-1.4 backwards compatibility:
7730
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7733
m4_define([_LTDL_MODE], [])
7734
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7735
[m4_define([_LTDL_MODE], [nonrecursive])])
7736
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7737
[m4_define([_LTDL_MODE], [recursive])])
7738
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7739
[m4_define([_LTDL_MODE], [subproject])])
7741
m4_define([_LTDL_TYPE], [])
7742
LT_OPTION_DEFINE([LTDL_INIT], [installable],
7743
[m4_define([_LTDL_TYPE], [installable])])
7744
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7745
[m4_define([_LTDL_TYPE], [convenience])])
7747
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7749
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7750
# Written by Gary V. Vaughan, 2004
7752
# This file is free software; the Free Software Foundation gives
7753
# unlimited permission to copy and/or distribute it, with or without
7754
# modifications, as long as this notice is preserved.
7756
# serial 6 ltsugar.m4
7758
# This is to help aclocal find these macros, as it can't see m4_define.
7759
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7762
# lt_join(SEP, ARG1, [ARG2...])
7763
# -----------------------------
7764
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7765
# associated separator.
7766
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7767
# versions in m4sugar had bugs.
7768
m4_define([lt_join],
7769
[m4_if([$#], [1], [],
7771
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7772
m4_define([_lt_join],
7773
[m4_if([$#$2], [2], [],
7774
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7780
# Manipulate m4 lists.
7781
# These macros are necessary as long as will still need to support
7782
# Autoconf-2.59 which quotes differently.
7783
m4_define([lt_car], [[$1]])
7785
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7787
[m4_dquote(m4_shift($@))])])
7788
m4_define([lt_unquote], $1)
7791
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
7792
# ------------------------------------------
7793
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7794
# Note that neither SEPARATOR nor STRING are expanded; they are appended
7795
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7796
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
7797
# than defined and empty).
7799
# This macro is needed until we can rely on Autoconf 2.62, since earlier
7800
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7801
m4_define([lt_append],
7803
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7807
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7808
# ----------------------------------------------------------
7809
# Produce a SEP delimited list of all paired combinations of elements of
7810
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7811
# has the form PREFIXmINFIXSUFFIXn.
7812
# Needed until we can rely on m4_combine added in Autoconf 2.62.
7813
m4_define([lt_combine],
7814
[m4_if(m4_eval([$# > 3]), [1],
7815
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7816
[[m4_foreach([_Lt_prefix], [$2],
7817
[m4_foreach([_Lt_suffix],
7818
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7819
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7822
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7823
# -----------------------------------------------------------------------
7824
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7825
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7826
m4_define([lt_if_append_uniq],
7828
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7829
[lt_append([$1], [$2], [$3])$4],
7831
[lt_append([$1], [$2], [$3])$4])])
7834
# lt_dict_add(DICT, KEY, VALUE)
7835
# -----------------------------
7836
m4_define([lt_dict_add],
7837
[m4_define([$1($2)], [$3])])
7840
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7841
# --------------------------------------------
7842
m4_define([lt_dict_add_subkey],
7843
[m4_define([$1($2:$3)], [$4])])
7846
# lt_dict_fetch(DICT, KEY, [SUBKEY])
7847
# ----------------------------------
7848
m4_define([lt_dict_fetch],
7850
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7851
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7854
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7855
# -----------------------------------------------------------------
7856
m4_define([lt_if_dict_fetch],
7857
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7862
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7863
# --------------------------------------------------------------
7864
m4_define([lt_dict_filter],
7865
[m4_if([$5], [], [],
7866
[lt_join(m4_quote(m4_default([$4], [[, ]])),
7867
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7868
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7871
# ltversion.m4 -- version numbers -*- Autoconf -*-
7873
# Copyright (C) 2004 Free Software Foundation, Inc.
7874
# Written by Scott James Remnant, 2004
7876
# This file is free software; the Free Software Foundation gives
7877
# unlimited permission to copy and/or distribute it, with or without
7878
# modifications, as long as this notice is preserved.
7880
# Generated from ltversion.in.
7882
# serial 3017 ltversion.m4
7883
# This file is part of GNU Libtool
7885
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7886
m4_define([LT_PACKAGE_REVISION], [1.3017])
7888
AC_DEFUN([LTVERSION_VERSION],
7889
[macro_version='2.2.6b'
7890
macro_revision='1.3017'
7891
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7892
_LT_DECL(, macro_revision, 0)
7895
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7897
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7898
# Written by Scott James Remnant, 2004.
7900
# This file is free software; the Free Software Foundation gives
7901
# unlimited permission to copy and/or distribute it, with or without
7902
# modifications, as long as this notice is preserved.
7904
# serial 4 lt~obsolete.m4
7906
# These exist entirely to fool aclocal when bootstrapping libtool.
7908
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7909
# which have later been changed to m4_define as they aren't part of the
7910
# exported API, or moved to Autoconf or Automake where they belong.
7912
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7913
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7914
# using a macro with the same name in our local m4/libtool.m4 it'll
7915
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7916
# and doesn't know about Autoconf macros at all.)
7918
# So we provide this file, which has a silly filename so it's always
7919
# included after everything else. This provides aclocal with the
7920
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7921
# because those macros already exist, or will be overwritten later.
7922
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7924
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7925
# Yes, that means every name once taken will need to remain here until
7926
# we give up compatibility with versions before 1.7, at which point
7927
# we need to keep only those names which we still refer to.
7929
# This is to help aclocal find these macros, as it can't see m4_define.
7930
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7932
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7933
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7934
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7935
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7936
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7937
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7938
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7939
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7940
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7941
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7942
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7943
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7944
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7945
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7946
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7947
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7948
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7949
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7950
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7951
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7952
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7953
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7954
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7955
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7956
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7957
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7958
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7959
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7960
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7961
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7962
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7963
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7964
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7965
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7966
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7967
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7968
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7969
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7970
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7971
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7972
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7973
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7974
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7975
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7976
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7977
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7978
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7979
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7980
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7981
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7982
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7983
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7984
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7985
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7986
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7988
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7990
# This file is free software; the Free Software Foundation
7991
# gives unlimited permission to copy and/or distribute it,
7992
# with or without modifications, as long as this notice is preserved.
7994
# AM_AUTOMAKE_VERSION(VERSION)
7995
# ----------------------------
7996
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7997
# generated from the m4 files accompanying Automake X.Y.
7998
# (This private macro should not be called outside this file.)
7999
AC_DEFUN([AM_AUTOMAKE_VERSION],
8000
[am__api_version='1.11'
8001
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8002
dnl require some minimum version. Point them to the right macro.
8003
m4_if([$1], [1.11.1], [],
8004
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8007
# _AM_AUTOCONF_VERSION(VERSION)
8008
# -----------------------------
8009
# aclocal traces this macro to find the Autoconf version.
8010
# This is a private macro too. Using m4_define simplifies
8011
# the logic in aclocal, which can simply ignore this definition.
8012
m4_define([_AM_AUTOCONF_VERSION], [])
8014
# AM_SET_CURRENT_AUTOMAKE_VERSION
8015
# -------------------------------
8016
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8017
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8018
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8019
[AM_AUTOMAKE_VERSION([1.11.1])dnl
8020
m4_ifndef([AC_AUTOCONF_VERSION],
8021
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8022
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8024
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
8026
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8028
# This file is free software; the Free Software Foundation
8029
# gives unlimited permission to copy and/or distribute it,
8030
# with or without modifications, as long as this notice is preserved.
8032
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8033
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8034
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8036
# Of course, Automake must honor this variable whenever it calls a
8037
# tool from the auxiliary directory. The problem is that $srcdir (and
8038
# therefore $ac_aux_dir as well) can be either absolute or relative,
8039
# depending on how configure is run. This is pretty annoying, since
8040
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
8041
# source directory, any form will work fine, but in subdirectories a
8042
# relative path needs to be adjusted first.
8044
# $ac_aux_dir/missing
8045
# fails when called from a subdirectory if $ac_aux_dir is relative
8046
# $top_srcdir/$ac_aux_dir/missing
8047
# fails if $ac_aux_dir is absolute,
8048
# fails when called from a subdirectory in a VPATH build with
8049
# a relative $ac_aux_dir
8051
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8052
# are both prefixed by $srcdir. In an in-source build this is usually
8053
# harmless because $srcdir is `.', but things will broke when you
8054
# start a VPATH build or use an absolute $srcdir.
8056
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8057
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8058
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8059
# and then we would define $MISSING as
8060
# MISSING="\${SHELL} $am_aux_dir/missing"
8061
# This will work as long as MISSING is not called from configure, because
8062
# unfortunately $(top_srcdir) has no meaning in configure.
8063
# However there are other variables, like CC, which are often used in
8064
# configure, and could therefore not use this "fixed" $ac_aux_dir.
8066
# Another solution, used here, is to always expand $ac_aux_dir to an
8067
# absolute PATH. The drawback is that using absolute paths prevent a
8068
# configured tree to be moved without reconfiguration.
8070
AC_DEFUN([AM_AUX_DIR_EXPAND],
8071
[dnl Rely on autoconf to set up CDPATH properly.
8072
AC_PREREQ([2.50])dnl
8073
# expand $ac_aux_dir to an absolute path
8074
am_aux_dir=`cd $ac_aux_dir && pwd`
8077
# AM_CONDITIONAL -*- Autoconf -*-
8079
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8080
# Free Software Foundation, Inc.
8082
# This file is free software; the Free Software Foundation
8083
# gives unlimited permission to copy and/or distribute it,
8084
# with or without modifications, as long as this notice is preserved.
8088
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8089
# -------------------------------------
8090
# Define a conditional.
8091
AC_DEFUN([AM_CONDITIONAL],
8093
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8094
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8095
AC_SUBST([$1_TRUE])dnl
8096
AC_SUBST([$1_FALSE])dnl
8097
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8098
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
8099
m4_define([_AM_COND_VALUE_$1], [$2])dnl
8107
AC_CONFIG_COMMANDS_PRE(
8108
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8109
AC_MSG_ERROR([[conditional "$1" was never defined.
8110
Usually this means the macro was only invoked conditionally.]])
8113
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8114
# Free Software Foundation, Inc.
8116
# This file is free software; the Free Software Foundation
8117
# gives unlimited permission to copy and/or distribute it,
8118
# with or without modifications, as long as this notice is preserved.
8122
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8123
# written in clear, in which case automake, when reading aclocal.m4,
8124
# will think it sees a *use*, and therefore will trigger all it's
8125
# C support machinery. Also note that it means that autoscan, seeing
8126
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8129
# _AM_DEPENDENCIES(NAME)
8130
# ----------------------
8131
# See how the compiler implements dependency checking.
8132
# NAME is "CC", "CXX", "GCJ", or "OBJC".
8133
# We try a few techniques and use that to set a single cache variable.
8135
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8136
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8137
# dependency, and given that the user is not expected to run this macro,
8138
# just rely on AC_PROG_CC.
8139
AC_DEFUN([_AM_DEPENDENCIES],
8140
[AC_REQUIRE([AM_SET_DEPDIR])dnl
8141
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8142
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8143
AC_REQUIRE([AM_DEP_TRACK])dnl
8145
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8146
[$1], CXX, [depcc="$CXX" am_compiler_list=],
8147
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8148
[$1], UPC, [depcc="$UPC" am_compiler_list=],
8149
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8150
[depcc="$$1" am_compiler_list=])
8152
AC_CACHE_CHECK([dependency style of $depcc],
8153
[am_cv_$1_dependencies_compiler_type],
8154
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8155
# We make a subdir and do the tests there. Otherwise we can end up
8156
# making bogus files that we don't know about and never remove. For
8157
# instance it was reported that on HP-UX the gcc test will end up
8158
# making a dummy file named `D' -- because `-MD' means `put the output
8161
# Copy depcomp to subdir because otherwise we won't find it if we're
8162
# using a relative directory.
8163
cp "$am_depcomp" conftest.dir
8165
# We will build objects and dependencies in a subdirectory because
8166
# it helps to detect inapplicable dependency modes. For instance
8167
# both Tru64's cc and ICC support -MD to output dependencies as a
8168
# side effect of compilation, but ICC will put the dependencies in
8169
# the current directory while Tru64 will put them in the object
8173
am_cv_$1_dependencies_compiler_type=none
8174
if test "$am_compiler_list" = ""; then
8175
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8179
[case " $depcc " in #(
8180
*\ -arch\ *\ -arch\ *) am__universal=true ;;
8183
[case " $depcc " in #(
8184
*\ -arch\ *\ -arch\ *) am__universal=true ;;
8187
for depmode in $am_compiler_list; do
8188
# Setup a source with many dependencies, because some compilers
8189
# like to wrap large dependency lists on column 80 (with \), and
8190
# we should not choose a depcomp mode which is confused by this.
8192
# We need to recreate these files for each test, as the compiler may
8193
# overwrite some of them when testing with obscure command lines.
8194
# This happens at least with the AIX C compiler.
8196
for i in 1 2 3 4 5 6; do
8197
echo '#include "conftst'$i'.h"' >> sub/conftest.c
8198
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8199
# Solaris 8's {/usr,}/bin/sh.
8200
touch sub/conftst$i.h
8202
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8204
# We check with `-c' and `-o' for the sake of the "dashmstdout"
8205
# mode. It turns out that the SunPro C++ compiler does not properly
8206
# handle `-M -o', and we need to detect this. Also, some Intel
8207
# versions had trouble with output in subdirs
8208
am__obj=sub/conftest.${OBJEXT-o}
8209
am__minus_obj="-o $am__obj"
8212
# This depmode causes a compiler race in universal mode.
8213
test "$am__universal" = false || continue
8216
# after this tag, mechanisms are not by side-effect, so they'll
8217
# only be used when explicitly requested
8218
if test "x$enable_dependency_tracking" = xyes; then
8224
msvisualcpp | msvcmsys)
8225
# This compiler won't grok `-c -o', but also, the minuso test has
8226
# not run yet. These depmodes are late enough in the game, and
8227
# so weak that their functioning should not be impacted.
8228
am__obj=conftest.${OBJEXT-o}
8233
if depmode=$depmode \
8234
source=sub/conftest.c object=$am__obj \
8235
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8236
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8237
>/dev/null 2>conftest.err &&
8238
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8239
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8240
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8241
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8242
# icc doesn't choke on unknown options, it will just issue warnings
8243
# or remarks (even with -Werror). So we grep stderr for any message
8244
# that says an option was ignored or not supported.
8245
# When given -MP, icc 7.0 and 7.1 complain thusly:
8246
# icc: Command line warning: ignoring option '-M'; no argument required
8247
# The diagnosis changed in icc 8.0:
8248
# icc: Command line remark: option '-MP' not supported
8249
if (grep 'ignoring option' conftest.err ||
8250
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8251
am_cv_$1_dependencies_compiler_type=$depmode
8260
am_cv_$1_dependencies_compiler_type=none
8263
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8264
AM_CONDITIONAL([am__fastdep$1], [
8265
test "x$enable_dependency_tracking" != xno \
8266
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8272
# Choose a directory name for dependency files.
8273
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
8274
AC_DEFUN([AM_SET_DEPDIR],
8275
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8276
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8282
AC_DEFUN([AM_DEP_TRACK],
8283
[AC_ARG_ENABLE(dependency-tracking,
8284
[ --disable-dependency-tracking speeds up one-time build
8285
--enable-dependency-tracking do not reject slow dependency extractors])
8286
if test "x$enable_dependency_tracking" != xno; then
8287
am_depcomp="$ac_aux_dir/depcomp"
8290
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8291
AC_SUBST([AMDEPBACKSLASH])dnl
8292
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
8295
# Generate code to set up dependency tracking. -*- Autoconf -*-
8297
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8298
# Free Software Foundation, Inc.
8300
# This file is free software; the Free Software Foundation
8301
# gives unlimited permission to copy and/or distribute it,
8302
# with or without modifications, as long as this notice is preserved.
8306
# _AM_OUTPUT_DEPENDENCY_COMMANDS
8307
# ------------------------------
8308
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8310
# Autoconf 2.62 quotes --file arguments for eval, but not when files
8311
# are listed without --file. Let's play safe and only enable the eval
8312
# if we detect the quoting.
8313
case $CONFIG_FILES in
8314
*\'*) eval set x "$CONFIG_FILES" ;;
8315
*) set x $CONFIG_FILES ;;
8320
# Strip MF so we end up with the name of the file.
8321
mf=`echo "$mf" | sed -e 's/:.*$//'`
8322
# Check whether this is an Automake generated Makefile or not.
8323
# We used to match only the files named `Makefile.in', but
8324
# some people rename them; so instead we look at the file content.
8325
# Grep'ing the first line is not enough: some people post-process
8326
# each Makefile.in and add a new line on top of each file to say so.
8327
# Grep'ing the whole file is not good either: AIX grep has a line
8328
# limit of 2048, but all sed's we know have understand at least 4000.
8329
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8330
dirpart=`AS_DIRNAME("$mf")`
8334
# Extract the definition of DEPDIR, am__include, and am__quote
8335
# from the Makefile without running `make'.
8336
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8337
test -z "$DEPDIR" && continue
8338
am__include=`sed -n 's/^am__include = //p' < "$mf"`
8339
test -z "am__include" && continue
8340
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8341
# When using ansi2knr, U may be empty or an underscore; expand it
8342
U=`sed -n 's/^U = //p' < "$mf"`
8343
# Find all dependency output files, they are included files with
8344
# $(DEPDIR) in their names. We invoke sed twice because it is the
8345
# simplest approach to changing $(DEPDIR) to its actual value in the
8347
for file in `sed -n "
8348
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8349
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8350
# Make sure the directory exists.
8351
test -f "$dirpart/$file" && continue
8352
fdir=`AS_DIRNAME(["$file"])`
8353
AS_MKDIR_P([$dirpart/$fdir])
8354
# echo "creating $dirpart/$file"
8355
echo '# dummy' > "$dirpart/$file"
8359
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8362
# AM_OUTPUT_DEPENDENCY_COMMANDS
8363
# -----------------------------
8364
# This macro should only be invoked once -- use via AC_REQUIRE.
8366
# This code is only required when automatic dependency tracking
8367
# is enabled. FIXME. This creates each `.P' file that we will
8368
# need in order to bootstrap the dependency handling code.
8369
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
8370
[AC_CONFIG_COMMANDS([depfiles],
8371
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
8372
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
8375
# Do all the work for Automake. -*- Autoconf -*-
8377
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8378
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
8380
# This file is free software; the Free Software Foundation
8381
# gives unlimited permission to copy and/or distribute it,
8382
# with or without modifications, as long as this notice is preserved.
8386
# This macro actually does too much. Some checks are only needed if
8387
# your package does certain things. But this isn't really a big deal.
8389
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
8390
# AM_INIT_AUTOMAKE([OPTIONS])
8391
# -----------------------------------------------
8392
# The call with PACKAGE and VERSION arguments is the old style
8393
# call (pre autoconf-2.50), which is being phased out. PACKAGE
8394
# and VERSION should now be passed to AC_INIT and removed from
8395
# the call to AM_INIT_AUTOMAKE.
8396
# We support both call styles for the transition. After
8397
# the next Automake release, Autoconf can make the AC_INIT
8398
# arguments mandatory, and then we can depend on a new Autoconf
8399
# release and drop the old call support.
8400
AC_DEFUN([AM_INIT_AUTOMAKE],
8401
[AC_PREREQ([2.62])dnl
8402
dnl Autoconf wants to disallow AM_ names. We explicitly allow
8403
dnl the ones we care about.
8404
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
8405
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
8406
AC_REQUIRE([AC_PROG_INSTALL])dnl
8407
if test "`cd $srcdir && pwd`" != "`pwd`"; then
8408
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8409
# is not polluted with repeated "-I."
8410
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
8411
# test to see if srcdir already configured
8412
if test -f $srcdir/config.status; then
8413
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8417
# test whether we have cygpath
8418
if test -z "$CYGPATH_W"; then
8419
if (cygpath --version) >/dev/null 2>/dev/null; then
8420
CYGPATH_W='cygpath -w'
8425
AC_SUBST([CYGPATH_W])
8427
# Define the identity of the package.
8428
dnl Distinguish between old-style and new-style calls.
8430
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
8431
AC_SUBST([PACKAGE], [$1])dnl
8432
AC_SUBST([VERSION], [$2])],
8433
[_AM_SET_OPTIONS([$1])dnl
8434
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
8435
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
8436
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
8437
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
8438
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
8440
_AM_IF_OPTION([no-define],,
8441
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
8442
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
8444
# Some tools Automake needs.
8445
AC_REQUIRE([AM_SANITY_CHECK])dnl
8446
AC_REQUIRE([AC_ARG_PROGRAM])dnl
8447
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
8448
AM_MISSING_PROG(AUTOCONF, autoconf)
8449
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
8450
AM_MISSING_PROG(AUTOHEADER, autoheader)
8451
AM_MISSING_PROG(MAKEINFO, makeinfo)
8452
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8453
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
8454
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
8455
# We need awk for the "check" target. The system "awk" is bad on
8457
AC_REQUIRE([AC_PROG_AWK])dnl
8458
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
8459
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8460
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
8461
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
8462
[_AM_PROG_TAR([v7])])])
8463
_AM_IF_OPTION([no-dependencies],,
8464
[AC_PROVIDE_IFELSE([AC_PROG_CC],
8465
[_AM_DEPENDENCIES(CC)],
8466
[define([AC_PROG_CC],
8467
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
8468
AC_PROVIDE_IFELSE([AC_PROG_CXX],
8469
[_AM_DEPENDENCIES(CXX)],
8470
[define([AC_PROG_CXX],
8471
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8472
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8473
[_AM_DEPENDENCIES(OBJC)],
8474
[define([AC_PROG_OBJC],
8475
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
8477
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
8478
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
8479
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
8480
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
8481
AC_CONFIG_COMMANDS_PRE(dnl
8482
[m4_provide_if([_AM_COMPILER_EXEEXT],
8483
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
8486
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
8487
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
8488
dnl mangled by Autoconf and run in a shell conditional statement.
8489
m4_define([_AC_COMPILER_EXEEXT],
8490
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
8493
# When config.status generates a header, we must update the stamp-h file.
8494
# This file resides in the same directory as the config header
8495
# that is generated. The stamp files are numbered to have different names.
8497
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
8498
# loop where config.status creates the headers, so we can generate
8499
# our stamp files there.
8500
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
8501
[# Compute $1's index in $config_headers.
8504
for _am_header in $config_headers :; do
8506
$_am_arg | $_am_arg:* )
8509
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
8512
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8514
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
8516
# This file is free software; the Free Software Foundation
8517
# gives unlimited permission to copy and/or distribute it,
8518
# with or without modifications, as long as this notice is preserved.
8520
# AM_PROG_INSTALL_SH
8521
# ------------------
8522
# Define $install_sh.
8523
AC_DEFUN([AM_PROG_INSTALL_SH],
8524
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8525
if test x"${install_sh}" != xset; then
8528
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
8530
install_sh="\${SHELL} $am_aux_dir/install-sh"
8533
AC_SUBST(install_sh)])
8535
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
8537
# This file is free software; the Free Software Foundation
8538
# gives unlimited permission to copy and/or distribute it,
8539
# with or without modifications, as long as this notice is preserved.
8543
# Check whether the underlying file-system supports filenames
8544
# with a leading dot. For instance MS-DOS doesn't.
8545
AC_DEFUN([AM_SET_LEADING_DOT],
8546
[rm -rf .tst 2>/dev/null
8547
mkdir .tst 2>/dev/null
8548
if test -d .tst; then
8553
rmdir .tst 2>/dev/null
8554
AC_SUBST([am__leading_dot])])
8556
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
8559
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8560
# Free Software Foundation, Inc.
8562
# This file is free software; the Free Software Foundation
8563
# gives unlimited permission to copy and/or distribute it,
8564
# with or without modifications, as long as this notice is preserved.
8568
# AM_MAINTAINER_MODE([DEFAULT-MODE])
8569
# ----------------------------------
8570
# Control maintainer-specific portions of Makefiles.
8571
# Default is to disable them, unless `enable' is passed literally.
8572
# For symmetry, `disable' may be passed as well. Anyway, the user
8573
# can override the default with the --enable/--disable switch.
8574
AC_DEFUN([AM_MAINTAINER_MODE],
8575
[m4_case(m4_default([$1], [disable]),
8576
[enable], [m4_define([am_maintainer_other], [disable])],
8577
[disable], [m4_define([am_maintainer_other], [enable])],
8578
[m4_define([am_maintainer_other], [enable])
8579
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
8580
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
8581
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
8582
AC_ARG_ENABLE([maintainer-mode],
8583
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
8584
(and sometimes confusing) to the casual installer],
8585
[USE_MAINTAINER_MODE=$enableval],
8586
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
8587
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8588
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
8589
MAINT=$MAINTAINER_MODE_TRUE
8590
AC_SUBST([MAINT])dnl
8594
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8596
# Check to see how 'make' treats includes. -*- Autoconf -*-
8598
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
8600
# This file is free software; the Free Software Foundation
8601
# gives unlimited permission to copy and/or distribute it,
8602
# with or without modifications, as long as this notice is preserved.
8608
# Check to see how make treats includes.
8609
AC_DEFUN([AM_MAKE_INCLUDE],
8610
[am_make=${MAKE-make}
8611
cat > confinc << 'END'
8613
@echo this is the am__doit target
8616
# If we don't find an include directive, just comment out the code.
8617
AC_MSG_CHECKING([for style of include used by $am_make])
8621
# First try GNU make style include.
8622
echo "include confinc" > confmf
8623
# Ignore all kinds of additional output from `make'.
8624
case `$am_make -s -f confmf 2> /dev/null` in #(
8625
*the\ am__doit\ target*)
8631
# Now try BSD make style include.
8632
if test "$am__include" = "#"; then
8633
echo '.include "confinc"' > confmf
8634
case `$am_make -s -f confmf 2> /dev/null` in #(
8635
*the\ am__doit\ target*)
8636
am__include=.include
8642
AC_SUBST([am__include])
8643
AC_SUBST([am__quote])
8644
AC_MSG_RESULT([$_am_result])
8645
rm -f confinc confmf
8648
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8650
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
8651
# Free Software Foundation, Inc.
8653
# This file is free software; the Free Software Foundation
8654
# gives unlimited permission to copy and/or distribute it,
8655
# with or without modifications, as long as this notice is preserved.
8659
# AM_MISSING_PROG(NAME, PROGRAM)
8660
# ------------------------------
8661
AC_DEFUN([AM_MISSING_PROG],
8662
[AC_REQUIRE([AM_MISSING_HAS_RUN])
8663
$1=${$1-"${am_missing_run}$2"}
8667
# AM_MISSING_HAS_RUN
8668
# ------------------
8669
# Define MISSING if not defined so far and test if it supports --run.
8670
# If it does, set am_missing_run to use it, otherwise, to nothing.
8671
AC_DEFUN([AM_MISSING_HAS_RUN],
8672
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8673
AC_REQUIRE_AUX_FILE([missing])dnl
8674
if test x"${MISSING+set}" != xset; then
8677
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
8679
MISSING="\${SHELL} $am_aux_dir/missing" ;;
8682
# Use eval to expand $SHELL
8683
if eval "$MISSING --run true"; then
8684
am_missing_run="$MISSING --run "
8687
AC_MSG_WARN([`missing' script is too old or missing])
8691
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8693
# This file is free software; the Free Software Foundation
8694
# gives unlimited permission to copy and/or distribute it,
8695
# with or without modifications, as long as this notice is preserved.
8699
# Check for `mkdir -p'.
8700
AC_DEFUN([AM_PROG_MKDIR_P],
8701
[AC_PREREQ([2.60])dnl
8702
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8703
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8704
dnl while keeping a definition of mkdir_p for backward compatibility.
8705
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8706
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8707
dnl Makefile.ins that do not define MKDIR_P, so we do our own
8708
dnl adjustment using top_builddir (which is defined more often than
8710
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8712
[[\\/$]]* | ?:[[\\/]]*) ;;
8713
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8717
# Helper functions for option handling. -*- Autoconf -*-
8719
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
8721
# This file is free software; the Free Software Foundation
8722
# gives unlimited permission to copy and/or distribute it,
8723
# with or without modifications, as long as this notice is preserved.
8727
# _AM_MANGLE_OPTION(NAME)
8728
# -----------------------
8729
AC_DEFUN([_AM_MANGLE_OPTION],
8730
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8732
# _AM_SET_OPTION(NAME)
8733
# ------------------------------
8734
# Set option NAME. Presently that only means defining a flag for this option.
8735
AC_DEFUN([_AM_SET_OPTION],
8736
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8738
# _AM_SET_OPTIONS(OPTIONS)
8739
# ----------------------------------
8740
# OPTIONS is a space-separated list of Automake options.
8741
AC_DEFUN([_AM_SET_OPTIONS],
8742
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8744
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8745
# -------------------------------------------
8746
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8747
AC_DEFUN([_AM_IF_OPTION],
8748
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8750
# Check to make sure that the build environment is sane. -*- Autoconf -*-
8752
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
8753
# Free Software Foundation, Inc.
8755
# This file is free software; the Free Software Foundation
8756
# gives unlimited permission to copy and/or distribute it,
8757
# with or without modifications, as long as this notice is preserved.
8763
AC_DEFUN([AM_SANITY_CHECK],
8764
[AC_MSG_CHECKING([whether build environment is sane])
8767
echo timestamp > conftest.file
8768
# Reject unsafe characters in $srcdir or the absolute working directory
8769
# name. Accept space and tab only in the latter.
8773
*[[\\\"\#\$\&\'\`$am_lf]]*)
8774
AC_MSG_ERROR([unsafe absolute working directory name]);;
8777
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
8778
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
8781
# Do `set' in a subshell so we don't clobber the current shell's
8782
# arguments. Must try -L first in case configure is actually a
8783
# symlink; some systems play weird games with the mod time of symlinks
8784
# (eg FreeBSD returns the mod time of the symlink's containing
8787
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8788
if test "$[*]" = "X"; then
8790
set X `ls -t "$srcdir/configure" conftest.file`
8793
if test "$[*]" != "X $srcdir/configure conftest.file" \
8794
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
8796
# If neither matched, then we have a broken ls. This can happen
8797
# if, for instance, CONFIG_SHELL is bash and it inherits a
8798
# broken ls alias from the environment. This has actually
8799
# happened. Such a system could not be considered "sane".
8800
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8801
alias in your environment])
8804
test "$[2]" = conftest.file
8810
AC_MSG_ERROR([newly created file is older than distributed files!
8811
Check your system clock])
8813
AC_MSG_RESULT(yes)])
8815
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8817
# This file is free software; the Free Software Foundation
8818
# gives unlimited permission to copy and/or distribute it,
8819
# with or without modifications, as long as this notice is preserved.
8821
# AM_PROG_INSTALL_STRIP
8822
# ---------------------
8823
# One issue with vendor `install' (even GNU) is that you can't
8824
# specify the program used to strip binaries. This is especially
8825
# annoying in cross-compiling environments, where the build's strip
8826
# is unlikely to handle the host's binaries.
8827
# Fortunately install-sh will honor a STRIPPROG variable, so we
8828
# always use install-sh in `make install-strip', and initialize
8829
# STRIPPROG with the value of the STRIP variable (set by the user).
8830
AC_DEFUN([AM_PROG_INSTALL_STRIP],
8831
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8832
# Installed binaries are usually stripped using `strip' when the user
8833
# run `make install-strip'. However `strip' might not be the right
8834
# tool to use in cross-compilation environments, therefore Automake
8835
# will honor the `STRIP' environment variable to overrule this program.
8836
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8837
if test "$cross_compiling" != no; then
8838
AC_CHECK_TOOL([STRIP], [strip], :)
8840
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8841
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8843
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
8845
# This file is free software; the Free Software Foundation
8846
# gives unlimited permission to copy and/or distribute it,
8847
# with or without modifications, as long as this notice is preserved.
8851
# _AM_SUBST_NOTMAKE(VARIABLE)
8852
# ---------------------------
8853
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8854
# This macro is traced by Automake.
8855
AC_DEFUN([_AM_SUBST_NOTMAKE])
8857
# AM_SUBST_NOTMAKE(VARIABLE)
8858
# ---------------------------
8859
# Public sister of _AM_SUBST_NOTMAKE.
8860
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
8862
# Check how to create a tarball. -*- Autoconf -*-
8864
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8866
# This file is free software; the Free Software Foundation
8867
# gives unlimited permission to copy and/or distribute it,
8868
# with or without modifications, as long as this notice is preserved.
8872
# _AM_PROG_TAR(FORMAT)
8873
# --------------------
8874
# Check how to create a tarball in format FORMAT.
8875
# FORMAT should be one of `v7', `ustar', or `pax'.
8877
# Substitute a variable $(am__tar) that is a command
8878
# writing to stdout a FORMAT-tarball containing the directory
8880
# tardir=directory && $(am__tar) > result.tar
8882
# Substitute a variable $(am__untar) that extract such
8883
# a tarball read from stdin.
8884
# $(am__untar) < result.tar
8885
AC_DEFUN([_AM_PROG_TAR],
8886
[# Always define AMTAR for backward compatibility.
8887
AM_MISSING_PROG([AMTAR], [tar])
8889
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8890
[m4_case([$1], [ustar],, [pax],,
8891
[m4_fatal([Unknown tar format])])
8892
AC_MSG_CHECKING([how to create a $1 tar archive])
8893
# Loop over all known methods to create a tar archive until one works.
8894
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8895
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
8896
# Do not fold the above two line into one, because Tru64 sh and
8897
# Solaris sh will not grok spaces in the rhs of `-'.
8898
for _am_tool in $_am_tools
8902
for _am_tar in tar gnutar gtar;
8904
AM_RUN_LOG([$_am_tar --version]) && break
8906
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8907
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8908
am__untar="$_am_tar -xf -"
8911
# Must skip GNU tar: if it does not support --format= it doesn't create
8912
# ustar tarball either.
8913
(tar --version) >/dev/null 2>&1 && continue
8914
am__tar='tar chf - "$$tardir"'
8915
am__tar_='tar chf - "$tardir"'
8916
am__untar='tar xf -'
8919
am__tar='pax -L -x $1 -w "$$tardir"'
8920
am__tar_='pax -L -x $1 -w "$tardir"'
8924
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8925
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8926
am__untar='cpio -i -H $1 -d'
8935
# If the value was cached, stop now. We just wanted to have am__tar
8936
# and am__untar set.
8937
test -n "${am_cv_prog_tar_$1}" && break
8939
# tar/untar a dummy directory, and stop if the command works
8942
echo GrepMe > conftest.dir/file
8943
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8945
if test -s conftest.tar; then
8946
AM_RUN_LOG([$am__untar <conftest.tar])
8947
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8952
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8953
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8955
AC_SUBST([am__untar])