11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
16
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
18
# This program is free software; you can redistribute it and/or modify
19
# it under the terms of the GNU General Public License as published by
20
# the Free Software Foundation; either version 2, or (at your option)
23
# This program is distributed in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU General Public License for more details.
28
# You should have received a copy of the GNU General Public License
29
# along with this program; if not, write to the Free Software
30
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
38
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
40
# Do all the work for Automake. -*- Autoconf -*-
42
# This macro actually does too much some checks are only needed if
43
# your package does certain things. But this isn't really a big deal.
45
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
46
# Free Software Foundation, Inc.
48
# This program is free software; you can redistribute it and/or modify
49
# it under the terms of the GNU General Public License as published by
50
# the Free Software Foundation; either version 2, or (at your option)
53
# This program is distributed in the hope that it will be useful,
54
# but WITHOUT ANY WARRANTY; without even the implied warranty of
55
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56
# GNU General Public License for more details.
58
# You should have received a copy of the GNU General Public License
59
# along with this program; if not, write to the Free Software
60
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
67
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
68
# the ones we care about.
69
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
71
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
72
# AM_INIT_AUTOMAKE([OPTIONS])
73
# -----------------------------------------------
74
# The call with PACKAGE and VERSION arguments is the old style
75
# call (pre autoconf-2.50), which is being phased out. PACKAGE
76
# and VERSION should now be passed to AC_INIT and removed from
77
# the call to AM_INIT_AUTOMAKE.
78
# We support both call styles for the transition. After
79
# the next Automake release, Autoconf can make the AC_INIT
80
# arguments mandatory, and then we can depend on a new Autoconf
81
# release and drop the old call support.
82
AC_DEFUN([AM_INIT_AUTOMAKE],
83
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
84
AC_REQUIRE([AC_PROG_INSTALL])dnl
85
# test to see if srcdir already configured
86
if test "`cd $srcdir && pwd`" != "`pwd`" &&
87
test -f $srcdir/config.status; then
88
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
91
# test whether we have cygpath
92
if test -z "$CYGPATH_W"; then
93
if (cygpath --version) >/dev/null 2>/dev/null; then
94
CYGPATH_W='cygpath -w'
101
# Define the identity of the package.
102
dnl Distinguish between old-style and new-style calls.
104
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
105
AC_SUBST([PACKAGE], [$1])dnl
106
AC_SUBST([VERSION], [$2])],
107
[_AM_SET_OPTIONS([$1])dnl
108
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
109
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
111
_AM_IF_OPTION([no-define],,
112
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
113
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
115
# Some tools Automake needs.
116
AC_REQUIRE([AM_SANITY_CHECK])dnl
117
AC_REQUIRE([AC_ARG_PROGRAM])dnl
118
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
119
AM_MISSING_PROG(AUTOCONF, autoconf)
120
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
121
AM_MISSING_PROG(AUTOHEADER, autoheader)
122
AM_MISSING_PROG(MAKEINFO, makeinfo)
123
AM_MISSING_PROG(AMTAR, tar)
125
AM_PROG_INSTALL_STRIP
126
# We need awk for the "check" target. The system "awk" is bad on
128
AC_REQUIRE([AC_PROG_AWK])dnl
129
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
130
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
132
_AM_IF_OPTION([no-dependencies],,
133
[AC_PROVIDE_IFELSE([AC_PROG_CC],
134
[_AM_DEPENDENCIES(CC)],
135
[define([AC_PROG_CC],
136
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
137
AC_PROVIDE_IFELSE([AC_PROG_CXX],
138
[_AM_DEPENDENCIES(CXX)],
139
[define([AC_PROG_CXX],
140
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
145
# When config.status generates a header, we must update the stamp-h file.
146
# This file resides in the same directory as the config header
147
# that is generated. The stamp files are numbered to have different names.
149
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
150
# loop where config.status creates the headers, so we can generate
151
# our stamp files there.
152
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
153
[# Compute $1's index in $config_headers.
155
for _am_header in $config_headers :; do
160
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
163
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
165
# Copyright 2002 Free Software Foundation, Inc.
167
# This program is free software; you can redistribute it and/or modify
168
# it under the terms of the GNU General Public License as published by
169
# the Free Software Foundation; either version 2, or (at your option)
172
# This program is distributed in the hope that it will be useful,
173
# but WITHOUT ANY WARRANTY; without even the implied warranty of
174
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
175
# GNU General Public License for more details.
177
# You should have received a copy of the GNU General Public License
178
# along with this program; if not, write to the Free Software
179
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
181
# AM_AUTOMAKE_VERSION(VERSION)
182
# ----------------------------
183
# Automake X.Y traces this macro to ensure aclocal.m4 has been
184
# generated from the m4 files accompanying Automake X.Y.
185
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
187
# AM_SET_CURRENT_AUTOMAKE_VERSION
188
# -------------------------------
189
# Call AM_AUTOMAKE_VERSION so it can be traced.
190
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
191
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
192
[AM_AUTOMAKE_VERSION([1.7.9])])
194
# Helper functions for option handling. -*- Autoconf -*-
196
# Copyright 2001, 2002 Free Software Foundation, Inc.
198
# This program is free software; you can redistribute it and/or modify
199
# it under the terms of the GNU General Public License as published by
200
# the Free Software Foundation; either version 2, or (at your option)
203
# This program is distributed in the hope that it will be useful,
204
# but WITHOUT ANY WARRANTY; without even the implied warranty of
205
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
206
# GNU General Public License for more details.
208
# You should have received a copy of the GNU General Public License
209
# along with this program; if not, write to the Free Software
210
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
215
# _AM_MANGLE_OPTION(NAME)
216
# -----------------------
217
AC_DEFUN([_AM_MANGLE_OPTION],
218
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
220
# _AM_SET_OPTION(NAME)
221
# ------------------------------
222
# Set option NAME. Presently that only means defining a flag for this option.
223
AC_DEFUN([_AM_SET_OPTION],
224
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
226
# _AM_SET_OPTIONS(OPTIONS)
227
# ----------------------------------
228
# OPTIONS is a space-separated list of Automake options.
229
AC_DEFUN([_AM_SET_OPTIONS],
230
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
232
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
233
# -------------------------------------------
234
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
235
AC_DEFUN([_AM_IF_OPTION],
236
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
239
# Check to make sure that the build environment is sane.
242
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
244
# This program is free software; you can redistribute it and/or modify
245
# it under the terms of the GNU General Public License as published by
246
# the Free Software Foundation; either version 2, or (at your option)
249
# This program is distributed in the hope that it will be useful,
250
# but WITHOUT ANY WARRANTY; without even the implied warranty of
251
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
252
# GNU General Public License for more details.
254
# You should have received a copy of the GNU General Public License
255
# along with this program; if not, write to the Free Software
256
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
263
AC_DEFUN([AM_SANITY_CHECK],
264
[AC_MSG_CHECKING([whether build environment is sane])
267
echo timestamp > conftest.file
268
# Do `set' in a subshell so we don't clobber the current shell's
269
# arguments. Must try -L first in case configure is actually a
270
# symlink; some systems play weird games with the mod time of symlinks
271
# (eg FreeBSD returns the mod time of the symlink's containing
274
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
275
if test "$[*]" = "X"; then
277
set X `ls -t $srcdir/configure conftest.file`
280
if test "$[*]" != "X $srcdir/configure conftest.file" \
281
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
283
# If neither matched, then we have a broken ls. This can happen
284
# if, for instance, CONFIG_SHELL is bash and it inherits a
285
# broken ls alias from the environment. This has actually
286
# happened. Such a system could not be considered "sane".
287
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
288
alias in your environment])
291
test "$[2]" = conftest.file
297
AC_MSG_ERROR([newly created file is older than distributed files!
298
Check your system clock])
305
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
307
# This program is free software; you can redistribute it and/or modify
308
# it under the terms of the GNU General Public License as published by
309
# the Free Software Foundation; either version 2, or (at your option)
312
# This program is distributed in the hope that it will be useful,
313
# but WITHOUT ANY WARRANTY; without even the implied warranty of
314
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
315
# GNU General Public License for more details.
317
# You should have received a copy of the GNU General Public License
318
# along with this program; if not, write to the Free Software
319
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
324
# AM_MISSING_PROG(NAME, PROGRAM)
325
# ------------------------------
326
AC_DEFUN([AM_MISSING_PROG],
327
[AC_REQUIRE([AM_MISSING_HAS_RUN])
328
$1=${$1-"${am_missing_run}$2"}
334
# Define MISSING if not defined so far and test if it supports --run.
335
# If it does, set am_missing_run to use it, otherwise, to nothing.
336
AC_DEFUN([AM_MISSING_HAS_RUN],
337
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
338
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
339
# Use eval to expand $SHELL
340
if eval "$MISSING --run true"; then
341
am_missing_run="$MISSING --run "
344
AC_MSG_WARN([`missing' script is too old or missing])
350
# Copyright 2001 Free Software Foundation, Inc.
352
# This program is free software; you can redistribute it and/or modify
353
# it under the terms of the GNU General Public License as published by
354
# the Free Software Foundation; either version 2, or (at your option)
357
# This program is distributed in the hope that it will be useful,
358
# but WITHOUT ANY WARRANTY; without even the implied warranty of
359
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
360
# GNU General Public License for more details.
362
# You should have received a copy of the GNU General Public License
363
# along with this program; if not, write to the Free Software
364
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
367
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
368
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
369
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
371
# Of course, Automake must honor this variable whenever it calls a
372
# tool from the auxiliary directory. The problem is that $srcdir (and
373
# therefore $ac_aux_dir as well) can be either absolute or relative,
374
# depending on how configure is run. This is pretty annoying, since
375
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
376
# source directory, any form will work fine, but in subdirectories a
377
# relative path needs to be adjusted first.
379
# $ac_aux_dir/missing
380
# fails when called from a subdirectory if $ac_aux_dir is relative
381
# $top_srcdir/$ac_aux_dir/missing
382
# fails if $ac_aux_dir is absolute,
383
# fails when called from a subdirectory in a VPATH build with
384
# a relative $ac_aux_dir
386
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
387
# are both prefixed by $srcdir. In an in-source build this is usually
388
# harmless because $srcdir is `.', but things will broke when you
389
# start a VPATH build or use an absolute $srcdir.
391
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
392
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
393
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
394
# and then we would define $MISSING as
395
# MISSING="\${SHELL} $am_aux_dir/missing"
396
# This will work as long as MISSING is not called from configure, because
397
# unfortunately $(top_srcdir) has no meaning in configure.
398
# However there are other variables, like CC, which are often used in
399
# configure, and could therefore not use this "fixed" $ac_aux_dir.
401
# Another solution, used here, is to always expand $ac_aux_dir to an
402
# absolute PATH. The drawback is that using absolute paths prevent a
403
# configured tree to be moved without reconfiguration.
405
# Rely on autoconf to set up CDPATH properly.
408
AC_DEFUN([AM_AUX_DIR_EXPAND], [
409
# expand $ac_aux_dir to an absolute path
410
am_aux_dir=`cd $ac_aux_dir && pwd`
415
# Define $install_sh.
417
# Copyright 2001 Free Software Foundation, Inc.
419
# This program is free software; you can redistribute it and/or modify
420
# it under the terms of the GNU General Public License as published by
421
# the Free Software Foundation; either version 2, or (at your option)
424
# This program is distributed in the hope that it will be useful,
425
# but WITHOUT ANY WARRANTY; without even the implied warranty of
426
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
427
# GNU General Public License for more details.
429
# You should have received a copy of the GNU General Public License
430
# along with this program; if not, write to the Free Software
431
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
434
AC_DEFUN([AM_PROG_INSTALL_SH],
435
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
436
install_sh=${install_sh-"$am_aux_dir/install-sh"}
437
AC_SUBST(install_sh)])
439
# AM_PROG_INSTALL_STRIP
441
# Copyright 2001 Free Software Foundation, Inc.
443
# This program is free software; you can redistribute it and/or modify
444
# it under the terms of the GNU General Public License as published by
445
# the Free Software Foundation; either version 2, or (at your option)
448
# This program is distributed in the hope that it will be useful,
449
# but WITHOUT ANY WARRANTY; without even the implied warranty of
450
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
451
# GNU General Public License for more details.
453
# You should have received a copy of the GNU General Public License
454
# along with this program; if not, write to the Free Software
455
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
458
# One issue with vendor `install' (even GNU) is that you can't
459
# specify the program used to strip binaries. This is especially
460
# annoying in cross-compiling environments, where the build's strip
461
# is unlikely to handle the host's binaries.
462
# Fortunately install-sh will honor a STRIPPROG variable, so we
463
# always use install-sh in `make install-strip', and initialize
464
# STRIPPROG with the value of the STRIP variable (set by the user).
465
AC_DEFUN([AM_PROG_INSTALL_STRIP],
466
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
467
# Installed binaries are usually stripped using `strip' when the user
468
# run `make install-strip'. However `strip' might not be the right
469
# tool to use in cross-compilation environments, therefore Automake
470
# will honor the `STRIP' environment variable to overrule this program.
471
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
472
if test "$cross_compiling" != no; then
473
AC_CHECK_TOOL([STRIP], [strip], :)
475
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
476
AC_SUBST([INSTALL_STRIP_PROGRAM])])
479
# Copyright (C) 2003 Free Software Foundation, Inc.
481
# This program is free software; you can redistribute it and/or modify
482
# it under the terms of the GNU General Public License as published by
483
# the Free Software Foundation; either version 2, or (at your option)
486
# This program is distributed in the hope that it will be useful,
487
# but WITHOUT ANY WARRANTY; without even the implied warranty of
488
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
489
# GNU General Public License for more details.
491
# You should have received a copy of the GNU General Public License
492
# along with this program; if not, write to the Free Software
493
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
498
# Check whether the underlying file-system supports filenames
499
# with a leading dot. For instance MS-DOS doesn't.
500
AC_DEFUN([AM_SET_LEADING_DOT],
501
[rm -rf .tst 2>/dev/null
502
mkdir .tst 2>/dev/null
503
if test -d .tst; then
508
rmdir .tst 2>/dev/null
509
AC_SUBST([am__leading_dot])])
511
# serial 5 -*- Autoconf -*-
513
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
515
# This program is free software; you can redistribute it and/or modify
516
# it under the terms of the GNU General Public License as published by
517
# the Free Software Foundation; either version 2, or (at your option)
520
# This program is distributed in the hope that it will be useful,
521
# but WITHOUT ANY WARRANTY; without even the implied warranty of
522
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
523
# GNU General Public License for more details.
525
# You should have received a copy of the GNU General Public License
526
# along with this program; if not, write to the Free Software
527
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
531
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
532
# written in clear, in which case automake, when reading aclocal.m4,
533
# will think it sees a *use*, and therefore will trigger all it's
534
# C support machinery. Also note that it means that autoscan, seeing
535
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
539
# _AM_DEPENDENCIES(NAME)
540
# ----------------------
541
# See how the compiler implements dependency checking.
542
# NAME is "CC", "CXX", "GCJ", or "OBJC".
543
# We try a few techniques and use that to set a single cache variable.
545
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
546
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
547
# dependency, and given that the user is not expected to run this macro,
548
# just rely on AC_PROG_CC.
549
AC_DEFUN([_AM_DEPENDENCIES],
550
[AC_REQUIRE([AM_SET_DEPDIR])dnl
551
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
552
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
553
AC_REQUIRE([AM_DEP_TRACK])dnl
555
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
556
[$1], CXX, [depcc="$CXX" am_compiler_list=],
557
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
558
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
559
[depcc="$$1" am_compiler_list=])
561
AC_CACHE_CHECK([dependency style of $depcc],
562
[am_cv_$1_dependencies_compiler_type],
563
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
564
# We make a subdir and do the tests there. Otherwise we can end up
565
# making bogus files that we don't know about and never remove. For
566
# instance it was reported that on HP-UX the gcc test will end up
567
# making a dummy file named `D' -- because `-MD' means `put the output
570
# Copy depcomp to subdir because otherwise we won't find it if we're
571
# using a relative directory.
572
cp "$am_depcomp" conftest.dir
574
# We will build objects and dependencies in a subdirectory because
575
# it helps to detect inapplicable dependency modes. For instance
576
# both Tru64's cc and ICC support -MD to output dependencies as a
577
# side effect of compilation, but ICC will put the dependencies in
578
# the current directory while Tru64 will put them in the object
582
am_cv_$1_dependencies_compiler_type=none
583
if test "$am_compiler_list" = ""; then
584
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
586
for depmode in $am_compiler_list; do
587
# Setup a source with many dependencies, because some compilers
588
# like to wrap large dependency lists on column 80 (with \), and
589
# we should not choose a depcomp mode which is confused by this.
591
# We need to recreate these files for each test, as the compiler may
592
# overwrite some of them when testing with obscure command lines.
593
# This happens at least with the AIX C compiler.
595
for i in 1 2 3 4 5 6; do
596
echo '#include "conftst'$i'.h"' >> sub/conftest.c
599
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
603
# after this tag, mechanisms are not by side-effect, so they'll
604
# only be used when explicitly requested
605
if test "x$enable_dependency_tracking" = xyes; then
613
# We check with `-c' and `-o' for the sake of the "dashmstdout"
614
# mode. It turns out that the SunPro C++ compiler does not properly
615
# handle `-M -o', and we need to detect this.
616
if depmode=$depmode \
617
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
618
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
619
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
620
>/dev/null 2>conftest.err &&
621
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
622
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
623
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
624
# icc doesn't choke on unknown options, it will just issue warnings
625
# (even with -Werror). So we grep stderr for any message
626
# that says an option was ignored.
627
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
628
am_cv_$1_dependencies_compiler_type=$depmode
637
am_cv_$1_dependencies_compiler_type=none
640
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
641
AM_CONDITIONAL([am__fastdep$1], [
642
test "x$enable_dependency_tracking" != xno \
643
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
649
# Choose a directory name for dependency files.
650
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
651
AC_DEFUN([AM_SET_DEPDIR],
652
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
653
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
659
AC_DEFUN([AM_DEP_TRACK],
660
[AC_ARG_ENABLE(dependency-tracking,
661
[ --disable-dependency-tracking Speeds up one-time builds
662
--enable-dependency-tracking Do not reject slow dependency extractors])
663
if test "x$enable_dependency_tracking" != xno; then
664
am_depcomp="$ac_aux_dir/depcomp"
667
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
668
AC_SUBST([AMDEPBACKSLASH])
671
# Generate code to set up dependency tracking. -*- Autoconf -*-
673
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
675
# This program is free software; you can redistribute it and/or modify
676
# it under the terms of the GNU General Public License as published by
677
# the Free Software Foundation; either version 2, or (at your option)
680
# This program is distributed in the hope that it will be useful,
681
# but WITHOUT ANY WARRANTY; without even the implied warranty of
682
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
683
# GNU General Public License for more details.
685
# You should have received a copy of the GNU General Public License
686
# along with this program; if not, write to the Free Software
687
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
692
# _AM_OUTPUT_DEPENDENCY_COMMANDS
693
# ------------------------------
694
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
695
[for mf in $CONFIG_FILES; do
696
# Strip MF so we end up with the name of the file.
697
mf=`echo "$mf" | sed -e 's/:.*$//'`
698
# Check whether this is an Automake generated Makefile or not.
699
# We used to match only the files named `Makefile.in', but
700
# some people rename them; so instead we look at the file content.
701
# Grep'ing the first line is not enough: some people post-process
702
# each Makefile.in and add a new line on top of each file to say so.
703
# So let's grep whole file.
704
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
705
dirpart=`AS_DIRNAME("$mf")`
709
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
710
# Extract the definition of DEP_FILES from the Makefile without
712
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
713
test -z "$DEPDIR" && continue
714
# When using ansi2knr, U may be empty or an underscore; expand it
715
U=`sed -n -e '/^U = / s///p' < "$mf"`
716
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
717
# We invoke sed twice because it is the simplest approach to
718
# changing $(DEPDIR) to its actual value in the expansion.
719
for file in `sed -n -e '
720
/^DEP_FILES = .*\\\\$/ {
729
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
730
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
731
# Make sure the directory exists.
732
test -f "$dirpart/$file" && continue
733
fdir=`AS_DIRNAME(["$file"])`
734
AS_MKDIR_P([$dirpart/$fdir])
735
# echo "creating $dirpart/$file"
736
echo '# dummy' > "$dirpart/$file"
739
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
742
# AM_OUTPUT_DEPENDENCY_COMMANDS
743
# -----------------------------
744
# This macro should only be invoked once -- use via AC_REQUIRE.
746
# This code is only required when automatic dependency tracking
747
# is enabled. FIXME. This creates each `.P' file that we will
748
# need in order to bootstrap the dependency handling code.
749
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
750
[AC_CONFIG_COMMANDS([depfiles],
751
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
752
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
755
# Check to see how 'make' treats includes. -*- Autoconf -*-
757
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
759
# This program is free software; you can redistribute it and/or modify
760
# it under the terms of the GNU General Public License as published by
761
# the Free Software Foundation; either version 2, or (at your option)
764
# This program is distributed in the hope that it will be useful,
765
# but WITHOUT ANY WARRANTY; without even the implied warranty of
766
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
767
# GNU General Public License for more details.
769
# You should have received a copy of the GNU General Public License
770
# along with this program; if not, write to the Free Software
771
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
778
# Check to see how make treats includes.
779
AC_DEFUN([AM_MAKE_INCLUDE],
780
[am_make=${MAKE-make}
781
cat > confinc << 'END'
786
# If we don't find an include directive, just comment out the code.
787
AC_MSG_CHECKING([for style of include used by $am_make])
791
# First try GNU make style include.
792
echo "include confinc" > confmf
793
# We grep out `Entering directory' and `Leaving directory'
794
# messages which can occur if `w' ends up in MAKEFLAGS.
795
# In particular we don't look at `^make:' because GNU make might
796
# be invoked under some other name (usually "gmake"), in which
797
# case it prints its new name instead of `make'.
798
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
803
# Now try BSD make style include.
804
if test "$am__include" = "#"; then
805
echo '.include "confinc"' > confmf
806
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
812
AC_SUBST([am__include])
813
AC_SUBST([am__quote])
814
AC_MSG_RESULT([$_am_result])
818
# AM_CONDITIONAL -*- Autoconf -*-
820
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
822
# This program is free software; you can redistribute it and/or modify
823
# it under the terms of the GNU General Public License as published by
824
# the Free Software Foundation; either version 2, or (at your option)
827
# This program is distributed in the hope that it will be useful,
828
# but WITHOUT ANY WARRANTY; without even the implied warranty of
829
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
830
# GNU General Public License for more details.
832
# You should have received a copy of the GNU General Public License
833
# along with this program; if not, write to the Free Software
834
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
841
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
842
# -------------------------------------
843
# Define a conditional.
844
AC_DEFUN([AM_CONDITIONAL],
845
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
846
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
856
AC_CONFIG_COMMANDS_PRE(
857
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
858
AC_MSG_ERROR([conditional "$1" was never defined.
859
Usually this means the macro was only invoked conditionally.])
862
# Add --enable-maintainer-mode option to configure.
865
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
867
# This program is free software; you can redistribute it and/or modify
868
# it under the terms of the GNU General Public License as published by
869
# the Free Software Foundation; either version 2, or (at your option)
872
# This program is distributed in the hope that it will be useful,
873
# but WITHOUT ANY WARRANTY; without even the implied warranty of
874
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
875
# GNU General Public License for more details.
877
# You should have received a copy of the GNU General Public License
878
# along with this program; if not, write to the Free Software
879
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
884
AC_DEFUN([AM_MAINTAINER_MODE],
885
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
886
dnl maintainer-mode is disabled by default
887
AC_ARG_ENABLE(maintainer-mode,
888
[ --enable-maintainer-mode enable make rules and dependencies not useful
889
(and sometimes confusing) to the casual installer],
890
USE_MAINTAINER_MODE=$enableval,
891
USE_MAINTAINER_MODE=no)
892
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
893
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
894
MAINT=$MAINTAINER_MODE_TRUE
899
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
901
# gettext.m4 serial 37 (gettext-0.14.4)
902
dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# gettext.m4 serial 60 (gettext-0.17)
23
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
903
24
dnl This file is free software; the Free Software Foundation
904
25
dnl gives unlimited permission to copy and/or distribute it,
905
26
dnl with or without modifications, as long as this notice is preserved.
1256
dnl Checks for all prerequisites of the intl subdirectory,
1257
dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
1258
dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
1259
AC_DEFUN([AM_INTL_SUBDIR],
1261
AC_REQUIRE([AC_PROG_INSTALL])dnl
1262
AC_REQUIRE([AM_MKINSTALLDIRS])dnl
1263
AC_REQUIRE([AC_PROG_CC])dnl
1264
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1265
AC_REQUIRE([gt_GLIBC2])dnl
1266
AC_REQUIRE([AC_PROG_RANLIB])dnl
1267
AC_REQUIRE([AC_ISC_POSIX])dnl
1268
AC_REQUIRE([AC_HEADER_STDC])dnl
1269
AC_REQUIRE([AC_C_CONST])dnl
1270
AC_REQUIRE([bh_C_SIGNED])dnl
1271
AC_REQUIRE([AC_C_INLINE])dnl
1272
AC_REQUIRE([AC_TYPE_OFF_T])dnl
1273
AC_REQUIRE([AC_TYPE_SIZE_T])dnl
1274
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
1275
AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
1276
AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
1277
AC_REQUIRE([gt_TYPE_WINT_T])dnl
1278
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
1279
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
1280
AC_REQUIRE([gt_TYPE_INTMAX_T])
1281
AC_REQUIRE([gt_PRINTF_POSIX])
1282
AC_REQUIRE([AC_FUNC_ALLOCA])dnl
1283
AC_REQUIRE([AC_FUNC_MMAP])dnl
1284
AC_REQUIRE([gl_GLIBC21])dnl
1285
AC_REQUIRE([gt_INTDIV0])dnl
1286
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
1287
AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
1288
AC_REQUIRE([gt_INTTYPES_PRI])dnl
1289
AC_REQUIRE([gl_XSIZE])dnl
1290
AC_REQUIRE([gt_INTL_MACOSX])dnl
1292
AC_CHECK_TYPE([ptrdiff_t], ,
1293
[AC_DEFINE([ptrdiff_t], [long],
1294
[Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
1296
AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
1297
stdlib.h string.h unistd.h sys/param.h])
1298
AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
1299
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
1300
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
1303
dnl Use the _snprintf function only if it is declared (because on NetBSD it
1304
dnl is defined as a weak alias of snprintf; we prefer to use the latter).
1305
gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
1306
gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
1308
dnl Use the *_unlocked functions only if they are declared.
1309
dnl (because some of them were defined without being declared in Solaris
1310
dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
1311
dnl on Solaris 2.5.1 to run on Solaris 2.6).
1312
dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
1313
gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
1314
gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
1315
gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
1317
case $gt_cv_func_printf_posix in
1318
*yes) HAVE_POSIX_PRINTF=1 ;;
1319
*) HAVE_POSIX_PRINTF=0 ;;
1321
AC_SUBST([HAVE_POSIX_PRINTF])
1322
if test "$ac_cv_func_asprintf" = yes; then
1327
AC_SUBST([HAVE_ASPRINTF])
1328
if test "$ac_cv_func_snprintf" = yes; then
1333
AC_SUBST([HAVE_SNPRINTF])
1334
if test "$ac_cv_func_wprintf" = yes; then
1339
AC_SUBST([HAVE_WPRINTF])
1343
if test $ac_cv_header_locale_h = yes; then
1347
if test -n "$INTL_MACOSX_LIBS"; then
1348
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1351
dnl intl/plural.c is generated from intl/plural.y. It requires bison,
1352
dnl because plural.y uses bison specific features. It requires at least
1353
dnl bison-1.26 because earlier versions generate a plural.c that doesn't
1355
dnl bison is only needed for the maintainer (who touches plural.y). But in
1356
dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
1357
dnl the rule in general Makefile. Now, some people carelessly touch the
1358
dnl files or have a broken "make" program, hence the plural.c rule will
1359
dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
1360
dnl present or too old.
1361
AC_CHECK_PROGS([INTLBISON], [bison])
1362
if test -z "$INTLBISON"; then
1365
dnl Found it, now check the version.
1366
AC_MSG_CHECKING([version of bison])
1367
changequote(<<,>>)dnl
1368
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1369
case $ac_prog_version in
1370
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1371
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
1373
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1374
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1376
AC_MSG_RESULT([$ac_prog_version])
1378
if test $ac_verc_fail = yes; then
1384
dnl Checks for special options needed on MacOS X.
1385
dnl Defines INTL_MACOSX_LIBS.
1386
AC_DEFUN([gt_INTL_MACOSX],
1388
dnl Check for API introduced in MacOS X 10.2.
1389
AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
1390
gt_cv_func_CFPreferencesCopyAppValue,
1391
[gt_save_CPPFLAGS="$CPPFLAGS"
1392
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1393
gt_save_LIBS="$LIBS"
1394
LIBS="$LIBS -framework CoreFoundation"
1395
AC_TRY_LINK([#include <CFPreferences.h>],
1396
[CFPreferencesCopyAppValue(NULL, NULL)],
1397
[gt_cv_func_CFPreferencesCopyAppValue=yes],
1398
[gt_cv_func_CFPreferencesCopyAppValue=no])
1399
CPPFLAGS="$gt_save_CPPFLAGS"
1400
LIBS="$gt_save_LIBS"])
1401
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
1402
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
1403
[Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
1405
dnl Check for API introduced in MacOS X 10.3.
1406
AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
1407
[gt_save_CPPFLAGS="$CPPFLAGS"
1408
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1409
gt_save_LIBS="$LIBS"
1410
LIBS="$LIBS -framework CoreFoundation"
1411
AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();],
1412
[gt_cv_func_CFLocaleCopyCurrent=yes],
1413
[gt_cv_func_CFLocaleCopyCurrent=no])
1414
CPPFLAGS="$gt_save_CPPFLAGS"
1415
LIBS="$gt_save_LIBS"])
1416
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
1417
AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
1418
[Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
1421
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
1422
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
1424
AC_SUBST([INTL_MACOSX_LIBS])
1428
dnl gt_CHECK_DECL(FUNC, INCLUDES)
1429
dnl Check whether a function is declared.
1430
AC_DEFUN([gt_CHECK_DECL],
1432
AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
1433
[AC_TRY_COMPILE([$2], [
1435
char *p = (char *) $1;
1437
], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
1438
if test $ac_cv_have_decl_$1 = yes; then
1443
AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
1444
[Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
386
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
387
m4_define([gt_NEEDS_INIT],
389
m4_divert_text([DEFAULTS], [gt_needs=])
390
m4_define([gt_NEEDS_INIT], [])
394
dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
395
AC_DEFUN([AM_GNU_GETTEXT_NEED],
397
m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
1448
401
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
1449
402
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
1451
# po.m4 serial 7 (gettext-0.14.3)
1452
dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
1453
dnl This file is free software; the Free Software Foundation
1454
dnl gives unlimited permission to copy and/or distribute it,
1455
dnl with or without modifications, as long as this notice is preserved.
1457
dnl This file can can be used in projects which are not available under
1458
dnl the GNU General Public License or the GNU Library General Public
1459
dnl License but which still want to provide support for the GNU gettext
1461
dnl Please note that the actual code of the GNU gettext library is covered
1462
dnl by the GNU Library General Public License, and the rest of the GNU
1463
dnl gettext package package is covered by the GNU General Public License.
1464
dnl They are *not* in the public domain.
1467
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1468
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1472
dnl Checks for all prerequisites of the po subdirectory.
1473
AC_DEFUN([AM_PO_SUBDIRS],
1475
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1476
AC_REQUIRE([AC_PROG_INSTALL])dnl
1477
AC_REQUIRE([AM_MKINSTALLDIRS])dnl
1478
AC_REQUIRE([AM_NLS])dnl
1480
dnl Perform the following tests also if --disable-nls has been given,
1481
dnl because they are needed for "make dist" to work.
1483
dnl Search for GNU msgfmt in the PATH.
1484
dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
1485
dnl The second test excludes FreeBSD msgfmt.
1486
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1487
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
1488
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
1490
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1492
dnl Search for GNU xgettext 0.12 or newer in the PATH.
1493
dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
1494
dnl The second test excludes FreeBSD xgettext.
1495
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1496
[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
1497
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
1499
dnl Remove leftover from FreeBSD xgettext call.
1502
dnl Search for GNU msgmerge 0.11 or newer in the PATH.
1503
AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
1504
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
1506
dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
1507
dnl Test whether we really found GNU msgfmt.
1508
if test "$GMSGFMT" != ":"; then
1509
dnl If it is no GNU msgfmt we define it as : so that the
1510
dnl Makefiles still can work.
1511
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
1512
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1515
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
1517
[found $GMSGFMT program is not GNU msgfmt; ignore it])
1522
dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
1523
dnl Test whether we really found GNU xgettext.
1524
if test "$XGETTEXT" != ":"; then
1525
dnl If it is no GNU xgettext we define it as : so that the
1526
dnl Makefiles still can work.
1527
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1528
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1532
[found xgettext program is not GNU xgettext; ignore it])
1535
dnl Remove leftover from FreeBSD xgettext call.
1539
AC_OUTPUT_COMMANDS([
1540
for ac_file in $CONFIG_FILES; do
1541
# Support "outfile[:infile[:infile...]]"
1543
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1545
# PO directories have a Makefile.in generated from Makefile.in.in.
1546
case "$ac_file" in */Makefile.in)
1547
# Adjust a relative srcdir.
1548
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1549
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
1550
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
1551
# In autoconf-2.13 it is called $ac_given_srcdir.
1552
# In autoconf-2.50 it is called $srcdir.
1553
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
1554
case "$ac_given_srcdir" in
1555
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
1556
/*) top_srcdir="$ac_given_srcdir" ;;
1557
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
1559
# Treat a directory as a PO directory if and only if it has a
1560
# POTFILES.in file. This allows packages to have multiple PO
1561
# directories under different names or in different locations.
1562
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
1563
rm -f "$ac_dir/POTFILES"
1564
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
1565
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
1566
POMAKEFILEDEPS="POTFILES.in"
1567
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
1568
# on $ac_dir but don't depend on user-specified configuration
1570
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
1571
# The LINGUAS file contains the set of available languages.
1572
if test -n "$OBSOLETE_ALL_LINGUAS"; then
1573
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
1575
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1576
# Hide the ALL_LINGUAS assigment from automake.
1577
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
1578
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
1580
# The set of available languages was given in configure.in.
1581
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
1584
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
1585
# Compute UPDATEPOFILES
1586
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
1587
# Compute DUMMYPOFILES
1588
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
1590
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
1591
case "$ac_given_srcdir" in
1593
*) srcdirpre='$(srcdir)/' ;;
1599
for lang in $ALL_LINGUAS; do
1600
POFILES="$POFILES $srcdirpre$lang.po"
1601
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
1602
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
1603
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1605
# CATALOGS depends on both $ac_dir and the user's LINGUAS
1606
# environment variable.
1608
if test -n "$ALL_LINGUAS"; then
1609
for presentlang in $ALL_LINGUAS; do
1611
if test "%UNSET%" != "$LINGUAS"; then
1612
desiredlanguages="$LINGUAS"
1614
desiredlanguages="$ALL_LINGUAS"
1616
for desiredlang in $desiredlanguages; do
1617
# Use the presentlang catalog if desiredlang is
1618
# a. equal to presentlang, or
1619
# b. a variant of presentlang (because in this case,
1620
# presentlang can be used as a fallback for messages
1621
# which are not translated in the desiredlang catalog).
1622
case "$desiredlang" in
1623
"$presentlang"*) useit=yes;;
1626
if test $useit = yes; then
1627
INST_LINGUAS="$INST_LINGUAS $presentlang"
1632
if test -n "$INST_LINGUAS"; then
1633
for lang in $INST_LINGUAS; do
1634
CATALOGS="$CATALOGS $lang.gmo"
1637
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
1638
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
1639
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
1640
if test -f "$f"; then
1642
*.orig | *.bak | *~) ;;
1643
*) cat "$f" >> "$ac_dir/Makefile" ;;
1651
[# Capture the value of obsolete ALL_LINGUAS because we need it to compute
1652
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
1654
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
1655
# Capture the value of LINGUAS because we need it to compute CATALOGS.
1656
LINGUAS="${LINGUAS-%UNSET%}"
1660
dnl Postprocesses a Makefile in a directory containing PO files.
1661
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
1663
# When this code is run, in config.status, two variables have already been
1665
# - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
1666
# - LINGUAS is the value of the environment variable LINGUAS at configure
1670
# Adjust a relative srcdir.
1671
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1672
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
1673
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
1674
# In autoconf-2.13 it is called $ac_given_srcdir.
1675
# In autoconf-2.50 it is called $srcdir.
1676
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
1677
case "$ac_given_srcdir" in
1678
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
1679
/*) top_srcdir="$ac_given_srcdir" ;;
1680
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
1683
# Find a way to echo strings without interpreting backslash.
1684
if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
1687
if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
1688
gt_echo='printf %s\n'
1699
# A sed script that extracts the value of VARIABLE from a Makefile.
1701
# Test if the hold space is empty.
1706
# Yes it was empty. Look if we have the expected variable definition.
1707
/^[ ]*VARIABLE[ ]*=/{
1708
# Seen the first line of the variable definition.
1709
s/^[ ]*VARIABLE[ ]*=//
1714
# Here we are processing a line from the variable definition.
1715
# Remove comment, more precisely replace it with a space.
1717
# See if the line ends in a backslash.
1721
# Print the line, without the trailing backslash.
1724
# There was no trailing backslash. The end of the variable definition is
1725
# reached. Clear the hold space.
1730
# A trailing backslash means that the variable definition continues in the
1731
# next line. Put a nonempty string into the hold space to indicate this.
1738
# Set POTFILES to the value of the Makefile variable POTFILES.
1739
sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
1740
POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
1741
# Compute POTFILES_DEPS as
1742
# $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
1744
for file in $POTFILES; do
1745
POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
1749
if test -n "$OBSOLETE_ALL_LINGUAS"; then
1750
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
1752
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
1753
# The LINGUAS file contains the set of available languages.
1754
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1755
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
1757
# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
1758
sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
1759
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
1761
# Hide the ALL_LINGUAS assigment from automake.
1762
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
1764
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
1765
# Compute UPDATEPOFILES
1766
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
1767
# Compute DUMMYPOFILES
1768
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
1770
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
1771
# Compute PROPERTIESFILES
1772
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
1773
# Compute CLASSFILES
1774
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
1776
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
1778
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
1779
# Compute RESOURCESDLLFILES
1780
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
1781
case "$ac_given_srcdir" in
1783
*) srcdirpre='$(srcdir)/' ;;
1794
for lang in $ALL_LINGUAS; do
1795
POFILES="$POFILES $srcdirpre$lang.po"
1796
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
1797
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
1798
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1799
PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
1800
CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
1801
QMFILES="$QMFILES $srcdirpre$lang.qm"
1802
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1803
MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
1804
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1805
RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
1807
# CATALOGS depends on both $ac_dir and the user's LINGUAS
1808
# environment variable.
1810
if test -n "$ALL_LINGUAS"; then
1811
for presentlang in $ALL_LINGUAS; do
1813
if test "%UNSET%" != "$LINGUAS"; then
1814
desiredlanguages="$LINGUAS"
1816
desiredlanguages="$ALL_LINGUAS"
1818
for desiredlang in $desiredlanguages; do
1819
# Use the presentlang catalog if desiredlang is
1820
# a. equal to presentlang, or
1821
# b. a variant of presentlang (because in this case,
1822
# presentlang can be used as a fallback for messages
1823
# which are not translated in the desiredlang catalog).
1824
case "$desiredlang" in
1825
"$presentlang"*) useit=yes;;
1828
if test $useit = yes; then
1829
INST_LINGUAS="$INST_LINGUAS $presentlang"
1838
if test -n "$INST_LINGUAS"; then
1839
for lang in $INST_LINGUAS; do
1840
CATALOGS="$CATALOGS $lang.gmo"
1841
JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
1842
QTCATALOGS="$QTCATALOGS $lang.qm"
1843
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1844
TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
1845
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1846
CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
1850
sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
1851
if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
1852
# Add dependencies that cannot be formulated as a simple suffix rule.
1853
for lang in $ALL_LINGUAS; do
1854
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1855
cat >> "$ac_file.tmp" <<EOF
1856
$frobbedlang.msg: $lang.po
1857
@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
1858
\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
1862
if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
1863
# Add dependencies that cannot be formulated as a simple suffix rule.
1864
for lang in $ALL_LINGUAS; do
1865
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1866
cat >> "$ac_file.tmp" <<EOF
1867
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
1868
@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
1869
\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
1873
if test -n "$POMAKEFILEDEPS"; then
1874
cat >> "$ac_file.tmp" <<EOF
1875
Makefile: $POMAKEFILEDEPS
1878
mv "$ac_file.tmp" "$ac_file"
1881
# nls.m4 serial 2 (gettext-0.14.3)
1882
dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc.
1883
dnl This file is free software; the Free Software Foundation
1884
dnl gives unlimited permission to copy and/or distribute it,
1885
dnl with or without modifications, as long as this notice is preserved.
1887
dnl This file can can be used in projects which are not available under
1888
dnl the GNU General Public License or the GNU Library General Public
1889
dnl License but which still want to provide support for the GNU gettext
1891
dnl Please note that the actual code of the GNU gettext library is covered
1892
dnl by the GNU Library General Public License, and the rest of the GNU
1893
dnl gettext package package is covered by the GNU General Public License.
1894
dnl They are *not* in the public domain.
1897
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1898
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1904
AC_MSG_CHECKING([whether NLS is requested])
1905
dnl Default is enabled NLS
1907
[ --disable-nls do not use Native Language Support],
1908
USE_NLS=$enableval, USE_NLS=yes)
1909
AC_MSG_RESULT($USE_NLS)
1913
AC_DEFUN([AM_MKINSTALLDIRS],
1915
dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing.
1916
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
1917
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
1918
dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
1919
dnl Try to locate it.
1921
if test -n "$ac_aux_dir"; then
1922
case "$ac_aux_dir" in
1923
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1924
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
404
# iconv.m4 serial AM6 (gettext-0.17)
405
dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
406
dnl This file is free software; the Free Software Foundation
407
dnl gives unlimited permission to copy and/or distribute it,
408
dnl with or without modifications, as long as this notice is preserved.
410
dnl From Bruno Haible.
412
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
414
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
415
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
416
AC_REQUIRE([AC_LIB_RPATH])
418
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
420
AC_LIB_LINKFLAGS_BODY([iconv])
423
AC_DEFUN([AM_ICONV_LINK],
425
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
426
dnl those with the standalone portable GNU libiconv installed).
427
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
429
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
431
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
433
dnl Add $INCICONV to CPPFLAGS before performing the following checks,
434
dnl because if the user has installed libiconv and not disabled its use
435
dnl via --without-libiconv-prefix, he wants to use it. The first
436
dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
437
am_save_CPPFLAGS="$CPPFLAGS"
438
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
440
AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [
441
am_cv_func_iconv="no, consider installing GNU libiconv"
443
AC_TRY_LINK([#include <stdlib.h>
445
[iconv_t cd = iconv_open("","");
446
iconv(cd,NULL,NULL,NULL,NULL);
448
am_cv_func_iconv=yes)
449
if test "$am_cv_func_iconv" != yes; then
451
LIBS="$LIBS $LIBICONV"
452
AC_TRY_LINK([#include <stdlib.h>
454
[iconv_t cd = iconv_open("","");
455
iconv(cd,NULL,NULL,NULL,NULL);
458
am_cv_func_iconv=yes)
462
if test "$am_cv_func_iconv" = yes; then
463
AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [
464
dnl This tests against bugs in AIX 5.1 and HP-UX 11.11.
466
if test $am_cv_lib_iconv = yes; then
467
LIBS="$LIBS $LIBICONV"
474
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
477
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
478
if (cd_utf8_to_88591 != (iconv_t)(-1))
480
static const char input[] = "\342\202\254"; /* EURO SIGN */
482
const char *inptr = input;
483
size_t inbytesleft = strlen (input);
485
size_t outbytesleft = sizeof (buf);
486
size_t res = iconv (cd_utf8_to_88591,
487
(char **) &inptr, &inbytesleft,
488
&outptr, &outbytesleft);
493
#if 0 /* This bug could be worked around by the caller. */
494
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
496
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
497
if (cd_88591_to_utf8 != (iconv_t)(-1))
499
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
501
const char *inptr = input;
502
size_t inbytesleft = strlen (input);
504
size_t outbytesleft = sizeof (buf);
505
size_t res = iconv (cd_88591_to_utf8,
506
(char **) &inptr, &inbytesleft,
507
&outptr, &outbytesleft);
513
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
515
if (/* Try standardized names. */
516
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
517
/* Try IRIX, OSF/1 names. */
518
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
520
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
521
/* Try HP-UX names. */
522
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
525
}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
527
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
528
*) am_cv_func_iconv_works="guessing yes" ;;
532
case "$am_cv_func_iconv_works" in
533
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
534
*) am_func_iconv=yes ;;
1927
if test -z "$MKINSTALLDIRS"; then
1928
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1930
AC_SUBST(MKINSTALLDIRS)
1933
# progtest.m4 serial 4 (gettext-0.14.2)
1934
dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
537
am_func_iconv=no am_cv_lib_iconv=no
539
if test "$am_func_iconv" = yes; then
540
AC_DEFINE(HAVE_ICONV, 1,
541
[Define if you have the iconv() function and it works.])
543
if test "$am_cv_lib_iconv" = yes; then
544
AC_MSG_CHECKING([how to link with libiconv])
545
AC_MSG_RESULT([$LIBICONV])
547
dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
549
CPPFLAGS="$am_save_CPPFLAGS"
560
if test "$am_cv_func_iconv" = yes; then
561
AC_MSG_CHECKING([for iconv declaration])
562
AC_CACHE_VAL(am_cv_proto_iconv, [
570
#if defined(__STDC__) || defined(__cplusplus)
571
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
575
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
576
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
577
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
578
AC_MSG_RESULT([$]{ac_t:-
579
}[$]am_cv_proto_iconv)
580
AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
581
[Define as const if the declaration of iconv() needs const.])
585
# lib-ld.m4 serial 3 (gettext-0.13)
586
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
1935
587
dnl This file is free software; the Free Software Foundation
1936
588
dnl gives unlimited permission to copy and/or distribute it,
1937
589
dnl with or without modifications, as long as this notice is preserved.
1939
dnl This file can can be used in projects which are not available under
1940
dnl the GNU General Public License or the GNU Library General Public
1941
dnl License but which still want to provide support for the GNU gettext
1943
dnl Please note that the actual code of the GNU gettext library is covered
1944
dnl by the GNU Library General Public License, and the rest of the GNU
1945
dnl gettext package package is covered by the GNU General Public License.
1946
dnl They are *not* in the public domain.
1949
dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
1953
# Search path for a program which passes the given test.
1955
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1956
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1957
AC_DEFUN([AM_PATH_PROG_WITH_TEST],
591
dnl Subroutines of libtool.m4,
592
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
595
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
596
AC_DEFUN([AC_LIB_PROG_LD_GNU],
597
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
598
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
599
case `$LD -v 2>&1 </dev/null` in
600
*GNU* | *'with BFD'*)
601
acl_cv_prog_gnu_ld=yes ;;
603
acl_cv_prog_gnu_ld=no ;;
605
with_gnu_ld=$acl_cv_prog_gnu_ld
608
dnl From libtool-1.4. Sets the variable LD.
609
AC_DEFUN([AC_LIB_PROG_LD],
611
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
612
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
613
AC_REQUIRE([AC_PROG_CC])dnl
614
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1959
615
# Prepare PATH_SEPARATOR.
1960
616
# The user is always right.
1961
617
if test "${PATH_SEPARATOR+set}" != set; then
2734
# lib-ld.m4 serial 3 (gettext-0.13)
2735
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
2736
dnl This file is free software; the Free Software Foundation
2737
dnl gives unlimited permission to copy and/or distribute it,
2738
dnl with or without modifications, as long as this notice is preserved.
2740
dnl Subroutines of libtool.m4,
2741
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
2742
dnl with libtool.m4.
2744
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
2745
AC_DEFUN([AC_LIB_PROG_LD_GNU],
2746
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
2747
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2748
case `$LD -v 2>&1 </dev/null` in
2749
*GNU* | *'with BFD'*)
2750
acl_cv_prog_gnu_ld=yes ;;
2752
acl_cv_prog_gnu_ld=no ;;
2754
with_gnu_ld=$acl_cv_prog_gnu_ld
2757
dnl From libtool-1.4. Sets the variable LD.
2758
AC_DEFUN([AC_LIB_PROG_LD],
2759
[AC_ARG_WITH(gnu-ld,
2760
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
2761
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
2762
AC_REQUIRE([AC_PROG_CC])dnl
2763
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2764
# Prepare PATH_SEPARATOR.
2765
# The user is always right.
2766
if test "${PATH_SEPARATOR+set}" != set; then
2767
echo "#! /bin/sh" >conf$$.sh
2768
echo "exit 0" >>conf$$.sh
2770
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2778
if test "$GCC" = yes; then
2779
# Check if gcc -print-prog-name=ld gives a path.
2780
AC_MSG_CHECKING([for ld used by GCC])
2783
# gcc leaves a trailing carriage return which upsets mingw
2784
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2786
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2789
# Accept absolute paths.
2790
[[\\/]* | [A-Za-z]:[\\/]*)]
2791
[re_direlt='/[^/][^/]*/\.\./']
2792
# Canonicalize the path of ld
2793
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2794
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2795
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2797
test -z "$LD" && LD="$ac_prog"
2800
# If it fails, then pretend we aren't using GCC.
2804
# If it is relative, then search for the first ld in PATH.
2808
elif test "$with_gnu_ld" = yes; then
2809
AC_MSG_CHECKING([for GNU ld])
2811
AC_MSG_CHECKING([for non-GNU ld])
2813
AC_CACHE_VAL(acl_cv_path_LD,
2814
[if test -z "$LD"; then
2815
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2816
for ac_dir in $PATH; do
2817
test -z "$ac_dir" && ac_dir=.
2818
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2819
acl_cv_path_LD="$ac_dir/$ac_prog"
2820
# Check to see if the program is GNU ld. I'd rather use --version,
2821
# but apparently some GNU ld's only accept -v.
2822
# Break only if it was the GNU/non-GNU ld that we prefer.
2823
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
2824
*GNU* | *'with BFD'*)
2825
test "$with_gnu_ld" != no && break ;;
2827
test "$with_gnu_ld" != yes && break ;;
2833
acl_cv_path_LD="$LD" # Let the user override the test with a path.
2835
LD="$acl_cv_path_LD"
2836
if test -n "$LD"; then
2841
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2845
# iconv.m4 serial AM4 (gettext-0.11.3)
2846
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
2847
dnl This file is free software; the Free Software Foundation
2848
dnl gives unlimited permission to copy and/or distribute it,
2849
dnl with or without modifications, as long as this notice is preserved.
2851
dnl From Bruno Haible.
2853
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
1330
dnl For those cases where a variable contains several -L and -l options
1331
dnl referring to unknown libraries and directories, this macro determines the
1332
dnl necessary additional linker options for the runtime path.
1333
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
1334
dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
1335
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
1336
dnl otherwise linking without libtool is assumed.
1337
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
2855
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
2856
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2857
1339
AC_REQUIRE([AC_LIB_RPATH])
2859
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2861
AC_LIB_LINKFLAGS_BODY([iconv])
2864
AC_DEFUN([AM_ICONV_LINK],
2866
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
2867
dnl those with the standalone portable GNU libiconv installed).
2869
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2871
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
2873
dnl Add $INCICONV to CPPFLAGS before performing the following checks,
2874
dnl because if the user has installed libiconv and not disabled its use
2875
dnl via --without-libiconv-prefix, he wants to use it. The first
2876
dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
2877
am_save_CPPFLAGS="$CPPFLAGS"
2878
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
2880
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
2881
am_cv_func_iconv="no, consider installing GNU libiconv"
2883
AC_TRY_LINK([#include <stdlib.h>
2884
#include <iconv.h>],
2885
[iconv_t cd = iconv_open("","");
2886
iconv(cd,NULL,NULL,NULL,NULL);
2888
am_cv_func_iconv=yes)
2889
if test "$am_cv_func_iconv" != yes; then
2890
am_save_LIBS="$LIBS"
2891
LIBS="$LIBS $LIBICONV"
2892
AC_TRY_LINK([#include <stdlib.h>
2893
#include <iconv.h>],
2894
[iconv_t cd = iconv_open("","");
2895
iconv(cd,NULL,NULL,NULL,NULL);
2898
am_cv_func_iconv=yes)
2899
LIBS="$am_save_LIBS"
1340
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
1342
if test "$enable_rpath" != no; then
1343
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
1344
dnl Use an explicit option to hardcode directories into the resulting
1349
if test -n "$next"; then
1351
dnl No need to hardcode the standard /usr/lib.
1352
if test "X$dir" != "X/usr/$acl_libdirstem"; then
1353
rpathdirs="$rpathdirs $dir"
1359
-L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
1360
dnl No need to hardcode the standard /usr/lib.
1361
if test "X$dir" != "X/usr/$acl_libdirstem"; then
1362
rpathdirs="$rpathdirs $dir"
1369
if test "X$rpathdirs" != "X"; then
1370
if test -n ""$3""; then
1371
dnl libtool is used for linking. Use -R options.
1372
for dir in $rpathdirs; do
1373
$1="${$1}${$1:+ }-R$dir"
1376
dnl The linker is used for linking directly.
1377
if test -n "$acl_hardcode_libdir_separator"; then
1378
dnl Weird platform: only the last -rpath option counts, the user
1379
dnl must pass all path elements in one option.
1381
for dir in $rpathdirs; do
1382
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
1384
acl_save_libdir="$libdir"
1386
eval flag=\"$acl_hardcode_libdir_flag_spec\"
1387
libdir="$acl_save_libdir"
1390
dnl The -rpath options are cumulative.
1391
for dir in $rpathdirs; do
1392
acl_save_libdir="$libdir"
1394
eval flag=\"$acl_hardcode_libdir_flag_spec\"
1395
libdir="$acl_save_libdir"
1396
$1="${$1}${$1:+ }$flag"
2902
if test "$am_cv_func_iconv" = yes; then
2903
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
2905
if test "$am_cv_lib_iconv" = yes; then
2906
AC_MSG_CHECKING([how to link with libiconv])
2907
AC_MSG_RESULT([$LIBICONV])
2909
dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
2911
CPPFLAGS="$am_save_CPPFLAGS"
2916
AC_SUBST(LTLIBICONV)
2919
AC_DEFUN([AM_ICONV],
2922
if test "$am_cv_func_iconv" = yes; then
2923
AC_MSG_CHECKING([for iconv declaration])
2924
AC_CACHE_VAL(am_cv_proto_iconv, [
2932
#if defined(__STDC__) || defined(__cplusplus)
2933
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2937
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
2938
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
2939
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2940
AC_MSG_RESULT([$]{ac_t:-
2941
}[$]am_cv_proto_iconv)
2942
AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
2943
[Define as const if the declaration of iconv() needs const.])
2947
# glibc2.m4 serial 1
2948
dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
2949
dnl This file is free software; the Free Software Foundation
2950
dnl gives unlimited permission to copy and/or distribute it,
2951
dnl with or without modifications, as long as this notice is preserved.
2953
# Test for the GNU C Library, version 2.0 or newer.
2954
# From Bruno Haible.
2956
AC_DEFUN([gt_GLIBC2],
2958
AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer,
2959
ac_cv_gnu_library_2,
2960
[AC_EGREP_CPP([Lucky GNU user],
2962
#include <features.h>
2963
#ifdef __GNU_LIBRARY__
2964
#if (__GLIBC__ >= 2)
2969
ac_cv_gnu_library_2=yes,
2970
ac_cv_gnu_library_2=no)
2974
GLIBC2="$ac_cv_gnu_library_2"
2978
# isc-posix.m4 serial 2 (gettext-0.11.2)
2979
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
2980
dnl This file is free software; the Free Software Foundation
2981
dnl gives unlimited permission to copy and/or distribute it,
2982
dnl with or without modifications, as long as this notice is preserved.
2984
# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
2986
# This test replaces the one in autoconf.
2987
# Currently this macro should have the same name as the autoconf macro
2988
# because gettext's gettext.m4 (distributed in the automake package)
2989
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
2990
# give these diagnostics:
2991
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
2992
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
2994
undefine([AC_ISC_POSIX])
2996
AC_DEFUN([AC_ISC_POSIX],
2998
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
2999
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
3003
# signed.m4 serial 1 (gettext-0.10.40)
3004
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
3005
dnl This file is free software; the Free Software Foundation
3006
dnl gives unlimited permission to copy and/or distribute it,
3007
dnl with or without modifications, as long as this notice is preserved.
3009
dnl From Bruno Haible.
3011
AC_DEFUN([bh_C_SIGNED],
3013
AC_CACHE_CHECK([for signed], bh_cv_c_signed,
3014
[AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)])
3015
if test $bh_cv_c_signed = no; then
3017
[Define to empty if the C compiler doesn't support this keyword.])
3021
# longlong.m4 serial 5
3022
dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
3023
dnl This file is free software; the Free Software Foundation
3024
dnl gives unlimited permission to copy and/or distribute it,
3025
dnl with or without modifications, as long as this notice is preserved.
3027
dnl From Paul Eggert.
3029
# Define HAVE_LONG_LONG if 'long long' works.
3031
AC_DEFUN([gl_AC_TYPE_LONG_LONG],
3033
AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
3034
[AC_TRY_LINK([long long ll = 1LL; int i = 63;],
3035
[long long llmax = (long long) -1;
3036
return ll << i | ll >> i | llmax / ll | llmax % ll;],
3037
ac_cv_type_long_long=yes,
3038
ac_cv_type_long_long=no)])
3039
if test $ac_cv_type_long_long = yes; then
3040
AC_DEFINE(HAVE_LONG_LONG, 1,
3041
[Define if you have the 'long long' type.])
3045
# longdouble.m4 serial 1 (gettext-0.12)
3046
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3047
dnl This file is free software; the Free Software Foundation
3048
dnl gives unlimited permission to copy and/or distribute it,
3049
dnl with or without modifications, as long as this notice is preserved.
3051
dnl From Bruno Haible.
3052
dnl Test whether the compiler supports the 'long double' type.
3053
dnl Prerequisite: AC_PROG_CC
3055
AC_DEFUN([gt_TYPE_LONGDOUBLE],
3057
AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
3058
[if test "$GCC" = yes; then
3059
gt_cv_c_long_double=yes
3062
/* The Stardent Vistra knows sizeof(long double), but does not support it. */
3063
long double foo = 0.0;
3064
/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3065
int array [2*(sizeof(long double) >= sizeof(double)) - 1];
3067
gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
3069
if test $gt_cv_c_long_double = yes; then
3070
AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
3074
# wchar_t.m4 serial 1 (gettext-0.12)
3075
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3076
dnl This file is free software; the Free Software Foundation
3077
dnl gives unlimited permission to copy and/or distribute it,
3078
dnl with or without modifications, as long as this notice is preserved.
3080
dnl From Bruno Haible.
3081
dnl Test whether <stddef.h> has the 'wchar_t' type.
3082
dnl Prerequisite: AC_PROG_CC
3084
AC_DEFUN([gt_TYPE_WCHAR_T],
3086
AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
3087
[AC_TRY_COMPILE([#include <stddef.h>
3088
wchar_t foo = (wchar_t)'\0';], ,
3089
gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
3090
if test $gt_cv_c_wchar_t = yes; then
3091
AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
3095
# wint_t.m4 serial 1 (gettext-0.12)
3096
dnl Copyright (C) 2003 Free Software Foundation, Inc.
3097
dnl This file is free software; the Free Software Foundation
3098
dnl gives unlimited permission to copy and/or distribute it,
3099
dnl with or without modifications, as long as this notice is preserved.
3101
dnl From Bruno Haible.
3102
dnl Test whether <wchar.h> has the 'wint_t' type.
3103
dnl Prerequisite: AC_PROG_CC
3105
AC_DEFUN([gt_TYPE_WINT_T],
3107
AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
3108
[AC_TRY_COMPILE([#include <wchar.h>
3109
wint_t foo = (wchar_t)'\0';], ,
3110
gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
3111
if test $gt_cv_c_wint_t = yes; then
3112
AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])
3116
# inttypes_h.m4 serial 6
3117
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3118
dnl This file is free software; the Free Software Foundation
3119
dnl gives unlimited permission to copy and/or distribute it,
3120
dnl with or without modifications, as long as this notice is preserved.
3122
dnl From Paul Eggert.
3124
# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
3125
# doesn't clash with <sys/types.h>, and declares uintmax_t.
3127
AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
3129
AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,
3131
[#include <sys/types.h>
3132
#include <inttypes.h>],
3133
[uintmax_t i = (uintmax_t) -1;],
3134
gl_cv_header_inttypes_h=yes,
3135
gl_cv_header_inttypes_h=no)])
3136
if test $gl_cv_header_inttypes_h = yes; then
3137
AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
3138
[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
3139
and declares uintmax_t. ])
3143
# stdint_h.m4 serial 5
3144
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3145
dnl This file is free software; the Free Software Foundation
3146
dnl gives unlimited permission to copy and/or distribute it,
3147
dnl with or without modifications, as long as this notice is preserved.
3149
dnl From Paul Eggert.
3151
# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
3152
# doesn't clash with <sys/types.h>, and declares uintmax_t.
3154
AC_DEFUN([gl_AC_HEADER_STDINT_H],
3156
AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h,
3158
[#include <sys/types.h>
3159
#include <stdint.h>],
3160
[uintmax_t i = (uintmax_t) -1;],
3161
gl_cv_header_stdint_h=yes,
3162
gl_cv_header_stdint_h=no)])
3163
if test $gl_cv_header_stdint_h = yes; then
3164
AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
3165
[Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
3166
and declares uintmax_t. ])
3170
# intmax.m4 serial 2 (gettext-0.14.2)
3171
dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
3172
dnl This file is free software; the Free Software Foundation
3173
dnl gives unlimited permission to copy and/or distribute it,
3174
dnl with or without modifications, as long as this notice is preserved.
3176
dnl From Bruno Haible.
3177
dnl Test whether the system has the 'intmax_t' type, but don't attempt to
3178
dnl find a replacement if it is lacking.
3180
AC_DEFUN([gt_TYPE_INTMAX_T],
3182
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
3183
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
3184
AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
3188
#if HAVE_STDINT_H_WITH_UINTMAX
3191
#if HAVE_INTTYPES_H_WITH_UINTMAX
3192
#include <inttypes.h>
3194
], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
3195
if test $gt_cv_c_intmax_t = yes; then
3196
AC_DEFINE(HAVE_INTMAX_T, 1,
3197
[Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
3201
# printf-posix.m4 serial 2 (gettext-0.13.1)
3202
dnl Copyright (C) 2003 Free Software Foundation, Inc.
3203
dnl This file is free software; the Free Software Foundation
3204
dnl gives unlimited permission to copy and/or distribute it,
3205
dnl with or without modifications, as long as this notice is preserved.
3207
dnl From Bruno Haible.
3208
dnl Test whether the printf() function supports POSIX/XSI format strings with
3211
AC_DEFUN([gt_PRINTF_POSIX],
1406
# lib-prefix.m4 serial 5 (gettext-0.15)
1407
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
1408
dnl This file is free software; the Free Software Foundation
1409
dnl gives unlimited permission to copy and/or distribute it,
1410
dnl with or without modifications, as long as this notice is preserved.
1412
dnl From Bruno Haible.
1414
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
1415
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
1416
dnl require excessive bracketing.
1417
ifdef([AC_HELP_STRING],
1418
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
1419
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
1421
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
1422
dnl to access previously installed libraries. The basic assumption is that
1423
dnl a user will want packages to use other packages he previously installed
1424
dnl with the same --prefix option.
1425
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
1426
dnl libraries, but is otherwise very convenient.
1427
AC_DEFUN([AC_LIB_PREFIX],
1429
AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
3213
1430
AC_REQUIRE([AC_PROG_CC])
3214
AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
3215
gt_cv_func_printf_posix,
3220
/* The string "%2$d %1$d", with dollar characters protected from the shell's
3221
dollar expansion (possibly an autoconf bug). */
3222
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
3223
static char buf[100];
3226
sprintf (buf, format, 33, 55);
3227
return (strcmp (buf, "55 33") != 0);
3228
}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
3230
AC_EGREP_CPP(notposix, [
3231
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
3234
], gt_cv_func_printf_posix="guessing no",
3235
gt_cv_func_printf_posix="guessing yes")
3238
case $gt_cv_func_printf_posix in
3240
AC_DEFINE(HAVE_POSIX_PRINTF, 1,
3241
[Define if your printf() function supports format strings with positions.])
3246
# glibc21.m4 serial 3
3247
dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
3248
dnl This file is free software; the Free Software Foundation
3249
dnl gives unlimited permission to copy and/or distribute it,
3250
dnl with or without modifications, as long as this notice is preserved.
3252
# Test for the GNU C Library, version 2.1 or newer.
3253
# From Bruno Haible.
3255
AC_DEFUN([gl_GLIBC21],
3257
AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
3258
ac_cv_gnu_library_2_1,
3259
[AC_EGREP_CPP([Lucky GNU user],
3261
#include <features.h>
3262
#ifdef __GNU_LIBRARY__
3263
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3268
ac_cv_gnu_library_2_1=yes,
3269
ac_cv_gnu_library_2_1=no)
3273
GLIBC21="$ac_cv_gnu_library_2_1"
3277
# intdiv0.m4 serial 1 (gettext-0.11.3)
3278
dnl Copyright (C) 2002 Free Software Foundation, Inc.
3279
dnl This file is free software; the Free Software Foundation
3280
dnl gives unlimited permission to copy and/or distribute it,
3281
dnl with or without modifications, as long as this notice is preserved.
3283
dnl From Bruno Haible.
3285
AC_DEFUN([gt_INTDIV0],
1431
AC_REQUIRE([AC_CANONICAL_HOST])
1432
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
1433
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1434
dnl By default, look in $includedir and $libdir.
1436
AC_LIB_WITH_FINAL_PREFIX([
1437
eval additional_includedir=\"$includedir\"
1438
eval additional_libdir=\"$libdir\"
1440
AC_LIB_ARG_WITH([lib-prefix],
1441
[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1442
--without-lib-prefix don't search for libraries in includedir and libdir],
3287
AC_REQUIRE([AC_PROG_CC])dnl
3288
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3290
AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
3291
gt_cv_int_divbyzero_sigfpe,
3299
sigfpe_handler (int sig)
3301
sigfpe_handler (sig) int sig;
3304
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
3305
exit (sig != SIGFPE);
3315
signal (SIGFPE, sigfpe_handler);
3316
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
3317
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
3318
signal (SIGTRAP, sigfpe_handler);
3320
/* Linux/SPARC yields signal SIGILL. */
3321
#if defined (__sparc__) && defined (__linux__)
3322
signal (SIGILL, sigfpe_handler);
3329
], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
3331
# Guess based on the CPU.
3333
alpha* | i[34567]86 | m68k | s390*)
3334
gt_cv_int_divbyzero_sigfpe="guessing yes";;
3336
gt_cv_int_divbyzero_sigfpe="guessing no";;
1444
if test "X$withval" = "Xno"; then
1447
if test "X$withval" = "X"; then
1448
AC_LIB_WITH_FINAL_PREFIX([
1449
eval additional_includedir=\"$includedir\"
1450
eval additional_libdir=\"$libdir\"
3340
case "$gt_cv_int_divbyzero_sigfpe" in
3344
AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
3345
[Define if integer division by zero raises signal SIGFPE.])
3348
# uintmax_t.m4 serial 9
3349
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3350
dnl This file is free software; the Free Software Foundation
3351
dnl gives unlimited permission to copy and/or distribute it,
3352
dnl with or without modifications, as long as this notice is preserved.
3354
dnl From Paul Eggert.
3358
# Define uintmax_t to 'unsigned long' or 'unsigned long long'
3359
# if it is not already defined in <stdint.h> or <inttypes.h>.
3361
AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
3363
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
3364
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
3365
if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
3366
AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
3367
test $ac_cv_type_unsigned_long_long = yes \
3368
&& ac_type='unsigned long long' \
3369
|| ac_type='unsigned long'
3370
AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
3371
[Define to unsigned long or unsigned long long
3372
if <stdint.h> and <inttypes.h> don't define.])
3374
AC_DEFINE(HAVE_UINTMAX_T, 1,
3375
[Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
3379
# ulonglong.m4 serial 4
3380
dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
3381
dnl This file is free software; the Free Software Foundation
3382
dnl gives unlimited permission to copy and/or distribute it,
3383
dnl with or without modifications, as long as this notice is preserved.
3385
dnl From Paul Eggert.
3387
# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
3389
AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
3391
AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
3392
[AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],
3393
[unsigned long long ullmax = (unsigned long long) -1;
3394
return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
3395
ac_cv_type_unsigned_long_long=yes,
3396
ac_cv_type_unsigned_long_long=no)])
3397
if test $ac_cv_type_unsigned_long_long = yes; then
3398
AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
3399
[Define if you have the 'unsigned long long' type.])
3403
# inttypes.m4 serial 1 (gettext-0.11.4)
3404
dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
3405
dnl This file is free software; the Free Software Foundation
3406
dnl gives unlimited permission to copy and/or distribute it,
3407
dnl with or without modifications, as long as this notice is preserved.
3409
dnl From Paul Eggert.
3411
# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
3414
AC_DEFUN([gt_HEADER_INTTYPES_H],
3416
AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
3419
[#include <sys/types.h>
3420
#include <inttypes.h>],
3421
[], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
3423
if test $gt_cv_header_inttypes_h = yes; then
3424
AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
3425
[Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
3429
# inttypes-pri.m4 serial 1 (gettext-0.11.4)
3430
dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
3431
dnl This file is free software; the Free Software Foundation
3432
dnl gives unlimited permission to copy and/or distribute it,
3433
dnl with or without modifications, as long as this notice is preserved.
3435
dnl From Bruno Haible.
3437
# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
3438
# macros to non-string values. This is the case on AIX 4.3.3.
3440
AC_DEFUN([gt_INTTYPES_PRI],
3442
AC_REQUIRE([gt_HEADER_INTTYPES_H])
3443
if test $gt_cv_header_inttypes_h = yes; then
3444
AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
3445
gt_cv_inttypes_pri_broken,
3447
AC_TRY_COMPILE([#include <inttypes.h>
3451
], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
3454
if test "$gt_cv_inttypes_pri_broken" = yes; then
3455
AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
3456
[Define if <inttypes.h> exists and defines unusable PRI* macros.])
3461
dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
3462
dnl This file is free software; the Free Software Foundation
3463
dnl gives unlimited permission to copy and/or distribute it,
3464
dnl with or without modifications, as long as this notice is preserved.
3466
AC_DEFUN([gl_XSIZE],
3468
dnl Prerequisites of lib/xsize.h.
3469
AC_REQUIRE([gl_SIZE_MAX])
3470
AC_REQUIRE([AC_C_INLINE])
3471
AC_CHECK_HEADERS(stdint.h)
3474
# size_max.m4 serial 2
3475
dnl Copyright (C) 2003 Free Software Foundation, Inc.
3476
dnl This file is free software; the Free Software Foundation
3477
dnl gives unlimited permission to copy and/or distribute it,
3478
dnl with or without modifications, as long as this notice is preserved.
3480
dnl From Bruno Haible.
3482
AC_DEFUN([gl_SIZE_MAX],
3484
AC_CHECK_HEADERS(stdint.h)
3485
dnl First test whether the system already has SIZE_MAX.
3486
AC_MSG_CHECKING([for SIZE_MAX])
3488
AC_EGREP_CPP([Found it], [
3497
if test -z "$result"; then
3498
dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
3499
dnl than the type 'unsigned long'.
3500
dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr',
3501
dnl which is guaranteed to work from LONG_MIN to LONG_MAX.
3502
_AC_COMPUTE_INT([~(size_t)0 / 10], res_hi,
3503
[#include <stddef.h>], result=?)
3504
_AC_COMPUTE_INT([~(size_t)0 % 10], res_lo,
3505
[#include <stddef.h>], result=?)
3506
_AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,
3507
[#include <stddef.h>], result=?)
3508
if test "$fits_in_uint" = 1; then
3509
dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
3510
dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
3511
AC_TRY_COMPILE([#include <stddef.h>
3513
extern unsigned long foo;
3514
], [], fits_in_uint=0)
3516
if test -z "$result"; then
3517
if test "$fits_in_uint" = 1; then
3518
result="$res_hi$res_lo"U
3520
result="$res_hi$res_lo"UL
3523
dnl Shouldn't happen, but who knows...
3527
AC_MSG_RESULT([$result])
3528
if test "$result" != yes; then
3529
AC_DEFINE_UNQUOTED([SIZE_MAX], [$result],
3530
[Define as the maximum value of type 'size_t', if the system doesn't define it.])
3534
# codeset.m4 serial AM1 (gettext-0.10.40)
3535
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
3536
dnl This file is free software; the Free Software Foundation
3537
dnl gives unlimited permission to copy and/or distribute it,
3538
dnl with or without modifications, as long as this notice is preserved.
3540
dnl From Bruno Haible.
3542
AC_DEFUN([AM_LANGINFO_CODESET],
3544
AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
3545
[AC_TRY_LINK([#include <langinfo.h>],
3546
[char* cs = nl_langinfo(CODESET);],
3547
am_cv_langinfo_codeset=yes,
3548
am_cv_langinfo_codeset=no)
3550
if test $am_cv_langinfo_codeset = yes; then
3551
AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
3552
[Define if you have <langinfo.h> and nl_langinfo(CODESET).])
3556
# lcmessage.m4 serial 4 (gettext-0.14.2)
3557
dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.
3558
dnl This file is free software; the Free Software Foundation
3559
dnl gives unlimited permission to copy and/or distribute it,
3560
dnl with or without modifications, as long as this notice is preserved.
3562
dnl This file can can be used in projects which are not available under
3563
dnl the GNU General Public License or the GNU Library General Public
3564
dnl License but which still want to provide support for the GNU gettext
3566
dnl Please note that the actual code of the GNU gettext library is covered
3567
dnl by the GNU Library General Public License, and the rest of the GNU
3568
dnl gettext package package is covered by the GNU General Public License.
3569
dnl They are *not* in the public domain.
3572
dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
3574
# Check whether LC_MESSAGES is available in <locale.h>.
3576
AC_DEFUN([gt_LC_MESSAGES],
3578
AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES,
3579
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
3580
gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)])
3581
if test $gt_cv_val_LC_MESSAGES = yes; then
3582
AC_DEFINE(HAVE_LC_MESSAGES, 1,
3583
[Define if your <locale.h> file defines LC_MESSAGES.])
1453
additional_includedir="$withval/include"
1454
additional_libdir="$withval/$acl_libdirstem"
1458
if test $use_additional = yes; then
1459
dnl Potentially add $additional_includedir to $CPPFLAGS.
1460
dnl But don't add it
1461
dnl 1. if it's the standard /usr/include,
1462
dnl 2. if it's already present in $CPPFLAGS,
1463
dnl 3. if it's /usr/local/include and we are using GCC on Linux,
1464
dnl 4. if it doesn't exist as a directory.
1465
if test "X$additional_includedir" != "X/usr/include"; then
1467
for x in $CPPFLAGS; do
1468
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1469
if test "X$x" = "X-I$additional_includedir"; then
1474
if test -z "$haveit"; then
1475
if test "X$additional_includedir" = "X/usr/local/include"; then
1476
if test -n "$GCC"; then
1478
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1482
if test -z "$haveit"; then
1483
if test -d "$additional_includedir"; then
1484
dnl Really add $additional_includedir to $CPPFLAGS.
1485
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
1490
dnl Potentially add $additional_libdir to $LDFLAGS.
1491
dnl But don't add it
1492
dnl 1. if it's the standard /usr/lib,
1493
dnl 2. if it's already present in $LDFLAGS,
1494
dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
1495
dnl 4. if it doesn't exist as a directory.
1496
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
1498
for x in $LDFLAGS; do
1499
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1500
if test "X$x" = "X-L$additional_libdir"; then
1505
if test -z "$haveit"; then
1506
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
1507
if test -n "$GCC"; then
1509
linux*) haveit=yes;;
1513
if test -z "$haveit"; then
1514
if test -d "$additional_libdir"; then
1515
dnl Really add $additional_libdir to $LDFLAGS.
1516
LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
1524
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
1525
dnl acl_final_exec_prefix, containing the values to which $prefix and
1526
dnl $exec_prefix will expand at the end of the configure script.
1527
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
1529
dnl Unfortunately, prefix and exec_prefix get only finally determined
1530
dnl at the end of configure.
1531
if test "X$prefix" = "XNONE"; then
1532
acl_final_prefix="$ac_default_prefix"
1534
acl_final_prefix="$prefix"
1536
if test "X$exec_prefix" = "XNONE"; then
1537
acl_final_exec_prefix='${prefix}'
1539
acl_final_exec_prefix="$exec_prefix"
1541
acl_save_prefix="$prefix"
1542
prefix="$acl_final_prefix"
1543
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1544
prefix="$acl_save_prefix"
1547
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
1548
dnl variables prefix and exec_prefix bound to the values they will have
1549
dnl at the end of the configure script.
1550
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
1552
acl_save_prefix="$prefix"
1553
prefix="$acl_final_prefix"
1554
acl_save_exec_prefix="$exec_prefix"
1555
exec_prefix="$acl_final_exec_prefix"
1557
exec_prefix="$acl_save_exec_prefix"
1558
prefix="$acl_save_prefix"
1561
dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
1562
dnl the basename of the libdir, either "lib" or "lib64".
1563
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
1565
dnl There is no formal standard regarding lib and lib64. The current
1566
dnl practice is that on a system supporting 32-bit and 64-bit instruction
1567
dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
1568
dnl libraries go under $prefix/lib. We determine the compiler's default
1569
dnl mode by looking at the compiler's library search path. If at least
1570
dnl of its elements ends in /lib64 or points to a directory whose absolute
1571
dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
1572
dnl default, namely "lib".
1574
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
1575
if test -n "$searchpath"; then
1576
acl_save_IFS="${IFS= }"; IFS=":"
1577
for searchdir in $searchpath; do
1578
if test -d "$searchdir"; then
1579
case "$searchdir" in
1580
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
1581
*) searchdir=`cd "$searchdir" && pwd`
1582
case "$searchdir" in
1583
*/lib64 ) acl_libdirstem=lib64 ;;
3587
1592
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3589
# serial 47 AC_PROG_LIBTOOL
3592
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
3593
# -----------------------------------------------------------
3594
# If this macro is not defined by Autoconf, define it here.
3595
m4_ifdef([AC_PROVIDE_IFELSE],
3597
[m4_define([AC_PROVIDE_IFELSE],
3598
[m4_ifdef([AC_PROVIDE_$1],
3604
AC_DEFUN([AC_PROG_LIBTOOL],
3605
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
3606
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
3607
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
3608
AC_PROVIDE_IFELSE([AC_PROG_CXX],
3610
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
3612
dnl And a similar setup for Fortran 77 support
3613
AC_PROVIDE_IFELSE([AC_PROG_F77],
3615
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
3618
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
3619
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
3620
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
3621
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
3623
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
3625
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
3627
[ifdef([AC_PROG_GCJ],
3628
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
3629
ifdef([A][M_PROG_GCJ],
3630
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
3631
ifdef([LT_AC_PROG_GCJ],
3632
[define([LT_AC_PROG_GCJ],
3633
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
3634
])])# AC_PROG_LIBTOOL
3639
AC_DEFUN([_AC_PROG_LIBTOOL],
3640
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
3641
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
3642
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
3643
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1594
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1595
# 2006, 2007, 2008 Free Software Foundation, Inc.
1596
# Written by Gordon Matzigkeit, 1996
1598
# This file is free software; the Free Software Foundation gives
1599
# unlimited permission to copy and/or distribute it, with or without
1600
# modifications, as long as this notice is preserved.
1602
m4_define([_LT_COPYING], [dnl
1603
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1604
# 2006, 2007, 2008 Free Software Foundation, Inc.
1605
# Written by Gordon Matzigkeit, 1996
1607
# This file is part of GNU Libtool.
1609
# GNU Libtool is free software; you can redistribute it and/or
1610
# modify it under the terms of the GNU General Public License as
1611
# published by the Free Software Foundation; either version 2 of
1612
# the License, or (at your option) any later version.
1614
# As a special exception to the GNU General Public License,
1615
# if you distribute this file as part of a program or library that
1616
# is built using GNU Libtool, you may include this file under the
1617
# same distribution terms that you use for the rest of that program.
1619
# GNU Libtool is distributed in the hope that it will be useful,
1620
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1621
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1622
# GNU General Public License for more details.
1624
# You should have received a copy of the GNU General Public License
1625
# along with GNU Libtool; see the file COPYING. If not, a copy
1626
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1627
# obtained by writing to the Free Software Foundation, Inc.,
1628
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1634
# LT_PREREQ(VERSION)
1635
# ------------------
1636
# Complain and exit if this libtool version is less that VERSION.
1637
m4_defun([LT_PREREQ],
1638
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1640
[m4_fatal([Libtool version $1 or higher is required],
1645
# _LT_CHECK_BUILDDIR
1646
# ------------------
1647
# Complain if the absolute build directory name contains unusual characters
1648
m4_defun([_LT_CHECK_BUILDDIR],
1651
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1656
# LT_INIT([OPTIONS])
1657
# ------------------
1659
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1660
AC_BEFORE([$0], [LT_LANG])dnl
1661
AC_BEFORE([$0], [LT_OUTPUT])dnl
1662
AC_BEFORE([$0], [LTDL_INIT])dnl
1663
m4_require([_LT_CHECK_BUILDDIR])dnl
1665
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1666
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1667
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1668
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1669
dnl unless we require an AC_DEFUNed macro:
1670
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1671
AC_REQUIRE([LTSUGAR_VERSION])dnl
1672
AC_REQUIRE([LTVERSION_VERSION])dnl
1673
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1674
m4_require([_LT_PROG_LTMAIN])dnl
1677
_LT_SET_OPTIONS([$0], [$1])
3645
1679
# This can be used to rebuild libtool when needed
3646
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1680
LIBTOOL_DEPS="$ltmain"
3648
1682
# Always use our own libtool.
3649
1683
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3650
1684
AC_SUBST(LIBTOOL)dnl
3652
# Prevent multiple expansion
3653
define([AC_PROG_LIBTOOL], [])
3654
])# _AC_PROG_LIBTOOL
3659
AC_DEFUN([AC_LIBTOOL_SETUP],
3661
AC_REQUIRE([AC_ENABLE_SHARED])dnl
3662
AC_REQUIRE([AC_ENABLE_STATIC])dnl
3663
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
3664
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1689
m4_define([LT_INIT])
1693
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1694
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1695
dnl aclocal-1.4 backwards compatibility:
1696
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1697
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1700
# _LT_CC_BASENAME(CC)
1701
# -------------------
1702
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1703
m4_defun([_LT_CC_BASENAME],
1704
[for cc_temp in $1""; do
1706
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1707
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1712
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1716
# _LT_FILEUTILS_DEFAULTS
1717
# ----------------------
1718
# It is okay to use these file commands and assume they have been set
1719
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1720
m4_defun([_LT_FILEUTILS_DEFAULTS],
1724
])# _LT_FILEUTILS_DEFAULTS
1729
m4_defun([_LT_SETUP],
1730
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3665
1731
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1732
_LT_DECL([], [host_alias], [0], [The host system])dnl
1733
_LT_DECL([], [host], [0])dnl
1734
_LT_DECL([], [host_os], [0])dnl
1736
_LT_DECL([], [build_alias], [0], [The build system])dnl
1737
_LT_DECL([], [build], [0])dnl
1738
_LT_DECL([], [build_os], [0])dnl
3666
1740
AC_REQUIRE([AC_PROG_CC])dnl
3667
AC_REQUIRE([AC_PROG_LD])dnl
3668
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
3669
AC_REQUIRE([AC_PROG_NM])dnl
1741
AC_REQUIRE([LT_PATH_LD])dnl
1742
AC_REQUIRE([LT_PATH_NM])dnl
3671
1744
AC_REQUIRE([AC_PROG_LN_S])dnl
3672
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
3673
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3674
AC_REQUIRE([AC_OBJEXT])dnl
3675
AC_REQUIRE([AC_EXEEXT])dnl
3678
AC_LIBTOOL_SYS_MAX_CMD_LEN
3679
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3682
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3683
_LT_AC_PROG_ECHO_BACKSLASH
1745
test -z "$LN_S" && LN_S="ln -s"
1746
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1748
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1749
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1750
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1752
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1753
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1754
m4_require([_LT_CMD_RELOAD])dnl
1755
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1756
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1757
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1759
_LT_CONFIG_LIBTOOL_INIT([
1760
# See if we are running on zsh, and set the options which allow our
1761
# commands through without removal of \ escapes INIT.
1762
if test -n "\${ZSH_VERSION+set}" ; then
1763
setopt NO_GLOB_SUBST
1766
if test -n "${ZSH_VERSION+set}" ; then
1767
setopt NO_GLOB_SUBST
1772
m4_require([_LT_TAG_COMPILER])dnl
1773
_LT_PROG_ECHO_BACKSLASH
3685
1775
case $host_os in
3697
1787
# Sed substitution that helps us do robust quoting. It backslashifies
3698
1788
# metacharacters that are still active within double-quoted strings.
3699
Xsed='sed -e 1s/^X//'
3700
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1789
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
3702
1791
# Same as above, but do not quote variable references.
3703
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1792
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
3705
1794
# Sed substitution to delay expansion of an escaped shell variable in a
3706
1795
# double_quote_subst'ed string.
3707
1796
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1798
# Sed substitution to delay expansion of an escaped single quote.
1799
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3709
1801
# Sed substitution to avoid accidental globbing in evaled expressions
3710
1802
no_glob_subst='s/\*/\\\*/g'
3715
1804
# Global variables:
3716
default_ofile=libtool
3717
1806
can_build_shared=yes
3719
# All known linkers require a `.a' archive for static linking (except M$VC,
1808
# All known linkers require a `.a' archive for static linking (except MSVC,
3720
1809
# which needs '.lib').
3722
ltmain="$ac_aux_dir/ltmain.sh"
3723
ofile="$default_ofile"
3724
1812
with_gnu_ld="$lt_cv_prog_gnu_ld"
3726
AC_CHECK_TOOL(AR, ar, false)
3727
AC_CHECK_TOOL(RANLIB, ranlib, :)
3728
AC_CHECK_TOOL(STRIP, strip, :)
3731
1815
old_CFLAGS="$CFLAGS"
3733
1817
# Set sane defaults for various variables
3734
test -z "$AR" && AR=ar
3735
test -z "$AR_FLAGS" && AR_FLAGS=cru
3736
test -z "$AS" && AS=as
3737
1818
test -z "$CC" && CC=cc
3738
1819
test -z "$LTCC" && LTCC=$CC
3739
test -z "$DLLTOOL" && DLLTOOL=dlltool
1820
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
3740
1821
test -z "$LD" && LD=ld
3741
test -z "$LN_S" && LN_S="ln -s"
3742
test -z "$MAGIC_CMD" && MAGIC_CMD=file
3743
test -z "$NM" && NM=nm
3744
test -z "$SED" && SED=sed
3745
test -z "$OBJDUMP" && OBJDUMP=objdump
3746
test -z "$RANLIB" && RANLIB=:
3747
test -z "$STRIP" && STRIP=:
3748
1822
test -z "$ac_objext" && ac_objext=o
3750
# Determine commands to create old-style static archives.
3751
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3752
old_postinstall_cmds='chmod 644 $oldlib'
3753
old_postuninstall_cmds=
3755
if test -n "$RANLIB"; then
3758
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3761
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3764
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3767
1824
_LT_CC_BASENAME([$compiler])
3769
1826
# Only perform the check for file, if the check method requires it
1827
test -z "$MAGIC_CMD" && MAGIC_CMD=file
3770
1828
case $deplibs_check_method in
3772
1830
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3778
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
3779
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3780
enable_win32_dll=yes, enable_win32_dll=no)
3782
AC_ARG_ENABLE([libtool-lock],
3783
[AC_HELP_STRING([--disable-libtool-lock],
3784
[avoid locking (might break parallel builds)])])
3785
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3788
[AC_HELP_STRING([--with-pic],
3789
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
3790
[pic_mode="$withval"],
3792
test -z "$pic_mode" && pic_mode=default
3794
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
3796
# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
3797
# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
3798
# calls AC_LIBTOOL_CONFIG and creates libtool.
3802
1836
# Use C for the default configuration in the libtool script
3804
AC_LIBTOOL_LANG_C_CONFIG
3806
])# AC_LIBTOOL_SETUP
3811
AC_DEFUN([_LT_VERSION_CHECK],
3812
[AC_MSG_CHECKING([for correct ltmain.sh version])
3813
if test -z "$ltmain"; then
3816
echo "*** [Gentoo] sanity check failed! ***"
3817
echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
3821
gentoo_lt_version="1.5.18"
3822
gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'`
3823
if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
3826
echo "*** [Gentoo] sanity check failed! ***"
3827
echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
3828
echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
3832
echo " libtoolize --copy --force"
3834
echo "if appropriate, please contact the maintainer of this"
3835
echo "package (or your distribution) for help."
3841
])# _LT_VERSION_CHECK
3844
# _LT_AC_SYS_COMPILER
1837
LT_SUPPORTED_TAG([CC])
1839
_LT_LANG_DEFAULT_CONFIG
1846
# Note that this code is called both from `configure', and `config.status'
1847
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1848
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1849
# so we pass a copy along to make sure it has a sensible value anyway.
1850
m4_defun([_LT_PROG_LTMAIN],
1851
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1852
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1853
ltmain="$ac_aux_dir/ltmain.sh"
1858
# So that we can recreate a full libtool script including additional
1859
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1860
# in macros and then make a single call at the end using the `libtool'
1864
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1865
# ----------------------------------------
1866
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1867
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1869
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1874
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1877
# _LT_CONFIG_LIBTOOL([COMMANDS])
1878
# ------------------------------
1879
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1880
m4_define([_LT_CONFIG_LIBTOOL],
1882
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1887
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1890
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1891
# -----------------------------------------------------
1892
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1893
[_LT_CONFIG_LIBTOOL([$1])
1894
_LT_CONFIG_LIBTOOL_INIT([$2])
1898
# _LT_FORMAT_COMMENT([COMMENT])
1899
# -----------------------------
1900
# Add leading comment marks to the start of each line, and a trailing
1901
# full-stop to the whole comment if one is not present already.
1902
m4_define([_LT_FORMAT_COMMENT],
1904
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1905
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1912
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1913
# -------------------------------------------------------------------
1914
# CONFIGNAME is the name given to the value in the libtool script.
1915
# VARNAME is the (base) name used in the configure script.
1916
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1917
# VARNAME. Any other value will be used directly.
1918
m4_define([_LT_DECL],
1919
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1920
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1921
[m4_ifval([$1], [$1], [$2])])
1922
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1924
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1925
lt_dict_add_subkey([lt_decl_dict], [$2],
1926
[tagged?], [m4_ifval([$5], [yes], [no])])])
1930
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1931
# --------------------------------------------------------
1932
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1935
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1936
# ------------------------------------------------
1937
m4_define([lt_decl_tag_varnames],
1938
[_lt_decl_filter([tagged?], [yes], $@)])
1941
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1942
# ---------------------------------------------------------
1943
m4_define([_lt_decl_filter],
1945
[0], [m4_fatal([$0: too few arguments: $#])],
1946
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1947
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1948
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1949
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1953
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1954
# --------------------------------------------------
1955
m4_define([lt_decl_quote_varnames],
1956
[_lt_decl_filter([value], [1], $@)])
1959
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1960
# ---------------------------------------------------
1961
m4_define([lt_decl_dquote_varnames],
1962
[_lt_decl_filter([value], [2], $@)])
1965
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1966
# ---------------------------------------------------
1967
m4_define([lt_decl_varnames_tagged],
1968
[m4_assert([$# <= 2])dnl
1969
_$0(m4_quote(m4_default([$1], [[, ]])),
1970
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1971
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1972
m4_define([_lt_decl_varnames_tagged],
1973
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1976
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1977
# ------------------------------------------------
1978
m4_define([lt_decl_all_varnames],
1979
[_$0(m4_quote(m4_default([$1], [[, ]])),
1981
m4_quote(lt_decl_varnames),
1982
m4_quote(m4_shift($@))))[]dnl
1984
m4_define([_lt_decl_all_varnames],
1985
[lt_join($@, lt_decl_varnames_tagged([$1],
1986
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1990
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1991
# ------------------------------------
1992
# Quote a variable value, and forward it to `config.status' so that its
1993
# declaration there will have the same value as in `configure'. VARNAME
1994
# must have a single quote delimited value for this to work.
1995
m4_define([_LT_CONFIG_STATUS_DECLARE],
1996
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1999
# _LT_CONFIG_STATUS_DECLARATIONS
2000
# ------------------------------
2001
# We delimit libtool config variables with single quotes, so when
2002
# we write them to config.status, we have to be sure to quote all
2003
# embedded single quotes properly. In configure, this macro expands
2004
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2006
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
2007
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
2008
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
2009
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
2014
# Output comment and list of tags supported by the script
2015
m4_defun([_LT_LIBTOOL_TAGS],
2016
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
2017
available_tags="_LT_TAGS"dnl
2021
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2022
# -----------------------------------
2023
# Extract the dictionary values for VARNAME (optionally with TAG) and
2024
# expand to a commented shell variable setting:
2026
# # Some comment about what VAR is for.
2027
# visible_name=$lt_internal_name
2028
m4_define([_LT_LIBTOOL_DECLARE],
2029
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
2030
[description])))[]dnl
2031
m4_pushdef([_libtool_name],
2032
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
2033
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
2034
[0], [_libtool_name=[$]$1],
2035
[1], [_libtool_name=$lt_[]$1],
2036
[2], [_libtool_name=$lt_[]$1],
2037
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
2038
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
2042
# _LT_LIBTOOL_CONFIG_VARS
2043
# -----------------------
2044
# Produce commented declarations of non-tagged libtool config variables
2045
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2046
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2047
# section) are produced by _LT_LIBTOOL_TAG_VARS.
2048
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
2049
[m4_foreach([_lt_var],
2050
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
2051
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
2054
# _LT_LIBTOOL_TAG_VARS(TAG)
2055
# -------------------------
2056
m4_define([_LT_LIBTOOL_TAG_VARS],
2057
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
2058
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
2061
# _LT_TAGVAR(VARNAME, [TAGNAME])
2062
# ------------------------------
2063
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
2066
# _LT_CONFIG_COMMANDS
3845
2067
# -------------------
3846
AC_DEFUN([_LT_AC_SYS_COMPILER],
2068
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2069
# variables for single and double quote escaping we saved from calls
2070
# to _LT_DECL, we can put quote escaped variables declarations
2071
# into `config.status', and then the shell code to quote escape them in
2072
# for loops in `config.status'. Finally, any additional code accumulated
2073
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2074
m4_defun([_LT_CONFIG_COMMANDS],
2075
[AC_PROVIDE_IFELSE([LT_OUTPUT],
2076
dnl If the libtool generation code has been placed in $CONFIG_LT,
2077
dnl instead of duplicating it all over again into config.status,
2078
dnl then we will have config.status run $CONFIG_LT later, so it
2079
dnl needs to know what name is stored there:
2080
[AC_CONFIG_COMMANDS([libtool],
2081
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
2082
dnl If the libtool generation code is destined for config.status,
2083
dnl expand the accumulated commands and init code now:
2084
[AC_CONFIG_COMMANDS([libtool],
2085
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
2086
])#_LT_CONFIG_COMMANDS
2090
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
2093
# The HP-UX ksh and POSIX shell print the target directory to stdout
2095
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2097
sed_quote_subst='$sed_quote_subst'
2098
double_quote_subst='$double_quote_subst'
2099
delay_variable_subst='$delay_variable_subst'
2100
_LT_CONFIG_STATUS_DECLARATIONS
2102
LTCFLAGS='$LTCFLAGS'
2103
compiler='$compiler_DEFAULT'
2105
# Quote evaled strings.
2106
for var in lt_decl_all_varnames([[ \
2107
]], lt_decl_quote_varnames); do
2108
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
2109
*[[\\\\\\\`\\"\\\$]]*)
2110
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2113
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2118
# Double-quote double-evaled strings.
2119
for var in lt_decl_all_varnames([[ \
2120
]], lt_decl_dquote_varnames); do
2121
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
2122
*[[\\\\\\\`\\"\\\$]]*)
2123
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2126
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2131
# Fix-up fallback echo if it was mangled by the above quoting rules.
2133
*'\\\[$]0 --fallback-echo"')dnl "
2134
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
2138
_LT_OUTPUT_LIBTOOL_INIT
2144
# This macro allows early generation of the libtool script (before
2145
# AC_OUTPUT is called), incase it is used in configure for compilation
2147
AC_DEFUN([LT_OUTPUT],
2148
[: ${CONFIG_LT=./config.lt}
2149
AC_MSG_NOTICE([creating $CONFIG_LT])
2150
cat >"$CONFIG_LT" <<_LTEOF
2152
# Generated by $as_me.
2153
# Run this file to recreate a libtool stub with the current configuration.
2156
SHELL=\${CONFIG_SHELL-$SHELL}
2159
cat >>"$CONFIG_LT" <<\_LTEOF
2163
exec AS_MESSAGE_FD>&1
2164
exec AS_MESSAGE_LOG_FD>>config.log
2167
AS_BOX([Running $as_me.])
2168
} >&AS_MESSAGE_LOG_FD
2171
\`$as_me' creates a local libtool stub from the current configuration,
2172
for use in further configure time tests before the real libtool is
2175
Usage: $[0] [[OPTIONS]]
2177
-h, --help print this help, then exit
2178
-V, --version print version number, then exit
2179
-q, --quiet do not print progress messages
2180
-d, --debug don't remove temporary files
2182
Report bugs to <bug-libtool@gnu.org>."
2185
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
2186
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2187
configured by $[0], generated by m4_PACKAGE_STRING.
2189
Copyright (C) 2008 Free Software Foundation, Inc.
2190
This config.lt script is free software; the Free Software Foundation
2191
gives unlimited permision to copy, distribute and modify it."
2193
while test $[#] != 0
2196
--version | --v* | -V )
2197
echo "$lt_cl_version"; exit 0 ;;
2198
--help | --h* | -h )
2199
echo "$lt_cl_help"; exit 0 ;;
2200
--debug | --d* | -d )
2202
--quiet | --q* | --silent | --s* | -q )
2205
-*) AC_MSG_ERROR([unrecognized option: $[1]
2206
Try \`$[0] --help' for more information.]) ;;
2208
*) AC_MSG_ERROR([unrecognized argument: $[1]
2209
Try \`$[0] --help' for more information.]) ;;
2214
if $lt_cl_silent; then
2215
exec AS_MESSAGE_FD>/dev/null
2219
cat >>"$CONFIG_LT" <<_LTEOF
2220
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
2223
cat >>"$CONFIG_LT" <<\_LTEOF
2224
AC_MSG_NOTICE([creating $ofile])
2225
_LT_OUTPUT_LIBTOOL_COMMANDS
2228
chmod +x "$CONFIG_LT"
2230
# configure is writing to config.log, but config.lt does its own redirection,
2231
# appending to config.log, which fails on DOS, as config.log is still kept
2232
# open by configure. Here we exec the FD to /dev/null, effectively closing
2233
# config.log, so it can be properly (re)opened and appended to by config.lt.
2234
if test "$no_create" != yes; then
2236
test "$silent" = yes &&
2237
lt_config_lt_args="$lt_config_lt_args --quiet"
2238
exec AS_MESSAGE_LOG_FD>/dev/null
2239
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2240
exec AS_MESSAGE_LOG_FD>>config.log
2241
$lt_cl_success || AS_EXIT(1)
2248
# If TAG is the built-in tag, create an initial libtool script with a
2249
# default configuration from the untagged config vars. Otherwise add code
2250
# to config.status for appending the configuration named by TAG from the
2251
# matching tagged config vars.
2252
m4_defun([_LT_CONFIG],
2253
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2254
_LT_CONFIG_SAVE_COMMANDS([
2255
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
2256
m4_if(_LT_TAG, [C], [
2257
# See if we are running on zsh, and set the options which allow our
2258
# commands through without removal of \ escapes.
2259
if test -n "${ZSH_VERSION+set}" ; then
2260
setopt NO_GLOB_SUBST
2264
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
2267
cat <<_LT_EOF >> "$cfgfile"
2270
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2271
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
2272
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2273
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2278
# ### BEGIN LIBTOOL CONFIG
2279
_LT_LIBTOOL_CONFIG_VARS
2280
_LT_LIBTOOL_TAG_VARS
2281
# ### END LIBTOOL CONFIG
2287
cat <<\_LT_EOF >> "$cfgfile"
2288
# AIX sometimes has problems with the GCC collect2 program. For some
2289
# reason, if we set the COLLECT_NAMES environment variable, the problems
2290
# vanish in a puff of smoke.
2291
if test "X${COLLECT_NAMES+set}" != Xset; then
2293
export COLLECT_NAMES
2301
# We use sed instead of cat because bash on DJGPP gets confused if
2302
# if finds mixed CR/LF and LF-only lines. Since sed operates in
2303
# text mode, it properly converts lines to CR/LF. This bash problem
2304
# is reportedly fixed, but why not run on old versions too?
2305
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
2306
|| (rm -f "$cfgfile"; exit 1)
2308
_LT_PROG_XSI_SHELLFNS
2310
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
2311
|| (rm -f "$cfgfile"; exit 1)
2313
mv -f "$cfgfile" "$ofile" ||
2314
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2317
[cat <<_LT_EOF >> "$ofile"
2319
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
2320
dnl in a comment (ie after a #).
2321
# ### BEGIN LIBTOOL TAG CONFIG: $1
2322
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
2323
# ### END LIBTOOL TAG CONFIG: $1
2330
TIMESTAMP='$TIMESTAMP'
2332
ofile='$ofile'], [])
2333
])dnl /_LT_CONFIG_SAVE_COMMANDS
2337
# LT_SUPPORTED_TAG(TAG)
2338
# ---------------------
2339
# Trace this macro to discover what tags are supported by the libtool
2340
# --tag option, using:
2341
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2342
AC_DEFUN([LT_SUPPORTED_TAG], [])
2345
# C support is built-in for now
2346
m4_define([_LT_LANG_C_enabled], [])
2347
m4_define([_LT_TAGS], [])
2352
# Enable libtool support for the given language if not already enabled.
2354
[AC_BEFORE([$0], [LT_OUTPUT])dnl
2357
[C++], [_LT_LANG(CXX)],
2358
[Java], [_LT_LANG(GCJ)],
2359
[Fortran 77], [_LT_LANG(F77)],
2360
[Fortran], [_LT_LANG(FC)],
2361
[Windows Resource], [_LT_LANG(RC)],
2362
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
2364
[m4_fatal([$0: unsupported language: "$1"])])])dnl
2368
# _LT_LANG(LANGNAME)
2369
# ------------------
2370
m4_defun([_LT_LANG],
2371
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
2372
[LT_SUPPORTED_TAG([$1])dnl
2373
m4_append([_LT_TAGS], [$1 ])dnl
2374
m4_define([_LT_LANG_]$1[_enabled], [])dnl
2375
_LT_LANG_$1_CONFIG($1)])dnl
2379
# _LT_LANG_DEFAULT_CONFIG
2380
# -----------------------
2381
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2382
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
2384
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
2386
AC_PROVIDE_IFELSE([AC_PROG_F77],
2388
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
2390
AC_PROVIDE_IFELSE([AC_PROG_FC],
2392
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
2394
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
2395
dnl pulling things in needlessly.
2396
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2398
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2400
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
2402
[m4_ifdef([AC_PROG_GCJ],
2403
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
2404
m4_ifdef([A][M_PROG_GCJ],
2405
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
2406
m4_ifdef([LT_PROG_GCJ],
2407
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2409
AC_PROVIDE_IFELSE([LT_PROG_RC],
2411
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2412
])# _LT_LANG_DEFAULT_CONFIG
2415
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
2416
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2417
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2418
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
2419
dnl aclocal-1.4 backwards compatibility:
2420
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2421
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2422
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2423
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
2428
m4_defun([_LT_TAG_COMPILER],
3847
2429
[AC_REQUIRE([AC_PROG_CC])dnl
2431
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
2432
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
2433
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
2434
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
3849
2436
# If no C compiler was specified, use CC.
3850
2437
LTCC=${LTCC-"$CC"}
2439
# If no C compiler flags were specified, use CFLAGS.
2440
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3852
2442
# Allow CC to be a program name with arguments.
3854
])# _LT_AC_SYS_COMPILER
3857
# _LT_CC_BASENAME(CC)
3858
# -------------------
3859
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
3860
AC_DEFUN([_LT_CC_BASENAME],
3861
[for cc_temp in $1""; do
3863
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
3864
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
3869
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
2444
])# _LT_TAG_COMPILER
3873
2447
# _LT_COMPILER_BOILERPLATE
3874
2448
# ------------------------
3875
2449
# Check for compiler boilerplate output or warnings with
3876
2450
# the simple compiler test code.
3877
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
3878
[ac_outfile=conftest.$ac_objext
3879
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
3880
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
2451
m4_defun([_LT_COMPILER_BOILERPLATE],
2452
[m4_require([_LT_DECL_SED])dnl
2453
ac_outfile=conftest.$ac_objext
2454
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2455
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3881
2456
_lt_compiler_boilerplate=`cat conftest.err`
3883
2458
])# _LT_COMPILER_BOILERPLATE
6091
4852
AC_CHECK_LIB(m, cos, LIBM="-lm")
6097
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
6098
# -----------------------------------
6099
# sets LIBLTDL to the link flags for the libltdl convenience library and
6100
# LTDLINCL to the include flags for the libltdl header and adds
6101
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
6102
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
6103
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
6104
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
6105
# '${top_srcdir}/' (note the single quotes!). If your package is not
6106
# flat and you're not using automake, define top_builddir and
6107
# top_srcdir appropriately in the Makefiles.
6108
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
6109
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6110
case $enable_ltdl_convenience in
6111
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
6112
"") enable_ltdl_convenience=yes
6113
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6115
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
6116
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
6117
# For backwards non-gettext consistent compatibility...
6119
])# AC_LIBLTDL_CONVENIENCE
6122
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
6123
# -----------------------------------
6124
# sets LIBLTDL to the link flags for the libltdl installable library and
6125
# LTDLINCL to the include flags for the libltdl header and adds
6126
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
6127
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
6128
# DIRECTORY is not provided and an installed libltdl is not found, it is
6129
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
6130
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
6131
# quotes!). If your package is not flat and you're not using automake,
6132
# define top_builddir and top_srcdir appropriately in the Makefiles.
6133
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
6134
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
6135
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6136
AC_CHECK_LIB(ltdl, lt_dlinit,
6137
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
6138
[if test x"$enable_ltdl_install" = xno; then
6139
AC_MSG_WARN([libltdl not installed, but installation disabled])
6141
enable_ltdl_install=yes
6144
if test x"$enable_ltdl_install" = x"yes"; then
6145
ac_configure_args="$ac_configure_args --enable-ltdl-install"
6146
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
6147
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
6149
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
6153
# For backwards non-gettext consistent compatibility...
6155
])# AC_LIBLTDL_INSTALLABLE
6160
# enable support for C++ libraries
6161
AC_DEFUN([AC_LIBTOOL_CXX],
6162
[AC_REQUIRE([_LT_AC_LANG_CXX])
6168
AC_DEFUN([_LT_AC_LANG_CXX],
6169
[AC_REQUIRE([AC_PROG_CXX])
6170
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
6171
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
6174
# _LT_AC_PROG_CXXCPP
6176
AC_DEFUN([_LT_AC_PROG_CXXCPP],
6178
AC_REQUIRE([AC_PROG_CXX])
6179
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6180
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6181
(test "X$CXX" != "Xg++"))) ; then
6184
])# _LT_AC_PROG_CXXCPP
6188
# enable support for Fortran 77 libraries
6189
AC_DEFUN([AC_LIBTOOL_F77],
6190
[AC_REQUIRE([_LT_AC_LANG_F77])
6196
AC_DEFUN([_LT_AC_LANG_F77],
6197
[AC_REQUIRE([AC_PROG_F77])
6198
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
6204
# enable support for GCJ libraries
6205
AC_DEFUN([AC_LIBTOOL_GCJ],
6206
[AC_REQUIRE([_LT_AC_LANG_GCJ])
6212
AC_DEFUN([_LT_AC_LANG_GCJ],
6213
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
6214
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
6215
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
6216
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
6217
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
6218
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
6219
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
6225
# enable support for Windows resource files
6226
AC_DEFUN([AC_LIBTOOL_RC],
6227
[AC_REQUIRE([LT_AC_PROG_RC])
6228
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
6232
# AC_LIBTOOL_LANG_C_CONFIG
6233
# ------------------------
6234
# Ensure that the configuration vars for the C compiler are
6235
# suitably defined. Those variables are subsequently used by
6236
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6237
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
6238
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
6242
# Source file extension for C test sources.
6245
# Object file extension for compiled C test sources.
6247
_LT_AC_TAGVAR(objext, $1)=$objext
6249
# Code to be used in simple compile tests
6250
lt_simple_compile_test_code="int some_variable = 0;\n"
6252
# Code to be used in simple link tests
6253
lt_simple_link_test_code='int main(){return(0);}\n'
6257
# save warnings/boilerplate of simple test code
6258
_LT_COMPILER_BOILERPLATE
6259
_LT_LINKER_BOILERPLATE
6262
# Check for any special shared library compilation flags.
6264
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
6265
if test "$GCC" = no; then
6268
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
6272
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
6273
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
6274
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
6276
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
6277
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
6283
# Check to make sure the static flag actually works.
6285
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
6286
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6287
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
6289
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6292
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6293
AC_LIBTOOL_PROG_COMPILER_PIC($1)
6294
AC_LIBTOOL_PROG_CC_C_O($1)
6295
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6296
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6297
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6298
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6299
AC_LIBTOOL_SYS_LIB_STRIP
6300
AC_LIBTOOL_DLOPEN_SELF($1)
6302
# Report which librarie types wil actually be built
6303
AC_MSG_CHECKING([if libtool supports shared libraries])
6304
AC_MSG_RESULT([$can_build_shared])
6306
AC_MSG_CHECKING([whether to build shared libraries])
6307
test "$can_build_shared" = "no" && enable_shared=no
6309
# On AIX, shared libraries and static libraries use the same namespace, and
6310
# are all built from PIC.
6313
test "$enable_shared" = yes && enable_static=no
6314
if test -n "$RANLIB"; then
6315
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6316
postinstall_cmds='$RANLIB $lib'
6321
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6322
test "$enable_shared" = yes && enable_static=no
6326
AC_MSG_RESULT([$enable_shared])
6328
AC_MSG_CHECKING([whether to build static libraries])
6329
# Make sure either enable_shared or enable_static is yes.
6330
test "$enable_shared" = yes || enable_static=yes
6331
AC_MSG_RESULT([$enable_static])
6333
AC_LIBTOOL_CONFIG($1)
6337
])# AC_LIBTOOL_LANG_C_CONFIG
6340
# AC_LIBTOOL_LANG_CXX_CONFIG
6341
# --------------------------
6342
# Ensure that the configuration vars for the C compiler are
6343
# suitably defined. Those variables are subsequently used by
6344
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6345
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
6346
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
6348
AC_REQUIRE([AC_PROG_CXX])
6349
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
6351
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6352
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6353
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6354
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6355
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6356
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6357
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6358
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6359
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6360
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6361
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6362
_LT_AC_TAGVAR(module_cmds, $1)=
6363
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6364
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6365
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6366
_LT_AC_TAGVAR(no_undefined_flag, $1)=
6367
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6368
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6370
# Dependencies to place before and after the object being linked:
6371
_LT_AC_TAGVAR(predep_objects, $1)=
6372
_LT_AC_TAGVAR(postdep_objects, $1)=
6373
_LT_AC_TAGVAR(predeps, $1)=
6374
_LT_AC_TAGVAR(postdeps, $1)=
6375
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
6377
# Source file extension for C++ test sources.
6380
# Object file extension for compiled C++ test sources.
6382
_LT_AC_TAGVAR(objext, $1)=$objext
6384
# Code to be used in simple compile tests
6385
lt_simple_compile_test_code="int some_variable = 0;\n"
6387
# Code to be used in simple link tests
6388
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
6390
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6393
# save warnings/boilerplate of simple test code
6394
_LT_COMPILER_BOILERPLATE
6395
_LT_LINKER_BOILERPLATE
6397
# Allow CC to be a program name with arguments.
6402
lt_save_with_gnu_ld=$with_gnu_ld
6403
lt_save_path_LD=$lt_cv_path_LD
6404
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6405
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6407
unset lt_cv_prog_gnu_ld
6409
if test -n "${lt_cv_path_LDCXX+set}"; then
6410
lt_cv_path_LD=$lt_cv_path_LDCXX
6414
test -z "${LDCXX+set}" || LD=$LDCXX
6417
_LT_AC_TAGVAR(compiler, $1)=$CC
6418
_LT_CC_BASENAME([$compiler])
6420
# We don't want -fno-exception wen compiling C++ code, so set the
6421
# no_builtin_flag separately
6422
if test "$GXX" = yes; then
6423
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6425
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6428
if test "$GXX" = yes; then
6429
# Set up default GNU C++ configuration
6433
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6434
# archiving commands below assume that GNU ld is being used.
6435
if test "$with_gnu_ld" = yes; then
6436
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6437
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6439
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6440
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6442
# If archive_cmds runs LD, not CC, wlarc should be empty
6443
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6444
# investigate it a little bit more. (MM)
6447
# ancient GNU ld didn't support --whole-archive et. al.
6448
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
6449
grep 'no-whole-archive' > /dev/null; then
6450
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6452
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6458
# A generic and very simple default shared library creation
6459
# command for GNU C++ for the case where it uses the native
6460
# linker, instead of GNU ld. If possible, this setting should
6461
# overridden to take advantage of the native linker features on
6462
# the platform it is being used on.
6463
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6466
# Commands to make compiler produce verbose output that lists
6467
# what "hidden" libraries, object files and flags are used when
6468
# linking a shared library.
6469
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6477
# PORTME: fill in a description of your system's C++ link characteristics
6478
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6479
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6482
# FIXME: insert proper C++ library support
6483
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6486
if test "$host_cpu" = ia64; then
6487
# On IA64, the linker does run time linking by default, so we don't
6488
# have to do anything special.
6489
aix_use_runtimelinking=no
6490
exp_sym_flag='-Bexport'
6493
aix_use_runtimelinking=no
6495
# Test if we are trying to use run time linking or normal
6496
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6497
# need to do runtime linking.
6498
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6499
for ld_flag in $LDFLAGS; do
6502
aix_use_runtimelinking=yes
6509
exp_sym_flag='-bexport'
6510
no_entry_flag='-bnoentry'
6513
# When large executables or shared objects are built, AIX ld can
6514
# have problems creating the table of contents. If linking a library
6515
# or program results in "error TOC overflow" add -mminimal-toc to
6516
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6517
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6519
_LT_AC_TAGVAR(archive_cmds, $1)=''
6520
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6521
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6522
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6524
if test "$GXX" = yes; then
6525
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6526
# We only want to do this on AIX 4.2 and lower, the check
6527
# below for broken collect2 doesn't work under 4.3+
6528
collect2name=`${CC} -print-prog-name=collect2`
6529
if test -f "$collect2name" && \
6530
strings "$collect2name" | grep resolve_lib_name >/dev/null
6532
# We have reworked collect2
6533
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6535
# We have old collect2
6536
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6537
# It fails to find uninstalled libraries when the uninstalled
6538
# path is not listed in the libpath. Setting hardcode_minus_L
6539
# to unsupported forces relinking
6540
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6541
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6542
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6545
shared_flag='-shared'
6546
if test "$aix_use_runtimelinking" = yes; then
6547
shared_flag="$shared_flag "'${wl}-G'
6551
if test "$host_cpu" = ia64; then
6552
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6553
# chokes on -Wl,-G. The following line is correct:
6556
if test "$aix_use_runtimelinking" = yes; then
6557
shared_flag='${wl}-G'
6559
shared_flag='${wl}-bM:SRE'
6564
# It seems that -bexpall does not export symbols beginning with
6565
# underscore (_), so it is better to generate a list of symbols to export.
6566
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6567
if test "$aix_use_runtimelinking" = yes; then
6568
# Warning - without using the other runtime loading flags (-brtl),
6569
# -berok will link without error, but may produce a broken library.
6570
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6571
# Determine the default libpath from the value encoded in an empty executable.
6572
_LT_AC_SYS_LIBPATH_AIX
6573
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6575
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6577
if test "$host_cpu" = ia64; then
6578
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6579
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6580
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6582
# Determine the default libpath from the value encoded in an empty executable.
6583
_LT_AC_SYS_LIBPATH_AIX
6584
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6585
# Warning - without using the other run time loading flags,
6586
# -berok will link without error, but may produce a broken library.
6587
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6588
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6589
# -bexpall does not export symbols beginning with underscore (_)
6590
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6591
# Exported symbols can be pulled into shared objects from archives
6592
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6593
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6594
# This is similar to how AIX traditionally builds it's shared libraries.
6595
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6600
case $cc_basename in
6602
# FIXME: insert proper C++ library support
6603
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6609
cygwin* | mingw* | pw32*)
6610
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6611
# as there is no search path for DLLs.
6612
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6613
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6614
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6615
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6617
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6618
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6619
# If the export-symbols file already is a .def file (1st line
6620
# is EXPORTS), use it as is; otherwise, prepend...
6621
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6622
cp $export_symbols $output_objdir/$soname.def;
6624
echo EXPORTS > $output_objdir/$soname.def;
6625
cat $export_symbols >> $output_objdir/$soname.def;
6627
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6629
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6632
darwin* | rhapsody*)
6634
rhapsody* | darwin1.[[012]])
6635
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6638
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6639
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6641
case ${MACOSX_DEPLOYMENT_TARGET} in
6643
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6646
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6652
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6653
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6654
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6655
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6656
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6657
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6659
if test "$GXX" = yes ; then
6660
lt_int_apple_cc_single_mod=no
6661
output_verbose_link_cmd='echo'
6662
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
6663
lt_int_apple_cc_single_mod=yes
6665
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6666
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6668
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6670
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6671
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6672
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6673
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6675
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6677
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6679
case $cc_basename in
6681
output_verbose_link_cmd='echo'
6682
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6683
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6684
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6685
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6686
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6689
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6696
case $cc_basename in
6698
# FIXME: insert proper C++ library support
6699
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6702
# Green Hills C++ Compiler
6703
# FIXME: insert proper C++ library support
6704
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6707
# FIXME: insert proper C++ library support
6708
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6713
# C++ shared libraries reported to be fairly broken before switch to ELF
6714
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6717
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6719
freebsd* | kfreebsd*-gnu | dragonfly*)
6720
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6722
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6727
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6728
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6729
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6730
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6731
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6732
# but as the default
6733
# location of the library.
6735
case $cc_basename in
6737
# FIXME: insert proper C++ library support
6738
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6741
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6742
# Commands to make compiler produce verbose output that lists
6743
# what "hidden" libraries, object files and flags are used when
6744
# linking a shared library.
6746
# There doesn't appear to be a way to prevent this compiler from
6747
# explicitly linking system object files so we need to strip them
6748
# from the output so that they don't get included in the library
6750
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6753
if test "$GXX" = yes; then
6754
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6756
# FIXME: insert proper C++ library support
6757
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6763
if test $with_gnu_ld = no; then
6766
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6767
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6768
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6771
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6774
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6775
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6776
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6782
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6783
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6786
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6787
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6788
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6789
# but as the default
6790
# location of the library.
6793
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6794
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6795
# but as the default
6796
# location of the library.
6800
case $cc_basename in
6802
# FIXME: insert proper C++ library support
6803
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6808
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
6811
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6814
# Commands to make compiler produce verbose output that lists
6815
# what "hidden" libraries, object files and flags are used when
6816
# linking a shared library.
6818
# There doesn't appear to be a way to prevent this compiler from
6819
# explicitly linking system object files so we need to strip them
6820
# from the output so that they don't get included in the library
6822
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6825
if test "$GXX" = yes; then
6826
if test $with_gnu_ld = no; then
6829
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
6832
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6837
# FIXME: insert proper C++ library support
6838
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6844
case $cc_basename in
6847
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6849
# Archives containing C++ object files must be created using
6850
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6851
# necessary to make sure instantiated templates are included
6853
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6856
if test "$GXX" = yes; then
6857
if test "$with_gnu_ld" = no; then
6858
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6860
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
6863
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6866
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6867
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6870
case $cc_basename in
6872
# Kuck and Associates, Inc. (KAI) C++ Compiler
6874
# KCC will only create a shared library if the output file
6875
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6876
# to its proper name (with version) after linking.
6877
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6878
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6879
# Commands to make compiler produce verbose output that lists
6880
# what "hidden" libraries, object files and flags are used when
6881
# linking a shared library.
6883
# There doesn't appear to be a way to prevent this compiler from
6884
# explicitly linking system object files so we need to strip them
6885
# from the output so that they don't get included in the library
6887
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6889
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
6890
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6892
# Archives containing C++ object files must be created using
6893
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6894
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6899
# version 8.0 and above of icpc choke on multiply defined symbols
6900
# if we add $predep_objects and $postdep_objects, however 7.1 and
6901
# earlier do not add the objects themselves.
6902
case `$CC -V 2>&1` in
6904
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6905
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6907
*) # Version 8.0 or newer
6910
ia64*) tmp_idyn=' -i_dynamic';;
6912
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6913
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6916
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6917
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6918
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6919
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6922
# Portland Group C++ compiler
6923
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6924
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6926
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6927
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6928
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6932
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6933
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6935
runpath_var=LD_RUN_PATH
6936
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6937
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6939
# Commands to make compiler produce verbose output that lists
6940
# what "hidden" libraries, object files and flags are used when
6941
# linking a shared library.
6943
# There doesn't appear to be a way to prevent this compiler from
6944
# explicitly linking system object files so we need to strip them
6945
# from the output so that they don't get included in the library
6947
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6952
# FIXME: insert proper C++ library support
6953
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6956
# FIXME: insert proper C++ library support
6957
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6960
case $cc_basename in
6962
# FIXME: insert proper C++ library support
6963
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6966
# FIXME: insert proper C++ library support
6967
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6972
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6973
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6975
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6976
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6977
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6979
# Workaround some broken pre-1.5 toolchains
6980
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6983
# C++ shared libraries are fairly broken
6984
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6987
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6988
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6989
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6990
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6991
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6992
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6993
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6994
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6996
output_verbose_link_cmd='echo'
6999
case $cc_basename in
7001
# Kuck and Associates, Inc. (KAI) C++ Compiler
7003
# KCC will only create a shared library if the output file
7004
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7005
# to its proper name (with version) after linking.
7006
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7008
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7009
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7011
# Archives containing C++ object files must be created using
7012
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
7013
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7017
# Rational C++ 2.4.1
7018
# FIXME: insert proper C++ library support
7019
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7022
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7023
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7025
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7026
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7028
# Commands to make compiler produce verbose output that lists
7029
# what "hidden" libraries, object files and flags are used when
7030
# linking a shared library.
7032
# There doesn't appear to be a way to prevent this compiler from
7033
# explicitly linking system object files so we need to strip them
7034
# from the output so that they don't get included in the library
7036
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7039
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7040
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7041
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7043
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7044
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7046
# Commands to make compiler produce verbose output that lists
7047
# what "hidden" libraries, object files and flags are used when
7048
# linking a shared library.
7049
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
7052
# FIXME: insert proper C++ library support
7053
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7059
case $cc_basename in
7061
# Kuck and Associates, Inc. (KAI) C++ Compiler
7063
# KCC will only create a shared library if the output file
7064
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7065
# to its proper name (with version) after linking.
7066
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7068
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7069
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7071
# Archives containing C++ object files must be created using
7072
# the KAI C++ compiler.
7073
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
7076
# Rational C++ 2.4.1
7077
# FIXME: insert proper C++ library support
7078
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7081
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7082
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7083
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7084
echo "-hidden">> $lib.exp~
7085
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
7088
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7089
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7091
# Commands to make compiler produce verbose output that lists
7092
# what "hidden" libraries, object files and flags are used when
7093
# linking a shared library.
7095
# There doesn't appear to be a way to prevent this compiler from
7096
# explicitly linking system object files so we need to strip them
7097
# from the output so that they don't get included in the library
7099
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7102
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7103
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7104
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7106
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7107
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7109
# Commands to make compiler produce verbose output that lists
7110
# what "hidden" libraries, object files and flags are used when
7111
# linking a shared library.
7112
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
7115
# FIXME: insert proper C++ library support
7116
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7122
# FIXME: insert proper C++ library support
7123
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7126
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7127
case $cc_basename in
7129
# FIXME: insert proper C++ library support
7130
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7133
# FIXME: insert proper C++ library support
7134
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7139
case $cc_basename in
7142
# FIXME: insert proper C++ library support
7143
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7147
# FIXME: insert proper C++ library support
7148
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7151
# FIXME: insert proper C++ library support
7152
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7157
case $cc_basename in
7159
# Sun C++ 4.2, 5.x and Centerline C++
7160
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7161
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7162
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7163
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7165
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7166
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7168
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7170
# The C++ compiler is used as linker so we must use $wl
7171
# flag to pass the commands to the underlying system
7172
# linker. We must also pass each convience library through
7173
# to the system linker between allextract/defaultextract.
7174
# The C++ compiler will combine linker options so we
7175
# cannot just pass the convience library names through
7177
# Supported since Solaris 2.6 (maybe 2.5.1?)
7178
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
7181
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7183
# Commands to make compiler produce verbose output that lists
7184
# what "hidden" libraries, object files and flags are used when
7185
# linking a shared library.
7187
# There doesn't appear to be a way to prevent this compiler from
7188
# explicitly linking system object files so we need to strip them
7189
# from the output so that they don't get included in the library
7191
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7193
# Archives containing C++ object files must be created using
7194
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7195
# necessary to make sure instantiated templates are included
7197
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7200
# Green Hills C++ Compiler
7201
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7203
# The C++ compiler must be used to create the archive.
7204
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7207
# GNU C++ compiler with Solaris linker
7208
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7209
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7210
if $CC --version | grep -v '^2\.7' > /dev/null; then
7211
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7212
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7213
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7215
# Commands to make compiler produce verbose output that lists
7216
# what "hidden" libraries, object files and flags are used when
7217
# linking a shared library.
7218
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
7220
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7222
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7223
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7224
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7226
# Commands to make compiler produce verbose output that lists
7227
# what "hidden" libraries, object files and flags are used when
7228
# linking a shared library.
7229
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
7232
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7237
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
7238
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7241
case $cc_basename in
7243
# NonStop-UX NCC 3.20
7244
# FIXME: insert proper C++ library support
7245
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7248
# FIXME: insert proper C++ library support
7249
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7254
# FIXME: insert proper C++ library support
7255
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7258
# FIXME: insert proper C++ library support
7259
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7262
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7263
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7265
_LT_AC_TAGVAR(GCC, $1)="$GXX"
7266
_LT_AC_TAGVAR(LD, $1)="$LD"
7268
AC_LIBTOOL_POSTDEP_PREDEP($1)
7269
AC_LIBTOOL_PROG_COMPILER_PIC($1)
7270
AC_LIBTOOL_PROG_CC_C_O($1)
7271
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7272
AC_LIBTOOL_PROG_LD_SHLIBS($1)
7273
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7274
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7275
AC_LIBTOOL_SYS_LIB_STRIP
7276
AC_LIBTOOL_DLOPEN_SELF($1)
7278
AC_LIBTOOL_CONFIG($1)
7285
with_gnu_ldcxx=$with_gnu_ld
7286
with_gnu_ld=$lt_save_with_gnu_ld
7287
lt_cv_path_LDCXX=$lt_cv_path_LD
7288
lt_cv_path_LD=$lt_save_path_LD
7289
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7290
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7291
])# AC_LIBTOOL_LANG_CXX_CONFIG
7293
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
7294
# ------------------------
7295
# Figure out "hidden" library dependencies from verbose
7296
# compiler output when linking a shared library.
7297
# Parse the compiler output and extract the necessary
7298
# objects, libraries and library flags.
7299
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
7300
dnl we can't use the lt_simple_compile_test_code here,
7301
dnl because it contains code intended for an executable,
7302
dnl not a library. It's possible we should let each
7303
dnl tag define a new lt_????_link_test_code variable,
7304
dnl but it's only used here...
7305
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
7307
void foo (void) { a = 0; }
7309
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
7313
Foo (void) { a = 0; }
7318
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
7326
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
7329
public void bar (void) {
7335
dnl Parse the compiler output and extract the necessary
7336
dnl objects, libraries and library flags.
7337
if AC_TRY_EVAL(ac_compile); then
7338
# Parse the compiler output and extract the necessary
7339
# objects, libraries and library flags.
7341
# Sentinel used to keep track of whether or not we are before
7342
# the conftest object file.
7343
pre_test_object_deps_done=no
7345
# The `*' in the case matches for architectures that use `case' in
7346
# $output_verbose_cmd can trigger glob expansion during the loop
7347
# eval without this substitution.
7348
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
7350
for p in `eval $output_verbose_link_cmd`; do
7354
# Some compilers place space between "-{L,R}" and the path.
7357
|| test $p = "-R"; then
7364
if test "$pre_test_object_deps_done" = no; then
7367
# Internal compiler library paths should come after those
7368
# provided the user. The postdeps already come after the
7369
# user supplied libs so there is no need to process them.
7370
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
7371
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7373
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7376
# The "-l" case would never come before the object being
7377
# linked, so don't bother handling this case.
7380
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
7381
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
7383
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
7389
# This assumes that the test object file only shows up
7390
# once in the compiler output.
7391
if test "$p" = "conftest.$objext"; then
7392
pre_test_object_deps_done=yes
7396
if test "$pre_test_object_deps_done" = no; then
7397
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
7398
_LT_AC_TAGVAR(predep_objects, $1)="$p"
7400
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
7403
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
7404
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
7406
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
7411
*) ;; # Ignore the rest.
7419
echo "libtool.m4: error: problem compiling $1 test program"
7422
$rm -f confest.$objext
7424
case " $_LT_AC_TAGVAR(postdeps, $1) " in
7425
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7427
])# AC_LIBTOOL_POSTDEP_PREDEP
7429
# AC_LIBTOOL_LANG_F77_CONFIG
7430
# ------------------------
7431
# Ensure that the configuration vars for the C compiler are
7432
# suitably defined. Those variables are subsequently used by
7433
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7434
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
7435
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
7436
[AC_REQUIRE([AC_PROG_F77])
7437
AC_LANG_PUSH(Fortran 77)
7439
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7440
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7441
_LT_AC_TAGVAR(always_export_symbols, $1)=no
7442
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7443
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7444
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7445
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7446
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7447
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7448
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7449
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7450
_LT_AC_TAGVAR(module_cmds, $1)=
7451
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7452
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7453
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7454
_LT_AC_TAGVAR(no_undefined_flag, $1)=
7455
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7456
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7458
# Source file extension for f77 test sources.
7461
# Object file extension for compiled f77 test sources.
7463
_LT_AC_TAGVAR(objext, $1)=$objext
7465
# Code to be used in simple compile tests
7466
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
7468
# Code to be used in simple link tests
7469
lt_simple_link_test_code=" program t\n end\n"
7471
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7474
# save warnings/boilerplate of simple test code
7475
_LT_COMPILER_BOILERPLATE
7476
_LT_LINKER_BOILERPLATE
7478
# Allow CC to be a program name with arguments.
7482
_LT_AC_TAGVAR(compiler, $1)=$CC
7483
_LT_CC_BASENAME([$compiler])
7485
AC_MSG_CHECKING([if libtool supports shared libraries])
7486
AC_MSG_RESULT([$can_build_shared])
7488
AC_MSG_CHECKING([whether to build shared libraries])
7489
test "$can_build_shared" = "no" && enable_shared=no
7491
# On AIX, shared libraries and static libraries use the same namespace, and
7492
# are all built from PIC.
7495
test "$enable_shared" = yes && enable_static=no
7496
if test -n "$RANLIB"; then
7497
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7498
postinstall_cmds='$RANLIB $lib'
7502
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7503
test "$enable_shared" = yes && enable_static=no
7507
AC_MSG_RESULT([$enable_shared])
7509
AC_MSG_CHECKING([whether to build static libraries])
7510
# Make sure either enable_shared or enable_static is yes.
7511
test "$enable_shared" = yes || enable_static=yes
7512
AC_MSG_RESULT([$enable_static])
7514
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7516
_LT_AC_TAGVAR(GCC, $1)="$G77"
7517
_LT_AC_TAGVAR(LD, $1)="$LD"
7519
AC_LIBTOOL_PROG_COMPILER_PIC($1)
7520
AC_LIBTOOL_PROG_CC_C_O($1)
7521
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7522
AC_LIBTOOL_PROG_LD_SHLIBS($1)
7523
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7524
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7525
AC_LIBTOOL_SYS_LIB_STRIP
7528
AC_LIBTOOL_CONFIG($1)
7532
])# AC_LIBTOOL_LANG_F77_CONFIG
7535
# AC_LIBTOOL_LANG_GCJ_CONFIG
7536
# --------------------------
7537
# Ensure that the configuration vars for the C compiler are
7538
# suitably defined. Those variables are subsequently used by
7539
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7540
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
7541
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
7544
# Source file extension for Java test sources.
7547
# Object file extension for compiled Java test sources.
7549
_LT_AC_TAGVAR(objext, $1)=$objext
7551
# Code to be used in simple compile tests
7552
lt_simple_compile_test_code="class foo {}\n"
7554
# Code to be used in simple link tests
7555
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
7557
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7560
# save warnings/boilerplate of simple test code
7561
_LT_COMPILER_BOILERPLATE
7562
_LT_LINKER_BOILERPLATE
7564
# Allow CC to be a program name with arguments.
7568
_LT_AC_TAGVAR(compiler, $1)=$CC
7569
_LT_CC_BASENAME([$compiler])
7571
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7572
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7574
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7576
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7577
AC_LIBTOOL_PROG_COMPILER_PIC($1)
7578
AC_LIBTOOL_PROG_CC_C_O($1)
7579
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7580
AC_LIBTOOL_PROG_LD_SHLIBS($1)
7581
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7582
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7583
AC_LIBTOOL_SYS_LIB_STRIP
7584
AC_LIBTOOL_DLOPEN_SELF($1)
7586
AC_LIBTOOL_CONFIG($1)
7590
])# AC_LIBTOOL_LANG_GCJ_CONFIG
7593
# AC_LIBTOOL_LANG_RC_CONFIG
7594
# --------------------------
7595
# Ensure that the configuration vars for the Windows resource compiler are
7596
# suitably defined. Those variables are subsequently used by
7597
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7598
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7599
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7602
# Source file extension for RC test sources.
7605
# Object file extension for compiled RC test sources.
7607
_LT_AC_TAGVAR(objext, $1)=$objext
7609
# Code to be used in simple compile tests
7610
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
7612
# Code to be used in simple link tests
7613
lt_simple_link_test_code="$lt_simple_compile_test_code"
7615
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7618
# save warnings/boilerplate of simple test code
7619
_LT_COMPILER_BOILERPLATE
7620
_LT_LINKER_BOILERPLATE
7622
# Allow CC to be a program name with arguments.
7626
_LT_AC_TAGVAR(compiler, $1)=$CC
7627
_LT_CC_BASENAME([$compiler])
7628
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7630
AC_LIBTOOL_CONFIG($1)
7634
])# AC_LIBTOOL_LANG_RC_CONFIG
7637
# AC_LIBTOOL_CONFIG([TAGNAME])
7638
# ----------------------------
7639
# If TAGNAME is not passed, then create an initial libtool script
7640
# with a default configuration from the untagged config vars. Otherwise
7641
# add code to config.status for appending the configuration named by
7642
# TAGNAME from the matching tagged config vars.
7643
AC_DEFUN([AC_LIBTOOL_CONFIG],
7644
[# The else clause should only fire when bootstrapping the
7645
# libtool distribution, otherwise you forgot to ship ltmain.sh
7646
# with your package, and you will get complaints that there are
7647
# no rules to generate ltmain.sh.
7648
if test -f "$ltmain"; then
7649
# See if we are running on zsh, and set the options which allow our commands through
7650
# without removal of \ escapes.
7651
if test -n "${ZSH_VERSION+set}" ; then
7652
setopt NO_GLOB_SUBST
7654
# Now quote all the things that may contain metacharacters while being
7655
# careful not to overquote the AC_SUBSTed values. We take copies of the
7656
# variables and quote the copies for generation of the libtool script.
7657
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
7659
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7660
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7661
deplibs_check_method reload_flag reload_cmds need_locks \
7662
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7663
lt_cv_sys_global_symbol_to_c_name_address \
7664
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7665
old_postinstall_cmds old_postuninstall_cmds \
7666
_LT_AC_TAGVAR(compiler, $1) \
7667
_LT_AC_TAGVAR(CC, $1) \
7668
_LT_AC_TAGVAR(LD, $1) \
7669
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
7670
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
7671
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
7672
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
7673
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
7674
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
7675
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
7676
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
7677
_LT_AC_TAGVAR(old_archive_cmds, $1) \
7678
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
7679
_LT_AC_TAGVAR(predep_objects, $1) \
7680
_LT_AC_TAGVAR(postdep_objects, $1) \
7681
_LT_AC_TAGVAR(predeps, $1) \
7682
_LT_AC_TAGVAR(postdeps, $1) \
7683
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
7684
_LT_AC_TAGVAR(archive_cmds, $1) \
7685
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
7686
_LT_AC_TAGVAR(postinstall_cmds, $1) \
7687
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
7688
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
7689
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
7690
_LT_AC_TAGVAR(no_undefined_flag, $1) \
7691
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
7692
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
7693
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
7694
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
7695
_LT_AC_TAGVAR(hardcode_automatic, $1) \
7696
_LT_AC_TAGVAR(module_cmds, $1) \
7697
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
7698
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
7699
_LT_AC_TAGVAR(exclude_expsyms, $1) \
7700
_LT_AC_TAGVAR(include_expsyms, $1); do
7703
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
7704
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
7705
_LT_AC_TAGVAR(archive_cmds, $1) | \
7706
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
7707
_LT_AC_TAGVAR(module_cmds, $1) | \
7708
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
7709
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
7710
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
7711
extract_expsyms_cmds | reload_cmds | finish_cmds | \
7712
postinstall_cmds | postuninstall_cmds | \
7713
old_postinstall_cmds | old_postuninstall_cmds | \
7714
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7715
# Double-quote double-evaled strings.
7716
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7719
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7725
*'\[$]0 --fallback-echo"')
7726
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
7731
[cfgfile="${ofile}T"
7732
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
7734
AC_MSG_NOTICE([creating $ofile])],
7737
cat <<__EOF__ >> "$cfgfile"
7741
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7742
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7743
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7745
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
7746
# Free Software Foundation, Inc.
7748
# This file is part of GNU Libtool:
7749
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7751
# This program is free software; you can redistribute it and/or modify
7752
# it under the terms of the GNU General Public License as published by
7753
# the Free Software Foundation; either version 2 of the License, or
7754
# (at your option) any later version.
7756
# This program is distributed in the hope that it will be useful, but
7757
# WITHOUT ANY WARRANTY; without even the implied warranty of
7758
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7759
# General Public License for more details.
7761
# You should have received a copy of the GNU General Public License
7762
# along with this program; if not, write to the Free Software
7763
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7765
# As a special exception to the GNU General Public License, if you
7766
# distribute this file as part of a program that contains a
7767
# configuration script generated by Autoconf, you may include it under
7768
# the same distribution terms that you use for the rest of that program.
7770
# A sed program that does not truncate output.
7773
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7774
Xsed="$SED -e 1s/^X//"
7776
# The HP-UX ksh and POSIX shell print the target directory to stdout
7778
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7780
# The names of the tagged configurations supported by this script.
7783
# ### BEGIN LIBTOOL CONFIG],
7784
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
7786
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7788
# Shell to use when invoking shell scripts.
7791
# Whether or not to build shared libraries.
7792
build_libtool_libs=$enable_shared
7794
# Whether or not to build static libraries.
7795
build_old_libs=$enable_static
7797
# Whether or not to add -lc for building shared libraries.
7798
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
7800
# Whether or not to disallow shared libs when runtime libs are static
7801
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
7803
# Whether or not to optimize for fast installation.
7804
fast_install=$enable_fast_install
7807
host_alias=$host_alias
7812
build_alias=$build_alias
7816
# An echo program that does not interpret backslashes.
7821
AR_FLAGS=$lt_AR_FLAGS
7826
# A language-specific compiler.
7827
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
7829
# Is the compiler the GNU C compiler?
7830
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
7835
# The linker used to build libraries.
7836
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
7838
# Whether we need hard or soft links.
7841
# A BSD-compatible nm program.
7844
# A symbol stripping program
7847
# Used to examine libraries when file_magic_cmd begins "file"
7848
MAGIC_CMD=$MAGIC_CMD
7850
# Used on cygwin: DLL creation program.
7853
# Used on cygwin: object dumper.
7856
# Used on cygwin: assembler.
7859
# The name of the directory that contains temporary libtool files.
7862
# How to create reloadable object files.
7863
reload_flag=$lt_reload_flag
7864
reload_cmds=$lt_reload_cmds
7866
# How to pass a linker flag through the compiler.
7867
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7869
# Object file suffix (normally "o").
7872
# Old archive suffix (normally "a").
7875
# Shared library suffix (normally ".so").
7876
shrext_cmds='$shrext_cmds'
7878
# Executable file suffix (normally "").
7881
# Additional compiler flags for building library objects.
7882
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7885
# What is the maximum length of a command?
7886
max_cmd_len=$lt_cv_sys_max_cmd_len
7888
# Does compiler simultaneously support -c and -o options?
7889
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
7891
# Must we lock files when doing compilation?
7892
need_locks=$lt_need_locks
7894
# Do we need the lib prefix for modules?
7895
need_lib_prefix=$need_lib_prefix
7897
# Do we need a version for libraries?
7898
need_version=$need_version
7900
# Whether dlopen is supported.
7901
dlopen_support=$enable_dlopen
7903
# Whether dlopen of programs is supported.
7904
dlopen_self=$enable_dlopen_self
7906
# Whether dlopen of statically linked programs is supported.
7907
dlopen_self_static=$enable_dlopen_self_static
7909
# Compiler flag to prevent dynamic linking.
7910
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
7912
# Compiler flag to turn off builtin functions.
7913
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
7915
# Compiler flag to allow reflexive dlopens.
7916
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
7918
# Compiler flag to generate shared objects directly from archives.
7919
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
7921
# Compiler flag to generate thread-safe objects.
7922
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
7924
# Library versioning type.
7925
version_type=$version_type
7927
# Format of library name prefix.
7928
libname_spec=$lt_libname_spec
7930
# List of archive names. First name is the real one, the rest are links.
7931
# The last name is the one that the linker finds with -lNAME.
7932
library_names_spec=$lt_library_names_spec
7934
# The coded name of the library, if different from the real name.
7935
soname_spec=$lt_soname_spec
7937
# Commands used to build and install an old-style archive.
7939
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
7940
old_postinstall_cmds=$lt_old_postinstall_cmds
7941
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7943
# Create an old-style archive from a shared archive.
7944
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
7946
# Create a temporary old-style archive to link instead of a shared archive.
7947
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
7949
# Commands used to build and install a shared archive.
7950
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
7951
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
7952
postinstall_cmds=$lt_postinstall_cmds
7953
postuninstall_cmds=$lt_postuninstall_cmds
7955
# Commands used to build a loadable module (assumed same as above if empty)
7956
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
7957
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
7959
# Commands to strip libraries.
7960
old_striplib=$lt_old_striplib
7961
striplib=$lt_striplib
7963
# Dependencies to place before the objects being linked to create a
7965
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
7967
# Dependencies to place after the objects being linked to create a
7969
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
7971
# Dependencies to place before the objects being linked to create a
7973
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
7975
# Dependencies to place after the objects being linked to create a
7977
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
7979
# The library search path used internally by the compiler when linking
7981
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
7983
# Method to check whether dependent libraries are shared objects.
7984
deplibs_check_method=$lt_deplibs_check_method
7986
# Command to use when deplibs_check_method == file_magic.
7987
file_magic_cmd=$lt_file_magic_cmd
7989
# Flag that allows shared libraries with undefined symbols to be built.
7990
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
7992
# Flag that forces no undefined symbols.
7993
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
7995
# Commands used to finish a libtool library installation in a directory.
7996
finish_cmds=$lt_finish_cmds
7998
# Same as above, but a single script fragment to be evaled but not shown.
7999
finish_eval=$lt_finish_eval
8001
# Take the output of nm and produce a listing of raw symbols and C names.
8002
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8004
# Transform the output of nm in a proper C declaration
8005
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8007
# Transform the output of nm in a C name address pair
8008
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8010
# This is the shared library runtime path variable.
8011
runpath_var=$runpath_var
8013
# This is the shared library path variable.
8014
shlibpath_var=$shlibpath_var
8016
# Is shlibpath searched before the hard-coded library search path?
8017
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8019
# How to hardcode a shared library path into an executable.
8020
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
8022
# Whether we should hardcode library paths into libraries.
8023
hardcode_into_libs=$hardcode_into_libs
8025
# Flag to hardcode \$libdir into a binary during linking.
8026
# This must work even if \$libdir does not exist.
8027
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
8029
# If ld is used when linking, flag to hardcode \$libdir into
8030
# a binary during linking. This must work even if \$libdir does
8032
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
8034
# Whether we need a single -rpath flag with a separated argument.
8035
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
8037
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8039
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
8041
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8043
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
8045
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8046
# the resulting binary.
8047
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
8049
# Set to yes if building a shared library automatically hardcodes DIR into the library
8050
# and all subsequent libraries and executables linked against it.
8051
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
8053
# Variables whose values should be saved in libtool wrapper scripts and
8054
# restored at relink time.
8055
variables_saved_for_relink="$variables_saved_for_relink"
8057
# Whether libtool must link a program against all its dependency libraries.
8058
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
8060
# Compile-time system search path for libraries
8061
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8063
# Run-time system search path for libraries
8064
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8066
# Fix the shell variable \$srcfile for the compiler.
8067
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
8069
# Set to yes if exported symbols are required.
8070
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
8072
# The commands to list exported symbols.
8073
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
8075
# The commands to extract the exported symbol list from a shared archive.
8076
extract_expsyms_cmds=$lt_extract_expsyms_cmds
8078
# Symbols that should not be listed in the preloaded symbols.
8079
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
8081
# Symbols that must always be exported.
8082
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
8085
[# ### END LIBTOOL CONFIG],
8086
[# ### END LIBTOOL TAG CONFIG: $tagname])
8093
cat <<\EOF >> "$cfgfile"
8095
# AIX sometimes has problems with the GCC collect2 program. For some
8096
# reason, if we set the COLLECT_NAMES environment variable, the problems
8097
# vanish in a puff of smoke.
8098
if test "X${COLLECT_NAMES+set}" != Xset; then
8100
export COLLECT_NAMES
8106
# We use sed instead of cat because bash on DJGPP gets confused if
8107
# if finds mixed CR/LF and LF-only lines. Since sed operates in
8108
# text mode, it properly converts lines to CR/LF. This bash problem
8109
# is reportedly fixed, but why not run on old versions too?
8110
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8112
mv -f "$cfgfile" "$ofile" || \
8113
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8117
# If there is no Makefile yet, we rely on a make rule to execute
8118
# `config.status --recheck' to rerun these tests and create the
8119
# libtool script then.
8120
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8121
if test -f "$ltmain_in"; then
8122
test -f Makefile && make "$ltmain"
8125
])# AC_LIBTOOL_CONFIG
8128
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
8129
# -------------------------------------------
8130
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
8131
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
8133
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4859
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4860
dnl aclocal-1.4 backwards compatibility:
4861
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4864
# _LT_COMPILER_NO_RTTI([TAGNAME])
4865
# -------------------------------
4866
m4_defun([_LT_COMPILER_NO_RTTI],
4867
[m4_require([_LT_TAG_COMPILER])dnl
4869
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8135
4871
if test "$GCC" = yes; then
8136
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4872
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8138
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4874
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
8139
4875
lt_cv_prog_compiler_rtti_exceptions,
8140
4876
[-fno-rtti -fno-exceptions], [],
8141
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4877
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
8143
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
8146
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
8147
# ---------------------------------
8148
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
8149
[AC_REQUIRE([AC_CANONICAL_HOST])
8150
AC_REQUIRE([AC_PROG_NM])
8151
AC_REQUIRE([AC_OBJEXT])
4879
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4880
[Compiler flag to turn off builtin functions])
4881
])# _LT_COMPILER_NO_RTTI
4884
# _LT_CMD_GLOBAL_SYMBOLS
4885
# ----------------------
4886
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4887
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4888
AC_REQUIRE([AC_PROG_CC])dnl
4889
AC_REQUIRE([LT_PATH_NM])dnl
4890
AC_REQUIRE([LT_PATH_LD])dnl
4891
m4_require([_LT_DECL_SED])dnl
4892
m4_require([_LT_DECL_EGREP])dnl
4893
m4_require([_LT_TAG_COMPILER])dnl
8152
4895
# Check for command to grab the raw symbol name followed by C symbol from nm.
8153
4896
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
8154
4897
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
8579
5392
case $cc_basename in
8582
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8583
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5395
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5396
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8587
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5400
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5406
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5407
case $cc_basename in
5409
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5410
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5411
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8594
5416
case $cc_basename in
8596
5418
# NonStop-UX NCC 3.20
8597
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5419
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8608
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5428
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8614
5434
if test "$GCC" = yes; then
8615
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8616
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5435
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5436
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8618
5438
case $host_os in
8620
5440
# All AIX code is PIC.
8621
5441
if test "$host_cpu" = ia64; then
8622
5442
# AIX 5 now supports IA64 processor
8623
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5443
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8628
# FIXME: we need at least 68020 code to build shared libraries, but
8629
# adding the `-m68020' flag to GCC prevents building anything better,
8631
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5450
# see comment about AmigaOS4 .so support
5451
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5454
# FIXME: we need at least 68020 code to build shared libraries, but
5455
# adding the `-m68020' flag to GCC prevents building anything better,
5457
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
8634
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5462
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8635
5463
# PIC is the default for these OSes.
8638
mingw* | pw32* | os2*)
5466
mingw* | cygwin* | pw32* | os2* | cegcc*)
8639
5467
# This hack is so that the source file can tell whether it is being
8640
5468
# built for inclusion in a dll (and should export symbols for example).
8641
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5469
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5470
# (--disable-auto-import) libraries
5471
m4_if([$1], [GCJ], [],
5472
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8644
5475
darwin* | rhapsody*)
8645
5476
# PIC is the default on this platform
8646
5477
# Common symbols not allowed in MH_DYLIB files
8647
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5478
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5482
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5483
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
5484
# sets the default TLS model and affects inlining.
5490
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5496
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5497
# Instead, we relocate shared libraries at runtime.
8651
5501
# Just because we use GCC doesn't mean we suddenly get shared libraries
8652
5502
# on systems that don't support them.
8653
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5503
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8654
5504
enable_shared=no
5508
# QNX uses GNU C++, but need to define -shared option too, otherwise
5510
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
8658
5514
if test -d /usr/nec; then
8659
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5515
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
8664
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8671
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8677
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5520
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8681
5524
# PORTME Check for flag to pass linker flags through the system compiler.
8682
5525
case $host_os in
8684
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5527
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8685
5528
if test "$host_cpu" = ia64; then
8686
5529
# AIX 5 now supports IA64 processor
8687
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5530
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8689
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5532
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
8693
# PIC is the default on this platform
8694
# Common symbols not allowed in MH_DYLIB files
8695
case $cc_basename in
8697
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
8698
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8703
mingw* | pw32* | os2*)
5536
mingw* | cygwin* | pw32* | os2* | cegcc*)
8704
5537
# This hack is so that the source file can tell whether it is being
8705
5538
# built for inclusion in a dll (and should export symbols for example).
8706
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5539
m4_if([$1], [GCJ], [],
5540
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8709
5543
hpux9* | hpux10* | hpux11*)
8710
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5544
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8711
5545
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8712
5546
# not for PA HP-UX.
8714
5548
hppa*64*|ia64*)
8715
5549
# +Z the default
8718
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5552
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8721
5555
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8722
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5556
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
8725
5559
irix5* | irix6* | nonstopux*)
8726
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5560
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8727
5561
# PIC (with -KPIC) is the default.
8728
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8732
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8733
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5562
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5565
linux* | k*bsd*-gnu)
8737
5566
case $cc_basename in
8739
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8740
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8741
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
8743
pgcc* | pgf77* | pgf90*)
5567
# old Intel for x86_64 which still supported -KPIC.
5569
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5570
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5571
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5573
# icc used to be incompatible with GCC.
5574
# ICC 10 doesn't accept -KPIC any more.
5576
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5577
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5578
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5580
# Lahey Fortran 8.1.
5582
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5583
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5584
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5586
pgcc* | pgf77* | pgf90* | pgf95*)
8744
5587
# Portland Group compilers (*not* the Pentium gcc compiler,
8745
5588
# which looks to be a dead project)
8746
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8747
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
8748
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5589
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5590
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5591
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8751
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5594
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8752
5595
# All Alpha code is PIC.
8753
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5596
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5599
# IBM XL C 8.0/Fortran 10.1 on PPC
5600
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5601
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5602
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5605
case `$CC -V 2>&1 | sed 5q` in
5608
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5609
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5610
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5613
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5614
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5615
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5616
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5624
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5625
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5629
# QNX uses GNU C++, but need to define -shared option too, otherwise
5631
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
8758
5634
osf3* | osf4* | osf5*)
8759
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5635
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8760
5636
# All OSF/1 code is PIC.
8761
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5637
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8765
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
8766
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5641
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8770
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8771
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5645
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5646
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8772
5647
case $cc_basename in
8773
5648
f77* | f90* | f95*)
8774
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5649
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
8776
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5651
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
8781
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8782
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8783
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5656
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5657
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5658
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8786
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8787
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8788
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8789
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5661
sysv4 | sysv4.2uw2* | sysv4.3*)
5662
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5663
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5664
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8793
5668
if test -d /usr/nec ;then
8794
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
8795
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5669
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5670
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5674
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5675
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5676
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5677
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8800
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8801
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5681
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5682
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8805
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8806
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5686
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5687
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8810
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5691
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8815
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5697
# For platforms which do not support PIC, -DPIC is meaningless:
5699
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5702
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5705
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5706
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5707
[How to pass a linker flag through the compiler])
8818
5710
# Check to make sure the PIC flag actually works.
8820
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
8821
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
8822
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
8823
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
8824
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5712
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5713
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5714
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5715
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5716
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
8826
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5718
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
8828
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8829
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5720
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5721
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
8832
# For platforms which do not support PIC, -DPIC is meaningless:
8834
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8837
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
8843
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
8844
# ------------------------------------
5723
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5724
[Additional compiler flags for building library objects])
5727
# Check to make sure the static flag actually works.
5729
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5730
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5731
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5732
$lt_tmp_static_flag,
5734
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5735
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5736
[Compiler flag to prevent dynamic linking])
5737
])# _LT_COMPILER_PIC
5740
# _LT_LINKER_SHLIBS([TAGNAME])
5741
# ----------------------------
8845
5742
# See if the linker supports building shared libraries.
8846
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
8847
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8849
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5743
m4_defun([_LT_LINKER_SHLIBS],
5744
[AC_REQUIRE([LT_PATH_LD])dnl
5745
AC_REQUIRE([LT_PATH_NM])dnl
5746
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5747
m4_require([_LT_DECL_EGREP])dnl
5748
m4_require([_LT_DECL_SED])dnl
5749
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5750
m4_require([_LT_TAG_COMPILER])dnl
5751
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5752
m4_if([$1], [CXX], [
5753
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8850
5754
case $host_os in
8852
5756
# If we're using GNU nm, then we don't want the "-C" option.
8853
5757
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8854
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8855
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5758
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5759
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8857
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5761
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8861
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5765
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
8864
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5767
cygwin* | mingw* | cegcc*)
5768
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
8867
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5771
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5774
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8872
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
8873
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8874
_LT_AC_TAGVAR(archive_cmds, $1)=
8875
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
8876
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
8877
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
8878
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
8879
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
8880
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
8881
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8882
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8883
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8884
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8885
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8886
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8887
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
8888
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
8889
_LT_AC_TAGVAR(module_cmds, $1)=
8890
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
8891
_LT_AC_TAGVAR(always_export_symbols, $1)=no
8892
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5777
_LT_TAGVAR(allow_undefined_flag, $1)=
5778
_LT_TAGVAR(always_export_symbols, $1)=no
5779
_LT_TAGVAR(archive_cmds, $1)=
5780
_LT_TAGVAR(archive_expsym_cmds, $1)=
5781
_LT_TAGVAR(compiler_needs_object, $1)=no
5782
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5783
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5784
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5785
_LT_TAGVAR(hardcode_automatic, $1)=no
5786
_LT_TAGVAR(hardcode_direct, $1)=no
5787
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5788
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5789
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5790
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5791
_LT_TAGVAR(hardcode_minus_L, $1)=no
5792
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5793
_LT_TAGVAR(inherit_rpath, $1)=no
5794
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5795
_LT_TAGVAR(module_cmds, $1)=
5796
_LT_TAGVAR(module_expsym_cmds, $1)=
5797
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5798
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5799
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5800
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8893
5801
# include_expsyms should be a list of space-separated symbols to be *always*
8894
5802
# included in the symbol list
8895
_LT_AC_TAGVAR(include_expsyms, $1)=
5803
_LT_TAGVAR(include_expsyms, $1)=
8896
5804
# exclude_expsyms can be an extended regexp of symbols to exclude
8897
5805
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8898
5806
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8899
5807
# as well as any symbol that contains `d'.
8900
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5808
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8901
5809
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8902
5810
# platforms (ab)use it in PIC code, but their linkers get confused if
8903
5811
# the symbol is explicitly referenced. Since portable code cannot
8904
5812
# rely on this symbol name, it's probably fine to never include it in
8905
5813
# preloaded symbol tables.
5814
# Exclude shared library initialization/finalization symbols.
5815
dnl Note also adjust exclude_expsyms for C++ above.
8906
5816
extract_expsyms_cmds=
8907
# Just being paranoid about ensuring that cc_basename is set.
8908
_LT_CC_BASENAME([$compiler])
8909
5818
case $host_os in
8910
cygwin* | mingw* | pw32*)
5819
cygwin* | mingw* | pw32* | cegcc*)
8911
5820
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8912
5821
# When not using gcc, we currently assume that we are using
8913
5822
# Microsoft Visual C++.
9426
6406
irix5* | irix6* | nonstopux*)
9427
6407
if test "$GCC" = yes; then
9428
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6408
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6409
# Try to use the -exported_symbol ld option, if it does not
6410
# work, assume that -exports_file does not work either and
6411
# implicitly export all symbols.
6412
save_LDFLAGS="$LDFLAGS"
6413
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6414
AC_LINK_IFELSE(int foo(void) {},
6415
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6417
LDFLAGS="$save_LDFLAGS"
9430
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9431
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6419
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6420
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9433
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9434
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9435
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6422
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6423
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6424
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6425
_LT_TAGVAR(inherit_rpath, $1)=yes
6426
_LT_TAGVAR(link_all_deplibs, $1)=yes
9439
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9440
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6430
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6431
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9442
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6433
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9444
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9445
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9446
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6435
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6436
_LT_TAGVAR(hardcode_direct, $1)=yes
6437
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9450
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9452
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9453
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9454
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6441
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6442
_LT_TAGVAR(hardcode_direct, $1)=yes
6443
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6444
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6445
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9458
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9459
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9460
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9461
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9462
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9463
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9464
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6452
if test -f /usr/libexec/ld.so; then
6453
_LT_TAGVAR(hardcode_direct, $1)=yes
6454
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6455
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6456
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6457
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6458
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6459
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6460
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6463
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6464
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6465
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6468
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6469
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9467
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
9468
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9469
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9472
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9473
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6474
_LT_TAGVAR(ld_shlibs, $1)=no
9480
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9481
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9482
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
9483
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9484
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6479
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6480
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6481
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6482
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6483
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9488
6487
if test "$GCC" = yes; then
9489
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
9490
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6488
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6489
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9492
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
9493
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6491
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6492
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9495
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9496
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6494
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6495
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6496
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
9499
6499
osf4* | osf5*) # as osf3* with the addition of -msym flag
9500
6500
if test "$GCC" = yes; then
9501
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
9502
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9503
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6501
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6502
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6503
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9505
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
9506
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9507
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9508
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6505
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6506
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6507
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
6508
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9510
6510
# Both c and cxx compiler support -rpath directly
9511
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6511
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9513
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9517
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9519
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9520
runpath_var=LD_RUN_PATH
9521
hardcode_runpath_var=yes
6513
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6514
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
9525
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6518
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
9526
6519
if test "$GCC" = yes; then
9528
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9529
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9530
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6521
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6522
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6523
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9533
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9535
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6525
case `$CC -V 2>&1` in
6528
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6529
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6530
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6534
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6535
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6536
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9537
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9538
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6540
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6541
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9539
6542
case $host_os in
9540
6543
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9542
# The compiler driver will combine linker options so we
9543
# cannot just pass the convience library names through
9544
# without $wl, iff we do not link with $LD.
9545
# Luckily, gcc supports the same syntax we need for Sun Studio.
9546
# Supported since Solaris 2.6 (maybe 2.5.1?)
9549
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
9551
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6545
# The compiler driver will combine and reorder linker options,
6546
# but understands `-z linker_flag'. GCC discards it without `$wl',
6547
# but is careful enough not to reorder.
6548
# Supported since Solaris 2.6 (maybe 2.5.1?)
6549
if test "$GCC" = yes; then
6550
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6552
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
9554
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6556
_LT_TAGVAR(link_all_deplibs, $1)=yes
9558
6560
if test "x$host_vendor" = xsequent; then
9559
6561
# Use $CC to link under sequent, because it throws in some extra .o
9560
6562
# files that make .init and .fini sections work.
9561
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6563
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9563
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6565
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9565
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9566
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9567
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9568
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6567
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6568
_LT_TAGVAR(hardcode_direct, $1)=yes
6569
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6570
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9572
6574
case $host_vendor in
9574
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6576
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6577
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
9578
6580
## LD is ld it makes a PLAMLIB
9579
6581
## CC just makes a GrossModule.
9580
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9581
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
9582
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6582
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6583
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6584
_LT_TAGVAR(hardcode_direct, $1)=no
9585
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6587
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6588
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
9589
6591
runpath_var='LD_RUN_PATH'
9590
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6592
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9594
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9596
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6596
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6597
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6598
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
9600
6602
if test -d /usr/nec; then
9601
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6603
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6604
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9603
6605
runpath_var=LD_RUN_PATH
9604
6606
hardcode_runpath_var=yes
9605
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
9610
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9611
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9612
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
9613
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9614
hardcode_runpath_var=yes
9615
runpath_var=LD_RUN_PATH
9618
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
9619
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
9620
if test "$GCC" = yes; then
9621
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9625
runpath_var='LD_RUN_PATH'
9626
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9630
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
9631
# $CC -shared without GNU ld will not create a library from C++
9632
# object files and a static libstdc++, better avoid it by now
9633
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9635
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9636
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
9637
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9638
runpath_var='LD_RUN_PATH'
6607
_LT_TAGVAR(ld_shlibs, $1)=yes
6611
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6612
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6613
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6614
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6615
runpath_var='LD_RUN_PATH'
6617
if test "$GCC" = yes; then
6618
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6619
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6621
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6622
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6626
sysv5* | sco3.2v5* | sco5v6*)
6627
# Note: We can NOT use -z defs as we might desire, because we do not
6628
# link with -lc, and that would cause any symbols used from libc to
6629
# always be unresolved, which means just about no library would
6630
# ever link correctly. If we're not using GNU ld we use -z text
6631
# though, which does catch some bad symbols but isn't as heavy-handed
6633
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6634
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6635
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6636
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6637
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6638
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6639
_LT_TAGVAR(link_all_deplibs, $1)=yes
6640
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6641
runpath_var='LD_RUN_PATH'
6643
if test "$GCC" = yes; then
6644
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6645
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6647
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6648
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9642
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9644
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6653
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6654
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6655
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9648
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6659
_LT_TAGVAR(ld_shlibs, $1)=no
6663
if test x$host_vendor = xsni; then
6665
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6666
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
9653
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
9654
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
9656
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9657
if test "$GCC" = yes; then
9658
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6672
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6673
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6675
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6677
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6678
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6679
_LT_DECL([], [extract_expsyms_cmds], [2],
6680
[The commands to extract the exported symbol list from a shared archive])
9662
6683
# Do we need to explicitly link libc?
9664
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6685
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
9666
6687
# Assume -lc should be added
9667
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6688
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9669
6690
if test "$enable_shared" = yes && test "$GCC" = yes; then
9670
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6691
case $_LT_TAGVAR(archive_cmds, $1) in
9672
6693
# FIXME: we may have to deal with multi-command sequences.
9676
6697
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9677
6698
# to ld, don't add -lc before -lgcc.
9678
6699
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
9680
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6701
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9682
6703
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
9683
6704
soname=conftest
9685
6706
libobjs=conftest.$ac_objext
9687
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6708
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6709
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
9688
6710
compiler_flags=-v
9689
6711
linker_flags=-v
9691
6713
output_objdir=.
9692
6714
libname=conftest
9693
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
9694
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
9695
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6715
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6716
_LT_TAGVAR(allow_undefined_flag, $1)=
6717
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
9697
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6719
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9699
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6721
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9701
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6723
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
9703
6725
cat conftest.err 1>&5
9706
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6728
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
9712
])# AC_LIBTOOL_PROG_LD_SHLIBS
9715
# _LT_AC_FILE_LTDLL_C
9716
# -------------------
9717
# Be careful that the start marker always follows a newline.
9718
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
9719
# /* ltdll.c starts here */
9720
# #define WIN32_LEAN_AND_MEAN
9721
# #include <windows.h>
9722
# #undef WIN32_LEAN_AND_MEAN
9723
# #include <stdio.h>
9725
# #ifndef __CYGWIN__
9726
# # ifdef __CYGWIN32__
9727
# # define __CYGWIN__ __CYGWIN32__
9731
# #ifdef __cplusplus
9734
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9735
# #ifdef __cplusplus
9740
# #include <cygwin/cygwin_dll.h>
9741
# DECLARE_CYGWIN_DLL( DllMain );
9743
# HINSTANCE __hDllInstance_base;
9746
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9748
# __hDllInstance_base = hInst;
9751
# /* ltdll.c ends here */
9752
])# _LT_AC_FILE_LTDLL_C
9755
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6735
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6736
[Whether or not to add -lc for building shared libraries])
6737
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6738
[enable_shared_with_static_runtimes], [0],
6739
[Whether or not to disallow shared libs when runtime libs are static])
6740
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6741
[Compiler flag to allow reflexive dlopens])
6742
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6743
[Compiler flag to generate shared objects directly from archives])
6744
_LT_TAGDECL([], [compiler_needs_object], [1],
6745
[Whether the compiler copes with passing no objects directly])
6746
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6747
[Create an old-style archive from a shared archive])
6748
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6749
[Create a temporary old-style archive to link instead of a shared archive])
6750
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6751
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6752
_LT_TAGDECL([], [module_cmds], [2],
6753
[Commands used to build a loadable module if different from building
6755
_LT_TAGDECL([], [module_expsym_cmds], [2])
6756
_LT_TAGDECL([], [with_gnu_ld], [1],
6757
[Whether we are building with GNU ld or not])
6758
_LT_TAGDECL([], [allow_undefined_flag], [1],
6759
[Flag that allows shared libraries with undefined symbols to be built])
6760
_LT_TAGDECL([], [no_undefined_flag], [1],
6761
[Flag that enforces no undefined symbols])
6762
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6763
[Flag to hardcode $libdir into a binary during linking.
6764
This must work even if $libdir does not exist])
6765
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6766
[[If ld is used when linking, flag to hardcode $libdir into a binary
6767
during linking. This must work even if $libdir does not exist]])
6768
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6769
[Whether we need a single "-rpath" flag with a separated argument])
6770
_LT_TAGDECL([], [hardcode_direct], [0],
6771
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6772
DIR into the resulting binary])
6773
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6774
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6775
DIR into the resulting binary and the resulting library dependency is
6776
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6777
library is relocated])
6778
_LT_TAGDECL([], [hardcode_minus_L], [0],
6779
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6780
into the resulting binary])
6781
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6782
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6783
into the resulting binary])
6784
_LT_TAGDECL([], [hardcode_automatic], [0],
6785
[Set to "yes" if building a shared library automatically hardcodes DIR
6786
into the library and all subsequent libraries and executables linked
6788
_LT_TAGDECL([], [inherit_rpath], [0],
6789
[Set to yes if linker adds runtime paths of dependent libraries
6790
to runtime path list])
6791
_LT_TAGDECL([], [link_all_deplibs], [0],
6792
[Whether libtool must link a program against all its dependency libraries])
6793
_LT_TAGDECL([], [fix_srcfile_path], [1],
6794
[Fix the shell variable $srcfile for the compiler])
6795
_LT_TAGDECL([], [always_export_symbols], [0],
6796
[Set to "yes" if exported symbols are required])
6797
_LT_TAGDECL([], [export_symbols_cmds], [2],
6798
[The commands to list exported symbols])
6799
_LT_TAGDECL([], [exclude_expsyms], [1],
6800
[Symbols that should not be listed in the preloaded symbols])
6801
_LT_TAGDECL([], [include_expsyms], [1],
6802
[Symbols that must always be exported])
6803
_LT_TAGDECL([], [prelink_cmds], [2],
6804
[Commands necessary for linking programs (against libraries) with templates])
6805
_LT_TAGDECL([], [file_list_spec], [1],
6806
[Specify filename containing input files])
6807
dnl FIXME: Not yet implemented
6808
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6809
dnl [Compiler flag to generate thread safe objects])
6810
])# _LT_LINKER_SHLIBS
6813
# _LT_LANG_C_CONFIG([TAG])
6814
# ------------------------
6815
# Ensure that the configuration variables for a C compiler are suitably
6816
# defined. These variables are subsequently used by _LT_CONFIG to write
6817
# the compiler configuration to `libtool'.
6818
m4_defun([_LT_LANG_C_CONFIG],
6819
[m4_require([_LT_DECL_EGREP])dnl
6823
# Source file extension for C test sources.
6826
# Object file extension for compiled C test sources.
6828
_LT_TAGVAR(objext, $1)=$objext
6830
# Code to be used in simple compile tests
6831
lt_simple_compile_test_code="int some_variable = 0;"
6833
# Code to be used in simple link tests
6834
lt_simple_link_test_code='int main(){return(0);}'
6837
# Save the default compiler, since it gets overwritten when the other
6838
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6839
compiler_DEFAULT=$CC
6841
# save warnings/boilerplate of simple test code
6842
_LT_COMPILER_BOILERPLATE
6843
_LT_LINKER_BOILERPLATE
6845
if test -n "$compiler"; then
6846
_LT_COMPILER_NO_RTTI($1)
6847
_LT_COMPILER_PIC($1)
6848
_LT_COMPILER_C_O($1)
6849
_LT_COMPILER_FILE_LOCKS($1)
6850
_LT_LINKER_SHLIBS($1)
6851
_LT_SYS_DYNAMIC_LINKER($1)
6852
_LT_LINKER_HARDCODE_LIBPATH($1)
6856
# Report which library types will actually be built
6857
AC_MSG_CHECKING([if libtool supports shared libraries])
6858
AC_MSG_RESULT([$can_build_shared])
6860
AC_MSG_CHECKING([whether to build shared libraries])
6861
test "$can_build_shared" = "no" && enable_shared=no
6863
# On AIX, shared libraries and static libraries use the same namespace, and
6864
# are all built from PIC.
6867
test "$enable_shared" = yes && enable_static=no
6868
if test -n "$RANLIB"; then
6869
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6870
postinstall_cmds='$RANLIB $lib'
6875
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6876
test "$enable_shared" = yes && enable_static=no
6880
AC_MSG_RESULT([$enable_shared])
6882
AC_MSG_CHECKING([whether to build static libraries])
6883
# Make sure either enable_shared or enable_static is yes.
6884
test "$enable_shared" = yes || enable_static=yes
6885
AC_MSG_RESULT([$enable_static])
6891
])# _LT_LANG_C_CONFIG
6896
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6897
# compiler, we have our own version here.
6898
m4_defun([_LT_PROG_CXX],
6900
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6902
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6903
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6904
(test "X$CXX" != "Xg++"))) ; then
6907
_lt_caught_CXX_error=yes
6909
popdef([AC_MSG_ERROR])
6912
dnl aclocal-1.4 backwards compatibility:
6913
dnl AC_DEFUN([_LT_PROG_CXX], [])
6916
# _LT_LANG_CXX_CONFIG([TAG])
6917
# --------------------------
6918
# Ensure that the configuration variables for a C++ compiler are suitably
6919
# defined. These variables are subsequently used by _LT_CONFIG to write
6920
# the compiler configuration to `libtool'.
6921
m4_defun([_LT_LANG_CXX_CONFIG],
6922
[AC_REQUIRE([_LT_PROG_CXX])dnl
6923
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6924
m4_require([_LT_DECL_EGREP])dnl
6927
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6928
_LT_TAGVAR(allow_undefined_flag, $1)=
6929
_LT_TAGVAR(always_export_symbols, $1)=no
6930
_LT_TAGVAR(archive_expsym_cmds, $1)=
6931
_LT_TAGVAR(compiler_needs_object, $1)=no
6932
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6933
_LT_TAGVAR(hardcode_direct, $1)=no
6934
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6935
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6936
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6937
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6938
_LT_TAGVAR(hardcode_minus_L, $1)=no
6939
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6940
_LT_TAGVAR(hardcode_automatic, $1)=no
6941
_LT_TAGVAR(inherit_rpath, $1)=no
6942
_LT_TAGVAR(module_cmds, $1)=
6943
_LT_TAGVAR(module_expsym_cmds, $1)=
6944
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6945
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6946
_LT_TAGVAR(no_undefined_flag, $1)=
6947
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6948
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6950
# Source file extension for C++ test sources.
6953
# Object file extension for compiled C++ test sources.
6955
_LT_TAGVAR(objext, $1)=$objext
6957
# No sense in running all these tests if we already determined that
6958
# the CXX compiler isn't working. Some variables (like enable_shared)
6959
# are currently assumed to apply to all compilers on this platform,
6960
# and will be corrupted by setting them based on a non-working compiler.
6961
if test "$_lt_caught_CXX_error" != yes; then
6962
# Code to be used in simple compile tests
6963
lt_simple_compile_test_code="int some_variable = 0;"
6965
# Code to be used in simple link tests
6966
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6968
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6971
# save warnings/boilerplate of simple test code
6972
_LT_COMPILER_BOILERPLATE
6973
_LT_LINKER_BOILERPLATE
6975
# Allow CC to be a program name with arguments.
6980
lt_save_with_gnu_ld=$with_gnu_ld
6981
lt_save_path_LD=$lt_cv_path_LD
6982
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6983
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6985
$as_unset lt_cv_prog_gnu_ld
6987
if test -n "${lt_cv_path_LDCXX+set}"; then
6988
lt_cv_path_LD=$lt_cv_path_LDCXX
6990
$as_unset lt_cv_path_LD
6992
test -z "${LDCXX+set}" || LD=$LDCXX
6995
_LT_TAGVAR(compiler, $1)=$CC
6996
_LT_CC_BASENAME([$compiler])
6998
if test -n "$compiler"; then
6999
# We don't want -fno-exception when compiling C++ code, so set the
7000
# no_builtin_flag separately
7001
if test "$GXX" = yes; then
7002
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7004
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7007
if test "$GXX" = yes; then
7008
# Set up default GNU C++ configuration
7012
# Check if GNU C++ uses GNU ld as the underlying linker, since the
7013
# archiving commands below assume that GNU ld is being used.
7014
if test "$with_gnu_ld" = yes; then
7015
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7016
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7018
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7019
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7021
# If archive_cmds runs LD, not CC, wlarc should be empty
7022
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7023
# investigate it a little bit more. (MM)
7026
# ancient GNU ld didn't support --whole-archive et. al.
7027
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
7028
$GREP 'no-whole-archive' > /dev/null; then
7029
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7031
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7037
# A generic and very simple default shared library creation
7038
# command for GNU C++ for the case where it uses the native
7039
# linker, instead of GNU ld. If possible, this setting should
7040
# overridden to take advantage of the native linker features on
7041
# the platform it is being used on.
7042
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7045
# Commands to make compiler produce verbose output that lists
7046
# what "hidden" libraries, object files and flags are used when
7047
# linking a shared library.
7048
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7056
# PORTME: fill in a description of your system's C++ link characteristics
7057
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7058
_LT_TAGVAR(ld_shlibs, $1)=yes
7061
# FIXME: insert proper C++ library support
7062
_LT_TAGVAR(ld_shlibs, $1)=no
7065
if test "$host_cpu" = ia64; then
7066
# On IA64, the linker does run time linking by default, so we don't
7067
# have to do anything special.
7068
aix_use_runtimelinking=no
7069
exp_sym_flag='-Bexport'
7072
aix_use_runtimelinking=no
7074
# Test if we are trying to use run time linking or normal
7075
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7076
# need to do runtime linking.
7077
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7078
for ld_flag in $LDFLAGS; do
7081
aix_use_runtimelinking=yes
7089
exp_sym_flag='-bexport'
7090
no_entry_flag='-bnoentry'
7093
# When large executables or shared objects are built, AIX ld can
7094
# have problems creating the table of contents. If linking a library
7095
# or program results in "error TOC overflow" add -mminimal-toc to
7096
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7097
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7099
_LT_TAGVAR(archive_cmds, $1)=''
7100
_LT_TAGVAR(hardcode_direct, $1)=yes
7101
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7102
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7103
_LT_TAGVAR(link_all_deplibs, $1)=yes
7104
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7106
if test "$GXX" = yes; then
7107
case $host_os in aix4.[[012]]|aix4.[[012]].*)
7108
# We only want to do this on AIX 4.2 and lower, the check
7109
# below for broken collect2 doesn't work under 4.3+
7110
collect2name=`${CC} -print-prog-name=collect2`
7111
if test -f "$collect2name" &&
7112
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7114
# We have reworked collect2
7117
# We have old collect2
7118
_LT_TAGVAR(hardcode_direct, $1)=unsupported
7119
# It fails to find uninstalled libraries when the uninstalled
7120
# path is not listed in the libpath. Setting hardcode_minus_L
7121
# to unsupported forces relinking
7122
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7123
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7124
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7127
shared_flag='-shared'
7128
if test "$aix_use_runtimelinking" = yes; then
7129
shared_flag="$shared_flag "'${wl}-G'
7133
if test "$host_cpu" = ia64; then
7134
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7135
# chokes on -Wl,-G. The following line is correct:
7138
if test "$aix_use_runtimelinking" = yes; then
7139
shared_flag='${wl}-G'
7141
shared_flag='${wl}-bM:SRE'
7146
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7147
# It seems that -bexpall does not export symbols beginning with
7148
# underscore (_), so it is better to generate a list of symbols to
7150
_LT_TAGVAR(always_export_symbols, $1)=yes
7151
if test "$aix_use_runtimelinking" = yes; then
7152
# Warning - without using the other runtime loading flags (-brtl),
7153
# -berok will link without error, but may produce a broken library.
7154
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7155
# Determine the default libpath from the value encoded in an empty
7157
_LT_SYS_MODULE_PATH_AIX
7158
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7160
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7162
if test "$host_cpu" = ia64; then
7163
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7164
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7165
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7167
# Determine the default libpath from the value encoded in an
7169
_LT_SYS_MODULE_PATH_AIX
7170
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7171
# Warning - without using the other run time loading flags,
7172
# -berok will link without error, but may produce a broken library.
7173
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7174
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7175
# Exported symbols can be pulled into shared objects from archives
7176
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7177
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7178
# This is similar to how AIX traditionally builds its shared
7180
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7186
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7187
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7188
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7189
# support --undefined. This deserves some investigation. FIXME
7190
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7192
_LT_TAGVAR(ld_shlibs, $1)=no
7197
case $cc_basename in
7199
# FIXME: insert proper C++ library support
7200
_LT_TAGVAR(ld_shlibs, $1)=no
7205
cygwin* | mingw* | pw32* | cegcc*)
7206
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7207
# as there is no search path for DLLs.
7208
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7209
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7210
_LT_TAGVAR(always_export_symbols, $1)=no
7211
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7213
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7214
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7215
# If the export-symbols file already is a .def file (1st line
7216
# is EXPORTS), use it as is; otherwise, prepend...
7217
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7218
cp $export_symbols $output_objdir/$soname.def;
7220
echo EXPORTS > $output_objdir/$soname.def;
7221
cat $export_symbols >> $output_objdir/$soname.def;
7223
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7225
_LT_TAGVAR(ld_shlibs, $1)=no
7228
darwin* | rhapsody*)
7229
_LT_DARWIN_LINKER_FEATURES($1)
7233
case $cc_basename in
7235
# FIXME: insert proper C++ library support
7236
_LT_TAGVAR(ld_shlibs, $1)=no
7239
# Green Hills C++ Compiler
7240
# FIXME: insert proper C++ library support
7241
_LT_TAGVAR(ld_shlibs, $1)=no
7244
# FIXME: insert proper C++ library support
7245
_LT_TAGVAR(ld_shlibs, $1)=no
7251
# C++ shared libraries reported to be fairly broken before
7253
_LT_TAGVAR(ld_shlibs, $1)=no
7257
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7260
freebsd* | dragonfly*)
7261
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7263
_LT_TAGVAR(ld_shlibs, $1)=yes
7270
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7271
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7272
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7273
_LT_TAGVAR(hardcode_direct, $1)=yes
7274
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7275
# but as the default
7276
# location of the library.
7278
case $cc_basename in
7280
# FIXME: insert proper C++ library support
7281
_LT_TAGVAR(ld_shlibs, $1)=no
7284
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7285
# Commands to make compiler produce verbose output that lists
7286
# what "hidden" libraries, object files and flags are used when
7287
# linking a shared library.
7289
# There doesn't appear to be a way to prevent this compiler from
7290
# explicitly linking system object files so we need to strip them
7291
# from the output so that they don't get included in the library
7293
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7296
if test "$GXX" = yes; then
7297
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7299
# FIXME: insert proper C++ library support
7300
_LT_TAGVAR(ld_shlibs, $1)=no
7307
if test $with_gnu_ld = no; then
7308
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7309
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7315
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7321
_LT_TAGVAR(hardcode_direct, $1)=no
7322
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7325
_LT_TAGVAR(hardcode_direct, $1)=yes
7326
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7327
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7328
# but as the default
7329
# location of the library.
7333
case $cc_basename in
7335
# FIXME: insert proper C++ library support
7336
_LT_TAGVAR(ld_shlibs, $1)=no
7341
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7344
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7347
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7350
# Commands to make compiler produce verbose output that lists
7351
# what "hidden" libraries, object files and flags are used when
7352
# linking a shared library.
7354
# There doesn't appear to be a way to prevent this compiler from
7355
# explicitly linking system object files so we need to strip them
7356
# from the output so that they don't get included in the library
7358
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7361
if test "$GXX" = yes; then
7362
if test $with_gnu_ld = no; then
7365
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7368
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7371
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7376
# FIXME: insert proper C++ library support
7377
_LT_TAGVAR(ld_shlibs, $1)=no
7384
_LT_TAGVAR(hardcode_direct, $1)=no
7385
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7386
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7387
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7388
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7389
# Instead, shared libraries are loaded at an image base (0x10000000 by
7390
# default) and relocated if they conflict, which is a slow very memory
7391
# consuming and fragmenting process. To avoid this, we pick a random,
7392
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7393
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7394
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7395
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7398
case $cc_basename in
7401
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7403
# Archives containing C++ object files must be created using
7404
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
7405
# necessary to make sure instantiated templates are included
7407
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7410
if test "$GXX" = yes; then
7411
if test "$with_gnu_ld" = no; then
7412
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7414
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
7417
_LT_TAGVAR(link_all_deplibs, $1)=yes
7420
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7421
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7422
_LT_TAGVAR(inherit_rpath, $1)=yes
7425
linux* | k*bsd*-gnu)
7426
case $cc_basename in
7428
# Kuck and Associates, Inc. (KAI) C++ Compiler
7430
# KCC will only create a shared library if the output file
7431
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7432
# to its proper name (with version) after linking.
7433
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7434
_LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
7435
# Commands to make compiler produce verbose output that lists
7436
# what "hidden" libraries, object files and flags are used when
7437
# linking a shared library.
7439
# There doesn't appear to be a way to prevent this compiler from
7440
# explicitly linking system object files so we need to strip them
7441
# from the output so that they don't get included in the library
7443
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7445
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7446
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7448
# Archives containing C++ object files must be created using
7449
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
7450
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7455
# version 8.0 and above of icpc choke on multiply defined symbols
7456
# if we add $predep_objects and $postdep_objects, however 7.1 and
7457
# earlier do not add the objects themselves.
7458
case `$CC -V 2>&1` in
7460
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7461
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7463
*) # Version 8.0 or newer
7466
ia64*) tmp_idyn=' -i_dynamic';;
7468
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7472
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7473
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7474
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7475
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7478
# Portland Group C++ compiler
7480
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
7481
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7483
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7484
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
7485
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7487
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7488
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
7490
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7492
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7493
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7494
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7496
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7497
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7499
*) # Version 6 will use weak symbols
7500
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7501
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7505
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7506
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7507
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7511
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7512
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7514
runpath_var=LD_RUN_PATH
7515
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7516
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7518
# Commands to make compiler produce verbose output that lists
7519
# what "hidden" libraries, object files and flags are used when
7520
# linking a shared library.
7522
# There doesn't appear to be a way to prevent this compiler from
7523
# explicitly linking system object files so we need to strip them
7524
# from the output so that they don't get included in the library
7526
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7529
# IBM XL 8.0 on PPC, with GNU ld
7530
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7531
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7532
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7533
if test "x$supports_anon_versioning" = xyes; then
7534
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7535
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7536
echo "local: *; };" >> $output_objdir/$libname.ver~
7537
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7541
case `$CC -V 2>&1 | sed 5q` in
7544
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7545
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7546
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
7547
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7548
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7549
_LT_TAGVAR(compiler_needs_object, $1)=yes
7551
# Not sure whether something based on
7552
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7554
output_verbose_link_cmd='echo'
7556
# Archives containing C++ object files must be created using
7557
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7558
# necessary to make sure instantiated templates are included
7560
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7568
# FIXME: insert proper C++ library support
7569
_LT_TAGVAR(ld_shlibs, $1)=no
7573
# FIXME: insert proper C++ library support
7574
_LT_TAGVAR(ld_shlibs, $1)=no
7578
case $cc_basename in
7580
# FIXME: insert proper C++ library support
7581
_LT_TAGVAR(ld_shlibs, $1)=no
7584
# FIXME: insert proper C++ library support
7585
_LT_TAGVAR(ld_shlibs, $1)=no
7591
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7592
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7594
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7595
_LT_TAGVAR(hardcode_direct, $1)=yes
7596
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7598
# Workaround some broken pre-1.5 toolchains
7599
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7603
_LT_TAGVAR(ld_shlibs, $1)=yes
7607
# C++ shared libraries are fairly broken
7608
_LT_TAGVAR(ld_shlibs, $1)=no
7612
if test -f /usr/libexec/ld.so; then
7613
_LT_TAGVAR(hardcode_direct, $1)=yes
7614
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7615
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7616
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7617
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7618
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7619
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
7620
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7621
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7623
output_verbose_link_cmd=echo
7625
_LT_TAGVAR(ld_shlibs, $1)=no
7629
osf3* | osf4* | osf5*)
7630
case $cc_basename in
7632
# Kuck and Associates, Inc. (KAI) C++ Compiler
7634
# KCC will only create a shared library if the output file
7635
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7636
# to its proper name (with version) after linking.
7637
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7639
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7640
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7642
# Archives containing C++ object files must be created using
7643
# the KAI C++ compiler.
7645
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7646
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7650
# Rational C++ 2.4.1
7651
# FIXME: insert proper C++ library support
7652
_LT_TAGVAR(ld_shlibs, $1)=no
7657
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7658
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7659
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7662
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7663
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7664
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7665
echo "-hidden">> $lib.exp~
7666
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
7668
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7672
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7674
# Commands to make compiler produce verbose output that lists
7675
# what "hidden" libraries, object files and flags are used when
7676
# linking a shared library.
7678
# There doesn't appear to be a way to prevent this compiler from
7679
# explicitly linking system object files so we need to strip them
7680
# from the output so that they don't get included in the library
7682
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7685
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7686
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7689
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7692
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7696
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7697
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7699
# Commands to make compiler produce verbose output that lists
7700
# what "hidden" libraries, object files and flags are used when
7701
# linking a shared library.
7702
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7705
# FIXME: insert proper C++ library support
7706
_LT_TAGVAR(ld_shlibs, $1)=no
7713
# FIXME: insert proper C++ library support
7714
_LT_TAGVAR(ld_shlibs, $1)=no
7718
case $cc_basename in
7721
# FIXME: insert proper C++ library support
7722
_LT_TAGVAR(ld_shlibs, $1)=no
7726
# FIXME: insert proper C++ library support
7727
_LT_TAGVAR(ld_shlibs, $1)=no
7730
# FIXME: insert proper C++ library support
7731
_LT_TAGVAR(ld_shlibs, $1)=no
7737
case $cc_basename in
7739
# Sun C++ 4.2, 5.x and Centerline C++
7740
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7741
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7742
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7743
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7744
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7746
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7747
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7749
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7751
# The compiler driver will combine and reorder linker options,
7752
# but understands `-z linker_flag'.
7753
# Supported since Solaris 2.6 (maybe 2.5.1?)
7754
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7757
_LT_TAGVAR(link_all_deplibs, $1)=yes
7759
output_verbose_link_cmd='echo'
7761
# Archives containing C++ object files must be created using
7762
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7763
# necessary to make sure instantiated templates are included
7765
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7768
# Green Hills C++ Compiler
7769
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7771
# The C++ compiler must be used to create the archive.
7772
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7775
# GNU C++ compiler with Solaris linker
7776
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7777
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7778
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7779
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7780
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7781
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7783
# Commands to make compiler produce verbose output that lists
7784
# what "hidden" libraries, object files and flags are used when
7785
# linking a shared library.
7786
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7788
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7790
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7791
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7792
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7794
# Commands to make compiler produce verbose output that lists
7795
# what "hidden" libraries, object files and flags are used when
7796
# linking a shared library.
7797
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7800
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7802
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7804
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7812
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7813
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7814
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7815
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7816
runpath_var='LD_RUN_PATH'
7818
case $cc_basename in
7820
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7821
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7824
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7825
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7830
sysv5* | sco3.2v5* | sco5v6*)
7831
# Note: We can NOT use -z defs as we might desire, because we do not
7832
# link with -lc, and that would cause any symbols used from libc to
7833
# always be unresolved, which means just about no library would
7834
# ever link correctly. If we're not using GNU ld we use -z text
7835
# though, which does catch some bad symbols but isn't as heavy-handed
7837
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7838
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7839
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7840
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7841
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7842
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7843
_LT_TAGVAR(link_all_deplibs, $1)=yes
7844
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7845
runpath_var='LD_RUN_PATH'
7847
case $cc_basename in
7849
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7850
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7853
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7854
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7860
case $cc_basename in
7862
# NonStop-UX NCC 3.20
7863
# FIXME: insert proper C++ library support
7864
_LT_TAGVAR(ld_shlibs, $1)=no
7867
# FIXME: insert proper C++ library support
7868
_LT_TAGVAR(ld_shlibs, $1)=no
7874
# FIXME: insert proper C++ library support
7875
_LT_TAGVAR(ld_shlibs, $1)=no
7879
# FIXME: insert proper C++ library support
7880
_LT_TAGVAR(ld_shlibs, $1)=no
7884
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7885
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7887
_LT_TAGVAR(GCC, $1)="$GXX"
7888
_LT_TAGVAR(LD, $1)="$LD"
7891
## There is no encapsulation within the following macros, do not change
7892
## the running order or otherwise move them around unless you know exactly
7893
## what you are doing...
7894
_LT_SYS_HIDDEN_LIBDEPS($1)
7895
_LT_COMPILER_PIC($1)
7896
_LT_COMPILER_C_O($1)
7897
_LT_COMPILER_FILE_LOCKS($1)
7898
_LT_LINKER_SHLIBS($1)
7899
_LT_SYS_DYNAMIC_LINKER($1)
7900
_LT_LINKER_HARDCODE_LIBPATH($1)
7903
fi # test -n "$compiler"
7909
with_gnu_ld=$lt_save_with_gnu_ld
7910
lt_cv_path_LDCXX=$lt_cv_path_LD
7911
lt_cv_path_LD=$lt_save_path_LD
7912
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7913
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7914
fi # test "$_lt_caught_CXX_error" != yes
7917
])# _LT_LANG_CXX_CONFIG
7920
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
9756
7921
# ---------------------------------
9757
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
9761
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
9762
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9763
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9764
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9765
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9766
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
9767
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
9769
# This is just to silence aclocal about the macro not being used
9770
ifelse([AC_DISABLE_FAST_INSTALL])
9772
AC_DEFUN([LT_AC_PROG_GCJ],
9773
[AC_CHECK_TOOL(GCJ, gcj, no)
9774
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9778
AC_DEFUN([LT_AC_PROG_RC],
9779
[AC_CHECK_TOOL(RC, windres, no)
7922
# Figure out "hidden" library dependencies from verbose
7923
# compiler output when linking a shared library.
7924
# Parse the compiler output and extract the necessary
7925
# objects, libraries and library flags.
7926
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7927
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7928
# Dependencies to place before and after the object being linked:
7929
_LT_TAGVAR(predep_objects, $1)=
7930
_LT_TAGVAR(postdep_objects, $1)=
7931
_LT_TAGVAR(predeps, $1)=
7932
_LT_TAGVAR(postdeps, $1)=
7933
_LT_TAGVAR(compiler_lib_search_path, $1)=
7935
dnl we can't use the lt_simple_compile_test_code here,
7936
dnl because it contains code intended for an executable,
7937
dnl not a library. It's possible we should let each
7938
dnl tag define a new lt_????_link_test_code variable,
7939
dnl but it's only used here...
7940
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7942
void foo (void) { a = 0; }
7944
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7948
Foo (void) { a = 0; }
7953
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7961
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7969
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7972
public void bar (void) {
7978
dnl Parse the compiler output and extract the necessary
7979
dnl objects, libraries and library flags.
7980
if AC_TRY_EVAL(ac_compile); then
7981
# Parse the compiler output and extract the necessary
7982
# objects, libraries and library flags.
7984
# Sentinel used to keep track of whether or not we are before
7985
# the conftest object file.
7986
pre_test_object_deps_done=no
7988
for p in `eval "$output_verbose_link_cmd"`; do
7992
# Some compilers place space between "-{L,R}" and the path.
7994
if test $p = "-L" ||
7995
test $p = "-R"; then
8002
if test "$pre_test_object_deps_done" = no; then
8005
# Internal compiler library paths should come after those
8006
# provided the user. The postdeps already come after the
8007
# user supplied libs so there is no need to process them.
8008
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
8009
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8011
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8014
# The "-l" case would never come before the object being
8015
# linked, so don't bother handling this case.
8018
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8019
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
8021
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8027
# This assumes that the test object file only shows up
8028
# once in the compiler output.
8029
if test "$p" = "conftest.$objext"; then
8030
pre_test_object_deps_done=yes
8034
if test "$pre_test_object_deps_done" = no; then
8035
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8036
_LT_TAGVAR(predep_objects, $1)="$p"
8038
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8041
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8042
_LT_TAGVAR(postdep_objects, $1)="$p"
8044
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8049
*) ;; # Ignore the rest.
8057
echo "libtool.m4: error: problem compiling $1 test program"
8060
$RM -f confest.$objext
8062
# PORTME: override above test on systems where it is broken
8066
# Interix 3.5 installs completely hosed .la files for C++, so rather than
8067
# hack all around it, let's just trust "g++" to DTRT.
8068
_LT_TAGVAR(predep_objects,$1)=
8069
_LT_TAGVAR(postdep_objects,$1)=
8070
_LT_TAGVAR(postdeps,$1)=
8074
case `$CC -V 2>&1 | sed 5q` in
8078
# The more standards-conforming stlport4 library is
8079
# incompatible with the Cstd library. Avoid specifying
8080
# it if it's in CXXFLAGS. Ignore libCrun as
8081
# -library=stlport4 depends on it.
8082
case " $CXX $CXXFLAGS " in
8083
*" -library=stlport4 "*)
8084
solaris_use_stlport4=yes
8088
if test "$solaris_use_stlport4" != yes; then
8089
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8096
case $cc_basename in
8098
# The more standards-conforming stlport4 library is
8099
# incompatible with the Cstd library. Avoid specifying
8100
# it if it's in CXXFLAGS. Ignore libCrun as
8101
# -library=stlport4 depends on it.
8102
case " $CXX $CXXFLAGS " in
8103
*" -library=stlport4 "*)
8104
solaris_use_stlport4=yes
8108
# Adding this requires a known-good setup of shared libraries for
8109
# Sun compiler versions before 5.6, else PIC objects from an old
8110
# archive will be linked into the output, leading to subtle bugs.
8111
if test "$solaris_use_stlport4" != yes; then
8112
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8120
case " $_LT_TAGVAR(postdeps, $1) " in
8121
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8123
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
8124
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8125
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
8127
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8128
[The directories searched by this compiler when creating a shared library])
8129
_LT_TAGDECL([], [predep_objects], [1],
8130
[Dependencies to place before and after the objects being linked to
8131
create a shared library])
8132
_LT_TAGDECL([], [postdep_objects], [1])
8133
_LT_TAGDECL([], [predeps], [1])
8134
_LT_TAGDECL([], [postdeps], [1])
8135
_LT_TAGDECL([], [compiler_lib_search_path], [1],
8136
[The library search path used internally by the compiler when linking
8138
])# _LT_SYS_HIDDEN_LIBDEPS
8143
# Since AC_PROG_F77 is broken, in that it returns the empty string
8144
# if there is no fortran compiler, we have our own version here.
8145
m4_defun([_LT_PROG_F77],
8147
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
8149
if test -z "$F77" || test "X$F77" = "Xno"; then
8152
popdef([AC_MSG_ERROR])
8155
dnl aclocal-1.4 backwards compatibility:
8156
dnl AC_DEFUN([_LT_PROG_F77], [])
8159
# _LT_LANG_F77_CONFIG([TAG])
8160
# --------------------------
8161
# Ensure that the configuration variables for a Fortran 77 compiler are
8162
# suitably defined. These variables are subsequently used by _LT_CONFIG
8163
# to write the compiler configuration to `libtool'.
8164
m4_defun([_LT_LANG_F77_CONFIG],
8165
[AC_REQUIRE([_LT_PROG_F77])dnl
8166
AC_LANG_PUSH(Fortran 77)
8168
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8169
_LT_TAGVAR(allow_undefined_flag, $1)=
8170
_LT_TAGVAR(always_export_symbols, $1)=no
8171
_LT_TAGVAR(archive_expsym_cmds, $1)=
8172
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8173
_LT_TAGVAR(hardcode_direct, $1)=no
8174
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8175
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8176
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8177
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8178
_LT_TAGVAR(hardcode_minus_L, $1)=no
8179
_LT_TAGVAR(hardcode_automatic, $1)=no
8180
_LT_TAGVAR(inherit_rpath, $1)=no
8181
_LT_TAGVAR(module_cmds, $1)=
8182
_LT_TAGVAR(module_expsym_cmds, $1)=
8183
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8184
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8185
_LT_TAGVAR(no_undefined_flag, $1)=
8186
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8187
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8189
# Source file extension for f77 test sources.
8192
# Object file extension for compiled f77 test sources.
8194
_LT_TAGVAR(objext, $1)=$objext
8196
# No sense in running all these tests if we already determined that
8197
# the F77 compiler isn't working. Some variables (like enable_shared)
8198
# are currently assumed to apply to all compilers on this platform,
8199
# and will be corrupted by setting them based on a non-working compiler.
8200
if test "$_lt_disable_F77" != yes; then
8201
# Code to be used in simple compile tests
8202
lt_simple_compile_test_code="\
8208
# Code to be used in simple link tests
8209
lt_simple_link_test_code="\
8214
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8217
# save warnings/boilerplate of simple test code
8218
_LT_COMPILER_BOILERPLATE
8219
_LT_LINKER_BOILERPLATE
8221
# Allow CC to be a program name with arguments.
8226
_LT_TAGVAR(compiler, $1)=$CC
8227
_LT_CC_BASENAME([$compiler])
8229
if test -n "$compiler"; then
8230
AC_MSG_CHECKING([if libtool supports shared libraries])
8231
AC_MSG_RESULT([$can_build_shared])
8233
AC_MSG_CHECKING([whether to build shared libraries])
8234
test "$can_build_shared" = "no" && enable_shared=no
8236
# On AIX, shared libraries and static libraries use the same namespace, and
8237
# are all built from PIC.
8240
test "$enable_shared" = yes && enable_static=no
8241
if test -n "$RANLIB"; then
8242
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8243
postinstall_cmds='$RANLIB $lib'
8247
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8248
test "$enable_shared" = yes && enable_static=no
8252
AC_MSG_RESULT([$enable_shared])
8254
AC_MSG_CHECKING([whether to build static libraries])
8255
# Make sure either enable_shared or enable_static is yes.
8256
test "$enable_shared" = yes || enable_static=yes
8257
AC_MSG_RESULT([$enable_static])
8259
_LT_TAGVAR(GCC, $1)="$G77"
8260
_LT_TAGVAR(LD, $1)="$LD"
8263
## There is no encapsulation within the following macros, do not change
8264
## the running order or otherwise move them around unless you know exactly
8265
## what you are doing...
8266
_LT_COMPILER_PIC($1)
8267
_LT_COMPILER_C_O($1)
8268
_LT_COMPILER_FILE_LOCKS($1)
8269
_LT_LINKER_SHLIBS($1)
8270
_LT_SYS_DYNAMIC_LINKER($1)
8271
_LT_LINKER_HARDCODE_LIBPATH($1)
8274
fi # test -n "$compiler"
8278
fi # test "$_lt_disable_F77" != yes
8281
])# _LT_LANG_F77_CONFIG
8286
# Since AC_PROG_FC is broken, in that it returns the empty string
8287
# if there is no fortran compiler, we have our own version here.
8288
m4_defun([_LT_PROG_FC],
8290
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
8292
if test -z "$FC" || test "X$FC" = "Xno"; then
8295
popdef([AC_MSG_ERROR])
8298
dnl aclocal-1.4 backwards compatibility:
8299
dnl AC_DEFUN([_LT_PROG_FC], [])
8302
# _LT_LANG_FC_CONFIG([TAG])
8303
# -------------------------
8304
# Ensure that the configuration variables for a Fortran compiler are
8305
# suitably defined. These variables are subsequently used by _LT_CONFIG
8306
# to write the compiler configuration to `libtool'.
8307
m4_defun([_LT_LANG_FC_CONFIG],
8308
[AC_REQUIRE([_LT_PROG_FC])dnl
8309
AC_LANG_PUSH(Fortran)
8311
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8312
_LT_TAGVAR(allow_undefined_flag, $1)=
8313
_LT_TAGVAR(always_export_symbols, $1)=no
8314
_LT_TAGVAR(archive_expsym_cmds, $1)=
8315
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8316
_LT_TAGVAR(hardcode_direct, $1)=no
8317
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8318
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8319
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8320
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8321
_LT_TAGVAR(hardcode_minus_L, $1)=no
8322
_LT_TAGVAR(hardcode_automatic, $1)=no
8323
_LT_TAGVAR(inherit_rpath, $1)=no
8324
_LT_TAGVAR(module_cmds, $1)=
8325
_LT_TAGVAR(module_expsym_cmds, $1)=
8326
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8327
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8328
_LT_TAGVAR(no_undefined_flag, $1)=
8329
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8330
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8332
# Source file extension for fc test sources.
8333
ac_ext=${ac_fc_srcext-f}
8335
# Object file extension for compiled fc test sources.
8337
_LT_TAGVAR(objext, $1)=$objext
8339
# No sense in running all these tests if we already determined that
8340
# the FC compiler isn't working. Some variables (like enable_shared)
8341
# are currently assumed to apply to all compilers on this platform,
8342
# and will be corrupted by setting them based on a non-working compiler.
8343
if test "$_lt_disable_FC" != yes; then
8344
# Code to be used in simple compile tests
8345
lt_simple_compile_test_code="\
8351
# Code to be used in simple link tests
8352
lt_simple_link_test_code="\
8357
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8360
# save warnings/boilerplate of simple test code
8361
_LT_COMPILER_BOILERPLATE
8362
_LT_LINKER_BOILERPLATE
8364
# Allow CC to be a program name with arguments.
8369
GCC=$ac_cv_fc_compiler_gnu
8371
_LT_TAGVAR(compiler, $1)=$CC
8372
_LT_CC_BASENAME([$compiler])
8374
if test -n "$compiler"; then
8375
AC_MSG_CHECKING([if libtool supports shared libraries])
8376
AC_MSG_RESULT([$can_build_shared])
8378
AC_MSG_CHECKING([whether to build shared libraries])
8379
test "$can_build_shared" = "no" && enable_shared=no
8381
# On AIX, shared libraries and static libraries use the same namespace, and
8382
# are all built from PIC.
8385
test "$enable_shared" = yes && enable_static=no
8386
if test -n "$RANLIB"; then
8387
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8388
postinstall_cmds='$RANLIB $lib'
8392
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8393
test "$enable_shared" = yes && enable_static=no
8397
AC_MSG_RESULT([$enable_shared])
8399
AC_MSG_CHECKING([whether to build static libraries])
8400
# Make sure either enable_shared or enable_static is yes.
8401
test "$enable_shared" = yes || enable_static=yes
8402
AC_MSG_RESULT([$enable_static])
8404
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
8405
_LT_TAGVAR(LD, $1)="$LD"
8408
## There is no encapsulation within the following macros, do not change
8409
## the running order or otherwise move them around unless you know exactly
8410
## what you are doing...
8411
_LT_SYS_HIDDEN_LIBDEPS($1)
8412
_LT_COMPILER_PIC($1)
8413
_LT_COMPILER_C_O($1)
8414
_LT_COMPILER_FILE_LOCKS($1)
8415
_LT_LINKER_SHLIBS($1)
8416
_LT_SYS_DYNAMIC_LINKER($1)
8417
_LT_LINKER_HARDCODE_LIBPATH($1)
8420
fi # test -n "$compiler"
8424
fi # test "$_lt_disable_FC" != yes
8427
])# _LT_LANG_FC_CONFIG
8430
# _LT_LANG_GCJ_CONFIG([TAG])
8431
# --------------------------
8432
# Ensure that the configuration variables for the GNU Java Compiler compiler
8433
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8434
# to write the compiler configuration to `libtool'.
8435
m4_defun([_LT_LANG_GCJ_CONFIG],
8436
[AC_REQUIRE([LT_PROG_GCJ])dnl
8439
# Source file extension for Java test sources.
8442
# Object file extension for compiled Java test sources.
8444
_LT_TAGVAR(objext, $1)=$objext
8446
# Code to be used in simple compile tests
8447
lt_simple_compile_test_code="class foo {}"
8449
# Code to be used in simple link tests
8450
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8452
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8455
# save warnings/boilerplate of simple test code
8456
_LT_COMPILER_BOILERPLATE
8457
_LT_LINKER_BOILERPLATE
8459
# Allow CC to be a program name with arguments.
8465
_LT_TAGVAR(compiler, $1)=$CC
8466
_LT_TAGVAR(LD, $1)="$LD"
8467
_LT_CC_BASENAME([$compiler])
8469
# GCJ did not exist at the time GCC didn't implicitly link libc in.
8470
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8472
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8474
if test -n "$compiler"; then
8475
_LT_COMPILER_NO_RTTI($1)
8476
_LT_COMPILER_PIC($1)
8477
_LT_COMPILER_C_O($1)
8478
_LT_COMPILER_FILE_LOCKS($1)
8479
_LT_LINKER_SHLIBS($1)
8480
_LT_LINKER_HARDCODE_LIBPATH($1)
8489
])# _LT_LANG_GCJ_CONFIG
8492
# _LT_LANG_RC_CONFIG([TAG])
8493
# -------------------------
8494
# Ensure that the configuration variables for the Windows resource compiler
8495
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8496
# to write the compiler configuration to `libtool'.
8497
m4_defun([_LT_LANG_RC_CONFIG],
8498
[AC_REQUIRE([LT_PROG_RC])dnl
8501
# Source file extension for RC test sources.
8504
# Object file extension for compiled RC test sources.
8506
_LT_TAGVAR(objext, $1)=$objext
8508
# Code to be used in simple compile tests
8509
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8511
# Code to be used in simple link tests
8512
lt_simple_link_test_code="$lt_simple_compile_test_code"
8514
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8517
# save warnings/boilerplate of simple test code
8518
_LT_COMPILER_BOILERPLATE
8519
_LT_LINKER_BOILERPLATE
8521
# Allow CC to be a program name with arguments.
8527
_LT_TAGVAR(compiler, $1)=$CC
8528
_LT_CC_BASENAME([$compiler])
8529
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8531
if test -n "$compiler"; then
8539
])# _LT_LANG_RC_CONFIG
8544
AC_DEFUN([LT_PROG_GCJ],
8545
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8546
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8547
[AC_CHECK_TOOL(GCJ, gcj,)
8548
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8549
AC_SUBST(GCJFLAGS)])])[]dnl
8553
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8554
dnl aclocal-1.4 backwards compatibility:
8555
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8560
AC_DEFUN([LT_PROG_RC],
8561
[AC_CHECK_TOOL(RC, windres,)
8565
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8566
dnl aclocal-1.4 backwards compatibility:
8567
dnl AC_DEFUN([LT_AC_PROG_RC], [])
8572
# If we don't have a new enough Autoconf to choose the best grep
8573
# available, choose the one first in the user's PATH.
8574
m4_defun([_LT_DECL_EGREP],
8575
[AC_REQUIRE([AC_PROG_EGREP])dnl
8576
AC_REQUIRE([AC_PROG_FGREP])dnl
8577
test -z "$GREP" && GREP=grep
8578
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8579
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8580
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8581
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8588
# If we don't have a new enough Autoconf to choose the best objdump
8589
# available, choose the one first in the user's PATH.
8590
m4_defun([_LT_DECL_OBJDUMP],
8591
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8592
test -z "$OBJDUMP" && OBJDUMP=objdump
8593
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8600
# Check for a fully-functional sed program, that truncates
8601
# as few characters as possible. Prefer GNU sed if found.
8602
m4_defun([_LT_DECL_SED],
8604
test -z "$SED" && SED=sed
8605
Xsed="$SED -e 1s/^X//"
8606
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8607
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8608
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
8611
m4_ifndef([AC_PROG_SED], [
9782
8612
# NOTE: This macro has been submitted for inclusion into #
9783
8613
# GNU Autoconf as AC_PROG_SED. When it is available in #
9784
8614
# a released version of Autoconf we should remove this #
9785
8615
# macro and use it instead. #
9788
# Check for a fully-functional sed program, that truncates
9789
# as few characters as possible. Prefer GNU sed if found.
9790
AC_DEFUN([LT_AC_PROG_SED],
8617
m4_defun([AC_PROG_SED],
9791
8618
[AC_MSG_CHECKING([for a sed that does not truncate output])
9792
8619
AC_CACHE_VAL(lt_cv_path_SED,
9793
8620
[# Loop through the user's path and test for sed and gsed.
9839
8667
SED=$lt_cv_path_SED
9840
8669
AC_MSG_RESULT([$SED])
8674
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8675
dnl aclocal-1.4 backwards compatibility:
8676
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8679
# _LT_CHECK_SHELL_FEATURES
8680
# ------------------------
8681
# Find out whether the shell is Bourne or XSI compatible,
8682
# or has some other useful features.
8683
m4_defun([_LT_CHECK_SHELL_FEATURES],
8684
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8685
# Try some XSI features
8688
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8690
&& eval 'test $(( 1 + 1 )) -eq 2 \
8691
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8693
AC_MSG_RESULT([$xsi_shell])
8694
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8696
AC_MSG_CHECKING([whether the shell understands "+="])
8698
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8700
&& lt_shell_append=yes
8701
AC_MSG_RESULT([$lt_shell_append])
8702
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8704
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8709
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8711
# test EBCDIC or ASCII
8712
case `echo X|tr X '\101'` in
8713
A) # ASCII based system
8714
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8715
lt_SP2NL='tr \040 \012'
8716
lt_NL2SP='tr \015\012 \040\040'
8718
*) # EBCDIC based system
8719
lt_SP2NL='tr \100 \n'
8720
lt_NL2SP='tr \r\n \100\100'
8723
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8724
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8725
])# _LT_CHECK_SHELL_FEATURES
8728
# _LT_PROG_XSI_SHELLFNS
8729
# ---------------------
8730
# Bourne and XSI compatible variants of some useful shell functions.
8731
m4_defun([_LT_PROG_XSI_SHELLFNS],
8734
cat << \_LT_EOF >> "$cfgfile"
8736
# func_dirname file append nondir_replacement
8737
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8738
# otherwise set result to NONDIR_REPLACEMENT.
8742
*/*) func_dirname_result="${1%/*}${2}" ;;
8743
* ) func_dirname_result="${3}" ;;
8747
# func_basename file
8750
func_basename_result="${1##*/}"
8753
# func_dirname_and_basename file append nondir_replacement
8754
# perform func_basename and func_dirname in a single function
8756
# dirname: Compute the dirname of FILE. If nonempty,
8757
# add APPEND to the result, otherwise set result
8758
# to NONDIR_REPLACEMENT.
8759
# value returned in "$func_dirname_result"
8760
# basename: Compute filename of FILE.
8761
# value retuned in "$func_basename_result"
8762
# Implementation must be kept synchronized with func_dirname
8763
# and func_basename. For efficiency, we do not delegate to
8764
# those functions but instead duplicate the functionality here.
8765
func_dirname_and_basename ()
8768
*/*) func_dirname_result="${1%/*}${2}" ;;
8769
* ) func_dirname_result="${3}" ;;
8771
func_basename_result="${1##*/}"
8774
# func_stripname prefix suffix name
8775
# strip PREFIX and SUFFIX off of NAME.
8776
# PREFIX and SUFFIX must not contain globbing or regex special
8777
# characters, hashes, percent signs, but SUFFIX may contain a leading
8778
# dot (in which case that matches only a dot).
8781
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8782
# positional parameters, so assign one to ordinary parameter first.
8783
func_stripname_result=${3}
8784
func_stripname_result=${func_stripname_result#"${1}"}
8785
func_stripname_result=${func_stripname_result%"${2}"}
8791
func_opt_split_opt=${1%%=*}
8792
func_opt_split_arg=${1#*=}
8799
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8800
*) func_lo2o_result=${1} ;;
8804
# func_xform libobj-or-source
8807
func_xform_result=${1%.*}.lo
8810
# func_arith arithmetic-term...
8813
func_arith_result=$(( $[*] ))
8817
# STRING may not start with a hyphen.
8820
func_len_result=${#1}
8825
*) # Bourne compatible functions.
8826
cat << \_LT_EOF >> "$cfgfile"
8828
# func_dirname file append nondir_replacement
8829
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8830
# otherwise set result to NONDIR_REPLACEMENT.
8833
# Extract subdirectory from the argument.
8834
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8835
if test "X$func_dirname_result" = "X${1}"; then
8836
func_dirname_result="${3}"
8838
func_dirname_result="$func_dirname_result${2}"
8842
# func_basename file
8845
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8848
dnl func_dirname_and_basename
8849
dnl A portable version of this function is already defined in general.m4sh
8850
dnl so there is no need for it here.
8852
# func_stripname prefix suffix name
8853
# strip PREFIX and SUFFIX off of NAME.
8854
# PREFIX and SUFFIX must not contain globbing or regex special
8855
# characters, hashes, percent signs, but SUFFIX may contain a leading
8856
# dot (in which case that matches only a dot).
8857
# func_strip_suffix prefix name
8861
.*) func_stripname_result=`$ECHO "X${3}" \
8862
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8863
*) func_stripname_result=`$ECHO "X${3}" \
8864
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8869
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8870
my_sed_long_arg='1s/^-[[^=]]*=//'
8875
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8876
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8882
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8885
# func_xform libobj-or-source
8888
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8891
# func_arith arithmetic-term...
8894
func_arith_result=`expr "$[@]"`
8898
# STRING may not start with a hyphen.
8901
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8907
case $lt_shell_append in
8909
cat << \_LT_EOF >> "$cfgfile"
8911
# func_append var value
8912
# Append VALUE to the end of shell variable VAR.
8920
cat << \_LT_EOF >> "$cfgfile"
8922
# func_append var value
8923
# Append VALUE to the end of shell variable VAR.
8926
eval "$[1]=\$$[1]\$[2]"
8934
# Helper functions for option handling. -*- Autoconf -*-
8936
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8937
# Written by Gary V. Vaughan, 2004
8939
# This file is free software; the Free Software Foundation gives
8940
# unlimited permission to copy and/or distribute it, with or without
8941
# modifications, as long as this notice is preserved.
8943
# serial 6 ltoptions.m4
8945
# This is to help aclocal find these macros, as it can't see m4_define.
8946
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8949
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8950
# ------------------------------------------
8951
m4_define([_LT_MANGLE_OPTION],
8952
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8955
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8956
# ---------------------------------------
8957
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8958
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8960
m4_define([_LT_SET_OPTION],
8961
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8962
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8963
_LT_MANGLE_DEFUN([$1], [$2]),
8964
[m4_warning([Unknown $1 option `$2'])])[]dnl
8968
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8969
# ------------------------------------------------------------
8970
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8971
m4_define([_LT_IF_OPTION],
8972
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8975
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8976
# -------------------------------------------------------
8977
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8979
m4_define([_LT_UNLESS_OPTIONS],
8980
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8981
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8982
[m4_define([$0_found])])])[]dnl
8983
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8988
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8989
# ----------------------------------------
8990
# OPTION-LIST is a space-separated list of Libtool options associated
8991
# with MACRO-NAME. If any OPTION has a matching handler declared with
8992
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8993
# the unknown option and exit.
8994
m4_defun([_LT_SET_OPTIONS],
8996
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8997
[_LT_SET_OPTION([$1], _LT_Option)])
8999
m4_if([$1],[LT_INIT],[
9001
dnl Simply set some default values (i.e off) if boolean options were not
9003
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9005
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9008
dnl If no reference was made to various pairs of opposing options, then
9009
dnl we run the default mode handler for the pair. For example, if neither
9010
dnl `shared' nor `disable-shared' was passed, we enable building of shared
9011
dnl archives by default:
9012
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
9013
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
9014
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
9015
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
9016
[_LT_ENABLE_FAST_INSTALL])
9022
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9023
# -----------------------------------------
9024
m4_define([_LT_MANGLE_DEFUN],
9025
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
9028
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
9029
# -----------------------------------------------
9030
m4_define([LT_OPTION_DEFINE],
9031
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
9032
])# LT_OPTION_DEFINE
9037
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9040
AU_DEFUN([AC_LIBTOOL_DLOPEN],
9041
[_LT_SET_OPTION([LT_INIT], [dlopen])
9042
AC_DIAGNOSE([obsolete],
9043
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9044
put the `dlopen' option into LT_INIT's first parameter.])
9047
dnl aclocal-1.4 backwards compatibility:
9048
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9053
# Declare package support for building win32 dll's.
9054
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9055
[enable_win32_dll=yes
9058
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
9059
AC_CHECK_TOOL(AS, as, false)
9060
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9061
AC_CHECK_TOOL(OBJDUMP, objdump, false)
9065
test -z "$AS" && AS=as
9066
_LT_DECL([], [AS], [0], [Assembler program])dnl
9068
test -z "$DLLTOOL" && DLLTOOL=dlltool
9069
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
9071
test -z "$OBJDUMP" && OBJDUMP=objdump
9072
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
9075
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9076
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9077
_LT_SET_OPTION([LT_INIT], [win32-dll])
9078
AC_DIAGNOSE([obsolete],
9079
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9080
put the `win32-dll' option into LT_INIT's first parameter.])
9083
dnl aclocal-1.4 backwards compatibility:
9084
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9087
# _LT_ENABLE_SHARED([DEFAULT])
9088
# ----------------------------
9089
# implement the --enable-shared flag, and supports the `shared' and
9090
# `disable-shared' LT_INIT options.
9091
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9092
m4_define([_LT_ENABLE_SHARED],
9093
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9094
AC_ARG_ENABLE([shared],
9095
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9096
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9097
[p=${PACKAGE-default}
9099
yes) enable_shared=yes ;;
9100
no) enable_shared=no ;;
9103
# Look at the argument we got. We use all the common list separators.
9104
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9105
for pkg in $enableval; do
9107
if test "X$pkg" = "X$p"; then
9114
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9116
_LT_DECL([build_libtool_libs], [enable_shared], [0],
9117
[Whether or not to build shared libraries])
9118
])# _LT_ENABLE_SHARED
9120
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9121
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9124
AC_DEFUN([AC_ENABLE_SHARED],
9125
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9128
AC_DEFUN([AC_DISABLE_SHARED],
9129
[_LT_SET_OPTION([LT_INIT], [disable-shared])
9132
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9133
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9135
dnl aclocal-1.4 backwards compatibility:
9136
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9137
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9141
# _LT_ENABLE_STATIC([DEFAULT])
9142
# ----------------------------
9143
# implement the --enable-static flag, and support the `static' and
9144
# `disable-static' LT_INIT options.
9145
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9146
m4_define([_LT_ENABLE_STATIC],
9147
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9148
AC_ARG_ENABLE([static],
9149
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9150
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9151
[p=${PACKAGE-default}
9153
yes) enable_static=yes ;;
9154
no) enable_static=no ;;
9157
# Look at the argument we got. We use all the common list separators.
9158
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9159
for pkg in $enableval; do
9161
if test "X$pkg" = "X$p"; then
9168
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9170
_LT_DECL([build_old_libs], [enable_static], [0],
9171
[Whether or not to build static libraries])
9172
])# _LT_ENABLE_STATIC
9174
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9175
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9178
AC_DEFUN([AC_ENABLE_STATIC],
9179
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9182
AC_DEFUN([AC_DISABLE_STATIC],
9183
[_LT_SET_OPTION([LT_INIT], [disable-static])
9186
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9187
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9189
dnl aclocal-1.4 backwards compatibility:
9190
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9191
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9195
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
9196
# ----------------------------------
9197
# implement the --enable-fast-install flag, and support the `fast-install'
9198
# and `disable-fast-install' LT_INIT options.
9199
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9200
m4_define([_LT_ENABLE_FAST_INSTALL],
9201
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9202
AC_ARG_ENABLE([fast-install],
9203
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9204
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9205
[p=${PACKAGE-default}
9207
yes) enable_fast_install=yes ;;
9208
no) enable_fast_install=no ;;
9210
enable_fast_install=no
9211
# Look at the argument we got. We use all the common list separators.
9212
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9213
for pkg in $enableval; do
9215
if test "X$pkg" = "X$p"; then
9216
enable_fast_install=yes
9222
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9224
_LT_DECL([fast_install], [enable_fast_install], [0],
9225
[Whether or not to optimize for fast installation])dnl
9226
])# _LT_ENABLE_FAST_INSTALL
9228
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9229
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9232
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9233
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9234
AC_DIAGNOSE([obsolete],
9235
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9236
the `fast-install' option into LT_INIT's first parameter.])
9239
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9240
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9241
AC_DIAGNOSE([obsolete],
9242
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9243
the `disable-fast-install' option into LT_INIT's first parameter.])
9246
dnl aclocal-1.4 backwards compatibility:
9247
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9248
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9251
# _LT_WITH_PIC([MODE])
9252
# --------------------
9253
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
9255
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
9256
m4_define([_LT_WITH_PIC],
9258
[AS_HELP_STRING([--with-pic],
9259
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9260
[pic_mode="$withval"],
9263
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9265
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9268
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9269
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9272
AU_DEFUN([AC_LIBTOOL_PICMODE],
9273
[_LT_SET_OPTION([LT_INIT], [pic-only])
9274
AC_DIAGNOSE([obsolete],
9275
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9276
put the `pic-only' option into LT_INIT's first parameter.])
9279
dnl aclocal-1.4 backwards compatibility:
9280
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9283
m4_define([_LTDL_MODE], [])
9284
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9285
[m4_define([_LTDL_MODE], [nonrecursive])])
9286
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9287
[m4_define([_LTDL_MODE], [recursive])])
9288
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9289
[m4_define([_LTDL_MODE], [subproject])])
9291
m4_define([_LTDL_TYPE], [])
9292
LT_OPTION_DEFINE([LTDL_INIT], [installable],
9293
[m4_define([_LTDL_TYPE], [installable])])
9294
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9295
[m4_define([_LTDL_TYPE], [convenience])])
9297
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
9299
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9300
# Written by Gary V. Vaughan, 2004
9302
# This file is free software; the Free Software Foundation gives
9303
# unlimited permission to copy and/or distribute it, with or without
9304
# modifications, as long as this notice is preserved.
9306
# serial 6 ltsugar.m4
9308
# This is to help aclocal find these macros, as it can't see m4_define.
9309
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9312
# lt_join(SEP, ARG1, [ARG2...])
9313
# -----------------------------
9314
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9315
# associated separator.
9316
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9317
# versions in m4sugar had bugs.
9318
m4_define([lt_join],
9319
[m4_if([$#], [1], [],
9321
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9322
m4_define([_lt_join],
9323
[m4_if([$#$2], [2], [],
9324
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9330
# Manipulate m4 lists.
9331
# These macros are necessary as long as will still need to support
9332
# Autoconf-2.59 which quotes differently.
9333
m4_define([lt_car], [[$1]])
9335
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9337
[m4_dquote(m4_shift($@))])])
9338
m4_define([lt_unquote], $1)
9341
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
9342
# ------------------------------------------
9343
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
9344
# Note that neither SEPARATOR nor STRING are expanded; they are appended
9345
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9346
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
9347
# than defined and empty).
9349
# This macro is needed until we can rely on Autoconf 2.62, since earlier
9350
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9351
m4_define([lt_append],
9353
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9357
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9358
# ----------------------------------------------------------
9359
# Produce a SEP delimited list of all paired combinations of elements of
9360
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
9361
# has the form PREFIXmINFIXSUFFIXn.
9362
# Needed until we can rely on m4_combine added in Autoconf 2.62.
9363
m4_define([lt_combine],
9364
[m4_if(m4_eval([$# > 3]), [1],
9365
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9366
[[m4_foreach([_Lt_prefix], [$2],
9367
[m4_foreach([_Lt_suffix],
9368
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9369
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9372
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9373
# -----------------------------------------------------------------------
9374
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9375
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9376
m4_define([lt_if_append_uniq],
9378
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9379
[lt_append([$1], [$2], [$3])$4],
9381
[lt_append([$1], [$2], [$3])$4])])
9384
# lt_dict_add(DICT, KEY, VALUE)
9385
# -----------------------------
9386
m4_define([lt_dict_add],
9387
[m4_define([$1($2)], [$3])])
9390
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9391
# --------------------------------------------
9392
m4_define([lt_dict_add_subkey],
9393
[m4_define([$1($2:$3)], [$4])])
9396
# lt_dict_fetch(DICT, KEY, [SUBKEY])
9397
# ----------------------------------
9398
m4_define([lt_dict_fetch],
9400
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9401
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9404
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9405
# -----------------------------------------------------------------
9406
m4_define([lt_if_dict_fetch],
9407
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9412
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9413
# --------------------------------------------------------------
9414
m4_define([lt_dict_filter],
9415
[m4_if([$5], [], [],
9416
[lt_join(m4_quote(m4_default([$4], [[, ]])),
9417
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9418
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9421
# ltversion.m4 -- version numbers -*- Autoconf -*-
9423
# Copyright (C) 2004 Free Software Foundation, Inc.
9424
# Written by Scott James Remnant, 2004
9426
# This file is free software; the Free Software Foundation gives
9427
# unlimited permission to copy and/or distribute it, with or without
9428
# modifications, as long as this notice is preserved.
9430
# Generated from ltversion.in.
9432
# serial 3012 ltversion.m4
9433
# This file is part of GNU Libtool
9435
m4_define([LT_PACKAGE_VERSION], [2.2.6])
9436
m4_define([LT_PACKAGE_REVISION], [1.3012])
9438
AC_DEFUN([LTVERSION_VERSION],
9439
[macro_version='2.2.6'
9440
macro_revision='1.3012'
9441
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9442
_LT_DECL(, macro_revision, 0)
9445
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9447
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
9448
# Written by Scott James Remnant, 2004.
9450
# This file is free software; the Free Software Foundation gives
9451
# unlimited permission to copy and/or distribute it, with or without
9452
# modifications, as long as this notice is preserved.
9454
# serial 4 lt~obsolete.m4
9456
# These exist entirely to fool aclocal when bootstrapping libtool.
9458
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
9459
# which have later been changed to m4_define as they aren't part of the
9460
# exported API, or moved to Autoconf or Automake where they belong.
9462
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
9463
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9464
# using a macro with the same name in our local m4/libtool.m4 it'll
9465
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9466
# and doesn't know about Autoconf macros at all.)
9468
# So we provide this file, which has a silly filename so it's always
9469
# included after everything else. This provides aclocal with the
9470
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9471
# because those macros already exist, or will be overwritten later.
9472
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9474
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9475
# Yes, that means every name once taken will need to remain here until
9476
# we give up compatibility with versions before 1.7, at which point
9477
# we need to keep only those names which we still refer to.
9479
# This is to help aclocal find these macros, as it can't see m4_define.
9480
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9482
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9483
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
9484
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9485
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
9486
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9487
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
9488
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
9489
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9490
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
9491
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
9492
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
9493
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9494
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9495
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9496
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9497
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9498
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
9499
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9500
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9501
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
9502
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
9503
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9504
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9505
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9506
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9507
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9508
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9509
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9510
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9511
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9512
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9513
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9514
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9515
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9516
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9517
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9518
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9519
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9520
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9521
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9522
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9523
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9524
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
9525
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9526
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9527
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9528
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9529
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9530
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9531
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9532
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9533
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9534
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9535
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9536
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9843
9538
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9917
9642
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9920
AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS],
9921
[_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])])
9922
AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS],
9923
[_PKG_CONFIG([$1][_LIBS], [libs], [$2])])
9645
AC_MSG_CHECKING([for $1])
9647
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9648
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9650
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9651
and $1[]_LIBS to avoid the need to call pkg-config.
9652
See the pkg-config man page for more details.])
9925
9654
if test $pkg_failed = yes; then
9926
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
9655
_PKG_SHORT_ERRORS_SUPPORTED
9656
if test $_pkg_short_errors_supported = yes; then
9657
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9659
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9927
9661
# Put the nasty error message in config.log where it belongs
9928
echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
9662
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9930
9664
ifelse([$4], , [AC_MSG_ERROR(dnl
9931
[Package requirements ($2) were not met.
9665
[Package requirements ($2) were not met:
9932
9669
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9933
9670
installed software in a non-standard prefix.
9935
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
9936
to avoid the need to call pkg-config. See the pkg-config man page for
9674
[AC_MSG_RESULT([no])
9939
9676
elif test $pkg_failed = untried; then
9940
9677
ifelse([$4], , [AC_MSG_FAILURE(dnl
9941
9678
[The pkg-config script could not be found or is too old. Make sure it
9942
9679
is in your PATH or set the PKG_CONFIG environment variable to the full
9943
9680
path to pkg-config.
9945
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
9946
to avoid the need to call pkg-config. See the pkg-config man page for
9949
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
9684
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9952
9687
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9953
9688
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9689
AC_MSG_RESULT([yes])
9954
9690
ifelse([$3], , :, [$3])
9956
9692
])# PKG_CHECK_MODULES
9694
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9696
# This file is free software; the Free Software Foundation
9697
# gives unlimited permission to copy and/or distribute it,
9698
# with or without modifications, as long as this notice is preserved.
9700
# AM_AUTOMAKE_VERSION(VERSION)
9701
# ----------------------------
9702
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9703
# generated from the m4 files accompanying Automake X.Y.
9704
# (This private macro should not be called outside this file.)
9705
AC_DEFUN([AM_AUTOMAKE_VERSION],
9706
[am__api_version='1.10'
9707
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9708
dnl require some minimum version. Point them to the right macro.
9709
m4_if([$1], [1.10.2], [],
9710
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9713
# _AM_AUTOCONF_VERSION(VERSION)
9714
# -----------------------------
9715
# aclocal traces this macro to find the Autoconf version.
9716
# This is a private macro too. Using m4_define simplifies
9717
# the logic in aclocal, which can simply ignore this definition.
9718
m4_define([_AM_AUTOCONF_VERSION], [])
9720
# AM_SET_CURRENT_AUTOMAKE_VERSION
9721
# -------------------------------
9722
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9723
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9724
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9725
[AM_AUTOMAKE_VERSION([1.10.2])dnl
9726
m4_ifndef([AC_AUTOCONF_VERSION],
9727
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9728
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9730
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
9732
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9734
# This file is free software; the Free Software Foundation
9735
# gives unlimited permission to copy and/or distribute it,
9736
# with or without modifications, as long as this notice is preserved.
9738
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9739
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9740
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9742
# Of course, Automake must honor this variable whenever it calls a
9743
# tool from the auxiliary directory. The problem is that $srcdir (and
9744
# therefore $ac_aux_dir as well) can be either absolute or relative,
9745
# depending on how configure is run. This is pretty annoying, since
9746
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9747
# source directory, any form will work fine, but in subdirectories a
9748
# relative path needs to be adjusted first.
9750
# $ac_aux_dir/missing
9751
# fails when called from a subdirectory if $ac_aux_dir is relative
9752
# $top_srcdir/$ac_aux_dir/missing
9753
# fails if $ac_aux_dir is absolute,
9754
# fails when called from a subdirectory in a VPATH build with
9755
# a relative $ac_aux_dir
9757
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9758
# are both prefixed by $srcdir. In an in-source build this is usually
9759
# harmless because $srcdir is `.', but things will broke when you
9760
# start a VPATH build or use an absolute $srcdir.
9762
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9763
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9764
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9765
# and then we would define $MISSING as
9766
# MISSING="\${SHELL} $am_aux_dir/missing"
9767
# This will work as long as MISSING is not called from configure, because
9768
# unfortunately $(top_srcdir) has no meaning in configure.
9769
# However there are other variables, like CC, which are often used in
9770
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9772
# Another solution, used here, is to always expand $ac_aux_dir to an
9773
# absolute PATH. The drawback is that using absolute paths prevent a
9774
# configured tree to be moved without reconfiguration.
9776
AC_DEFUN([AM_AUX_DIR_EXPAND],
9777
[dnl Rely on autoconf to set up CDPATH properly.
9778
AC_PREREQ([2.50])dnl
9779
# expand $ac_aux_dir to an absolute path
9780
am_aux_dir=`cd $ac_aux_dir && pwd`
9783
# AM_CONDITIONAL -*- Autoconf -*-
9785
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
9786
# Free Software Foundation, Inc.
9788
# This file is free software; the Free Software Foundation
9789
# gives unlimited permission to copy and/or distribute it,
9790
# with or without modifications, as long as this notice is preserved.
9794
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9795
# -------------------------------------
9796
# Define a conditional.
9797
AC_DEFUN([AM_CONDITIONAL],
9799
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9800
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9801
AC_SUBST([$1_TRUE])dnl
9802
AC_SUBST([$1_FALSE])dnl
9803
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9804
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9812
AC_CONFIG_COMMANDS_PRE(
9813
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9814
AC_MSG_ERROR([[conditional "$1" was never defined.
9815
Usually this means the macro was only invoked conditionally.]])
9818
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
9819
# Free Software Foundation, Inc.
9821
# This file is free software; the Free Software Foundation
9822
# gives unlimited permission to copy and/or distribute it,
9823
# with or without modifications, as long as this notice is preserved.
9827
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9828
# written in clear, in which case automake, when reading aclocal.m4,
9829
# will think it sees a *use*, and therefore will trigger all it's
9830
# C support machinery. Also note that it means that autoscan, seeing
9831
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9834
# _AM_DEPENDENCIES(NAME)
9835
# ----------------------
9836
# See how the compiler implements dependency checking.
9837
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9838
# We try a few techniques and use that to set a single cache variable.
9840
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9841
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9842
# dependency, and given that the user is not expected to run this macro,
9843
# just rely on AC_PROG_CC.
9844
AC_DEFUN([_AM_DEPENDENCIES],
9845
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9846
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9847
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9848
AC_REQUIRE([AM_DEP_TRACK])dnl
9850
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9851
[$1], CXX, [depcc="$CXX" am_compiler_list=],
9852
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9853
[$1], UPC, [depcc="$UPC" am_compiler_list=],
9854
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9855
[depcc="$$1" am_compiler_list=])
9857
AC_CACHE_CHECK([dependency style of $depcc],
9858
[am_cv_$1_dependencies_compiler_type],
9859
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9860
# We make a subdir and do the tests there. Otherwise we can end up
9861
# making bogus files that we don't know about and never remove. For
9862
# instance it was reported that on HP-UX the gcc test will end up
9863
# making a dummy file named `D' -- because `-MD' means `put the output
9866
# Copy depcomp to subdir because otherwise we won't find it if we're
9867
# using a relative directory.
9868
cp "$am_depcomp" conftest.dir
9870
# We will build objects and dependencies in a subdirectory because
9871
# it helps to detect inapplicable dependency modes. For instance
9872
# both Tru64's cc and ICC support -MD to output dependencies as a
9873
# side effect of compilation, but ICC will put the dependencies in
9874
# the current directory while Tru64 will put them in the object
9878
am_cv_$1_dependencies_compiler_type=none
9879
if test "$am_compiler_list" = ""; then
9880
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9882
for depmode in $am_compiler_list; do
9883
# Setup a source with many dependencies, because some compilers
9884
# like to wrap large dependency lists on column 80 (with \), and
9885
# we should not choose a depcomp mode which is confused by this.
9887
# We need to recreate these files for each test, as the compiler may
9888
# overwrite some of them when testing with obscure command lines.
9889
# This happens at least with the AIX C compiler.
9891
for i in 1 2 3 4 5 6; do
9892
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9893
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9894
# Solaris 8's {/usr,}/bin/sh.
9895
touch sub/conftst$i.h
9897
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9901
# after this tag, mechanisms are not by side-effect, so they'll
9902
# only be used when explicitly requested
9903
if test "x$enable_dependency_tracking" = xyes; then
9911
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9912
# mode. It turns out that the SunPro C++ compiler does not properly
9913
# handle `-M -o', and we need to detect this.
9914
if depmode=$depmode \
9915
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9916
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9917
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9918
>/dev/null 2>conftest.err &&
9919
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9920
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9921
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9922
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9923
# icc doesn't choke on unknown options, it will just issue warnings
9924
# or remarks (even with -Werror). So we grep stderr for any message
9925
# that says an option was ignored or not supported.
9926
# When given -MP, icc 7.0 and 7.1 complain thusly:
9927
# icc: Command line warning: ignoring option '-M'; no argument required
9928
# The diagnosis changed in icc 8.0:
9929
# icc: Command line remark: option '-MP' not supported
9930
if (grep 'ignoring option' conftest.err ||
9931
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9932
am_cv_$1_dependencies_compiler_type=$depmode
9941
am_cv_$1_dependencies_compiler_type=none
9944
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9945
AM_CONDITIONAL([am__fastdep$1], [
9946
test "x$enable_dependency_tracking" != xno \
9947
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9953
# Choose a directory name for dependency files.
9954
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9955
AC_DEFUN([AM_SET_DEPDIR],
9956
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9957
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9963
AC_DEFUN([AM_DEP_TRACK],
9964
[AC_ARG_ENABLE(dependency-tracking,
9965
[ --disable-dependency-tracking speeds up one-time build
9966
--enable-dependency-tracking do not reject slow dependency extractors])
9967
if test "x$enable_dependency_tracking" != xno; then
9968
am_depcomp="$ac_aux_dir/depcomp"
9971
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9972
AC_SUBST([AMDEPBACKSLASH])dnl
9973
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9976
# Generate code to set up dependency tracking. -*- Autoconf -*-
9978
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9979
# Free Software Foundation, Inc.
9981
# This file is free software; the Free Software Foundation
9982
# gives unlimited permission to copy and/or distribute it,
9983
# with or without modifications, as long as this notice is preserved.
9987
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9988
# ------------------------------
9989
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9990
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
9991
# are listed without --file. Let's play safe and only enable the eval
9992
# if we detect the quoting.
9993
case $CONFIG_FILES in
9994
*\'*) eval set x "$CONFIG_FILES" ;;
9995
*) set x $CONFIG_FILES ;;
10000
# Strip MF so we end up with the name of the file.
10001
mf=`echo "$mf" | sed -e 's/:.*$//'`
10002
# Check whether this is an Automake generated Makefile or not.
10003
# We used to match only the files named `Makefile.in', but
10004
# some people rename them; so instead we look at the file content.
10005
# Grep'ing the first line is not enough: some people post-process
10006
# each Makefile.in and add a new line on top of each file to say so.
10007
# Grep'ing the whole file is not good either: AIX grep has a line
10008
# limit of 2048, but all sed's we know have understand at least 4000.
10009
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10010
dirpart=`AS_DIRNAME("$mf")`
10014
# Extract the definition of DEPDIR, am__include, and am__quote
10015
# from the Makefile without running `make'.
10016
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10017
test -z "$DEPDIR" && continue
10018
am__include=`sed -n 's/^am__include = //p' < "$mf"`
10019
test -z "am__include" && continue
10020
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10021
# When using ansi2knr, U may be empty or an underscore; expand it
10022
U=`sed -n 's/^U = //p' < "$mf"`
10023
# Find all dependency output files, they are included files with
10024
# $(DEPDIR) in their names. We invoke sed twice because it is the
10025
# simplest approach to changing $(DEPDIR) to its actual value in the
10027
for file in `sed -n "
10028
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10029
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10030
# Make sure the directory exists.
10031
test -f "$dirpart/$file" && continue
10032
fdir=`AS_DIRNAME(["$file"])`
10033
AS_MKDIR_P([$dirpart/$fdir])
10034
# echo "creating $dirpart/$file"
10035
echo '# dummy' > "$dirpart/$file"
10038
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
10041
# AM_OUTPUT_DEPENDENCY_COMMANDS
10042
# -----------------------------
10043
# This macro should only be invoked once -- use via AC_REQUIRE.
10045
# This code is only required when automatic dependency tracking
10046
# is enabled. FIXME. This creates each `.P' file that we will
10047
# need in order to bootstrap the dependency handling code.
10048
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
10049
[AC_CONFIG_COMMANDS([depfiles],
10050
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
10051
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
10054
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
10055
# Free Software Foundation, Inc.
10057
# This file is free software; the Free Software Foundation
10058
# gives unlimited permission to copy and/or distribute it,
10059
# with or without modifications, as long as this notice is preserved.
10063
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
10064
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
10066
# Do all the work for Automake. -*- Autoconf -*-
10068
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
10069
# 2005, 2006, 2008 Free Software Foundation, Inc.
10071
# This file is free software; the Free Software Foundation
10072
# gives unlimited permission to copy and/or distribute it,
10073
# with or without modifications, as long as this notice is preserved.
10077
# This macro actually does too much. Some checks are only needed if
10078
# your package does certain things. But this isn't really a big deal.
10080
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
10081
# AM_INIT_AUTOMAKE([OPTIONS])
10082
# -----------------------------------------------
10083
# The call with PACKAGE and VERSION arguments is the old style
10084
# call (pre autoconf-2.50), which is being phased out. PACKAGE
10085
# and VERSION should now be passed to AC_INIT and removed from
10086
# the call to AM_INIT_AUTOMAKE.
10087
# We support both call styles for the transition. After
10088
# the next Automake release, Autoconf can make the AC_INIT
10089
# arguments mandatory, and then we can depend on a new Autoconf
10090
# release and drop the old call support.
10091
AC_DEFUN([AM_INIT_AUTOMAKE],
10092
[AC_PREREQ([2.60])dnl
10093
dnl Autoconf wants to disallow AM_ names. We explicitly allow
10094
dnl the ones we care about.
10095
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10096
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
10097
AC_REQUIRE([AC_PROG_INSTALL])dnl
10098
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10099
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10100
# is not polluted with repeated "-I."
10101
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
10102
# test to see if srcdir already configured
10103
if test -f $srcdir/config.status; then
10104
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
10108
# test whether we have cygpath
10109
if test -z "$CYGPATH_W"; then
10110
if (cygpath --version) >/dev/null 2>/dev/null; then
10111
CYGPATH_W='cygpath -w'
10116
AC_SUBST([CYGPATH_W])
10118
# Define the identity of the package.
10119
dnl Distinguish between old-style and new-style calls.
10121
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
10122
AC_SUBST([PACKAGE], [$1])dnl
10123
AC_SUBST([VERSION], [$2])],
10124
[_AM_SET_OPTIONS([$1])dnl
10125
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
10126
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
10127
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
10128
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
10129
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
10131
_AM_IF_OPTION([no-define],,
10132
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
10133
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
10135
# Some tools Automake needs.
10136
AC_REQUIRE([AM_SANITY_CHECK])dnl
10137
AC_REQUIRE([AC_ARG_PROGRAM])dnl
10138
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
10139
AM_MISSING_PROG(AUTOCONF, autoconf)
10140
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
10141
AM_MISSING_PROG(AUTOHEADER, autoheader)
10142
AM_MISSING_PROG(MAKEINFO, makeinfo)
10144
AM_PROG_INSTALL_STRIP
10145
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
10146
# We need awk for the "check" target. The system "awk" is bad on
10148
AC_REQUIRE([AC_PROG_AWK])dnl
10149
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10150
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10151
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10152
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10153
[_AM_PROG_TAR([v7])])])
10154
_AM_IF_OPTION([no-dependencies],,
10155
[AC_PROVIDE_IFELSE([AC_PROG_CC],
10156
[_AM_DEPENDENCIES(CC)],
10157
[define([AC_PROG_CC],
10158
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
10159
AC_PROVIDE_IFELSE([AC_PROG_CXX],
10160
[_AM_DEPENDENCIES(CXX)],
10161
[define([AC_PROG_CXX],
10162
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
10163
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10164
[_AM_DEPENDENCIES(OBJC)],
10165
[define([AC_PROG_OBJC],
10166
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
10171
# When config.status generates a header, we must update the stamp-h file.
10172
# This file resides in the same directory as the config header
10173
# that is generated. The stamp files are numbered to have different names.
10175
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10176
# loop where config.status creates the headers, so we can generate
10177
# our stamp files there.
10178
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10179
[# Compute $1's index in $config_headers.
10182
for _am_header in $config_headers :; do
10183
case $_am_header in
10184
$_am_arg | $_am_arg:* )
10187
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
10190
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10192
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10194
# This file is free software; the Free Software Foundation
10195
# gives unlimited permission to copy and/or distribute it,
10196
# with or without modifications, as long as this notice is preserved.
10198
# AM_PROG_INSTALL_SH
10199
# ------------------
10200
# Define $install_sh.
10201
AC_DEFUN([AM_PROG_INSTALL_SH],
10202
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10203
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
10204
AC_SUBST(install_sh)])
10206
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
10208
# This file is free software; the Free Software Foundation
10209
# gives unlimited permission to copy and/or distribute it,
10210
# with or without modifications, as long as this notice is preserved.
10214
# Check whether the underlying file-system supports filenames
10215
# with a leading dot. For instance MS-DOS doesn't.
10216
AC_DEFUN([AM_SET_LEADING_DOT],
10217
[rm -rf .tst 2>/dev/null
10218
mkdir .tst 2>/dev/null
10219
if test -d .tst; then
10224
rmdir .tst 2>/dev/null
10225
AC_SUBST([am__leading_dot])])
10227
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
10228
# From Jim Meyering
10230
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
10231
# Free Software Foundation, Inc.
10233
# This file is free software; the Free Software Foundation
10234
# gives unlimited permission to copy and/or distribute it,
10235
# with or without modifications, as long as this notice is preserved.
10239
AC_DEFUN([AM_MAINTAINER_MODE],
10240
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
10241
dnl maintainer-mode is disabled by default
10242
AC_ARG_ENABLE(maintainer-mode,
10243
[ --enable-maintainer-mode enable make rules and dependencies not useful
10244
(and sometimes confusing) to the casual installer],
10245
USE_MAINTAINER_MODE=$enableval,
10246
USE_MAINTAINER_MODE=no)
10247
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
10248
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
10249
MAINT=$MAINTAINER_MODE_TRUE
10254
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
10256
# Check to see how 'make' treats includes. -*- Autoconf -*-
10258
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
10260
# This file is free software; the Free Software Foundation
10261
# gives unlimited permission to copy and/or distribute it,
10262
# with or without modifications, as long as this notice is preserved.
10266
# AM_MAKE_INCLUDE()
10267
# -----------------
10268
# Check to see how make treats includes.
10269
AC_DEFUN([AM_MAKE_INCLUDE],
10270
[am_make=${MAKE-make}
10271
cat > confinc << 'END'
10276
# If we don't find an include directive, just comment out the code.
10277
AC_MSG_CHECKING([for style of include used by $am_make])
10281
# First try GNU make style include.
10282
echo "include confinc" > confmf
10283
# We grep out `Entering directory' and `Leaving directory'
10284
# messages which can occur if `w' ends up in MAKEFLAGS.
10285
# In particular we don't look at `^make:' because GNU make might
10286
# be invoked under some other name (usually "gmake"), in which
10287
# case it prints its new name instead of `make'.
10288
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
10289
am__include=include
10293
# Now try BSD make style include.
10294
if test "$am__include" = "#"; then
10295
echo '.include "confinc"' > confmf
10296
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
10297
am__include=.include
10302
AC_SUBST([am__include])
10303
AC_SUBST([am__quote])
10304
AC_MSG_RESULT([$_am_result])
10305
rm -f confinc confmf
10308
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10310
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
10311
# Free Software Foundation, Inc.
10313
# This file is free software; the Free Software Foundation
10314
# gives unlimited permission to copy and/or distribute it,
10315
# with or without modifications, as long as this notice is preserved.
10319
# AM_MISSING_PROG(NAME, PROGRAM)
10320
# ------------------------------
10321
AC_DEFUN([AM_MISSING_PROG],
10322
[AC_REQUIRE([AM_MISSING_HAS_RUN])
10323
$1=${$1-"${am_missing_run}$2"}
10327
# AM_MISSING_HAS_RUN
10328
# ------------------
10329
# Define MISSING if not defined so far and test if it supports --run.
10330
# If it does, set am_missing_run to use it, otherwise, to nothing.
10331
AC_DEFUN([AM_MISSING_HAS_RUN],
10332
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10333
AC_REQUIRE_AUX_FILE([missing])dnl
10334
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
10335
# Use eval to expand $SHELL
10336
if eval "$MISSING --run true"; then
10337
am_missing_run="$MISSING --run "
10340
AC_MSG_WARN([`missing' script is too old or missing])
10344
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10346
# This file is free software; the Free Software Foundation
10347
# gives unlimited permission to copy and/or distribute it,
10348
# with or without modifications, as long as this notice is preserved.
10352
# Check for `mkdir -p'.
10353
AC_DEFUN([AM_PROG_MKDIR_P],
10354
[AC_PREREQ([2.60])dnl
10355
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10356
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
10357
dnl while keeping a definition of mkdir_p for backward compatibility.
10358
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10359
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10360
dnl Makefile.ins that do not define MKDIR_P, so we do our own
10361
dnl adjustment using top_builddir (which is defined more often than
10363
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10365
[[\\/$]]* | ?:[[\\/]]*) ;;
10366
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10370
# Helper functions for option handling. -*- Autoconf -*-
10372
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
10374
# This file is free software; the Free Software Foundation
10375
# gives unlimited permission to copy and/or distribute it,
10376
# with or without modifications, as long as this notice is preserved.
10380
# _AM_MANGLE_OPTION(NAME)
10381
# -----------------------
10382
AC_DEFUN([_AM_MANGLE_OPTION],
10383
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10385
# _AM_SET_OPTION(NAME)
10386
# ------------------------------
10387
# Set option NAME. Presently that only means defining a flag for this option.
10388
AC_DEFUN([_AM_SET_OPTION],
10389
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10391
# _AM_SET_OPTIONS(OPTIONS)
10392
# ----------------------------------
10393
# OPTIONS is a space-separated list of Automake options.
10394
AC_DEFUN([_AM_SET_OPTIONS],
10395
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10397
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10398
# -------------------------------------------
10399
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10400
AC_DEFUN([_AM_IF_OPTION],
10401
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10403
# Check to make sure that the build environment is sane. -*- Autoconf -*-
10405
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
10406
# Free Software Foundation, Inc.
10408
# This file is free software; the Free Software Foundation
10409
# gives unlimited permission to copy and/or distribute it,
10410
# with or without modifications, as long as this notice is preserved.
10416
AC_DEFUN([AM_SANITY_CHECK],
10417
[AC_MSG_CHECKING([whether build environment is sane])
10420
echo timestamp > conftest.file
10421
# Do `set' in a subshell so we don't clobber the current shell's
10422
# arguments. Must try -L first in case configure is actually a
10423
# symlink; some systems play weird games with the mod time of symlinks
10424
# (eg FreeBSD returns the mod time of the symlink's containing
10427
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
10428
if test "$[*]" = "X"; then
10430
set X `ls -t $srcdir/configure conftest.file`
10432
rm -f conftest.file
10433
if test "$[*]" != "X $srcdir/configure conftest.file" \
10434
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
10436
# If neither matched, then we have a broken ls. This can happen
10437
# if, for instance, CONFIG_SHELL is bash and it inherits a
10438
# broken ls alias from the environment. This has actually
10439
# happened. Such a system could not be considered "sane".
10440
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10441
alias in your environment])
10444
test "$[2]" = conftest.file
10450
AC_MSG_ERROR([newly created file is older than distributed files!
10451
Check your system clock])
10453
AC_MSG_RESULT(yes)])
10455
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10457
# This file is free software; the Free Software Foundation
10458
# gives unlimited permission to copy and/or distribute it,
10459
# with or without modifications, as long as this notice is preserved.
10461
# AM_PROG_INSTALL_STRIP
10462
# ---------------------
10463
# One issue with vendor `install' (even GNU) is that you can't
10464
# specify the program used to strip binaries. This is especially
10465
# annoying in cross-compiling environments, where the build's strip
10466
# is unlikely to handle the host's binaries.
10467
# Fortunately install-sh will honor a STRIPPROG variable, so we
10468
# always use install-sh in `make install-strip', and initialize
10469
# STRIPPROG with the value of the STRIP variable (set by the user).
10470
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10471
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10472
# Installed binaries are usually stripped using `strip' when the user
10473
# run `make install-strip'. However `strip' might not be the right
10474
# tool to use in cross-compilation environments, therefore Automake
10475
# will honor the `STRIP' environment variable to overrule this program.
10476
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10477
if test "$cross_compiling" != no; then
10478
AC_CHECK_TOOL([STRIP], [strip], :)
10480
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10481
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10483
# Copyright (C) 2006 Free Software Foundation, Inc.
10485
# This file is free software; the Free Software Foundation
10486
# gives unlimited permission to copy and/or distribute it,
10487
# with or without modifications, as long as this notice is preserved.
10489
# _AM_SUBST_NOTMAKE(VARIABLE)
10490
# ---------------------------
10491
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10492
# This macro is traced by Automake.
10493
AC_DEFUN([_AM_SUBST_NOTMAKE])
10495
# Check how to create a tarball. -*- Autoconf -*-
10497
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
10499
# This file is free software; the Free Software Foundation
10500
# gives unlimited permission to copy and/or distribute it,
10501
# with or without modifications, as long as this notice is preserved.
10505
# _AM_PROG_TAR(FORMAT)
10506
# --------------------
10507
# Check how to create a tarball in format FORMAT.
10508
# FORMAT should be one of `v7', `ustar', or `pax'.
10510
# Substitute a variable $(am__tar) that is a command
10511
# writing to stdout a FORMAT-tarball containing the directory
10513
# tardir=directory && $(am__tar) > result.tar
10515
# Substitute a variable $(am__untar) that extract such
10516
# a tarball read from stdin.
10517
# $(am__untar) < result.tar
10518
AC_DEFUN([_AM_PROG_TAR],
10519
[# Always define AMTAR for backward compatibility.
10520
AM_MISSING_PROG([AMTAR], [tar])
10522
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10523
[m4_case([$1], [ustar],, [pax],,
10524
[m4_fatal([Unknown tar format])])
10525
AC_MSG_CHECKING([how to create a $1 tar archive])
10526
# Loop over all known methods to create a tar archive until one works.
10527
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10528
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10529
# Do not fold the above two line into one, because Tru64 sh and
10530
# Solaris sh will not grok spaces in the rhs of `-'.
10531
for _am_tool in $_am_tools
10535
for _am_tar in tar gnutar gtar;
10537
AM_RUN_LOG([$_am_tar --version]) && break
10539
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10540
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10541
am__untar="$_am_tar -xf -"
10544
# Must skip GNU tar: if it does not support --format= it doesn't create
10545
# ustar tarball either.
10546
(tar --version) >/dev/null 2>&1 && continue
10547
am__tar='tar chf - "$$tardir"'
10548
am__tar_='tar chf - "$tardir"'
10549
am__untar='tar xf -'
10552
am__tar='pax -L -x $1 -w "$$tardir"'
10553
am__tar_='pax -L -x $1 -w "$tardir"'
10557
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10558
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10559
am__untar='cpio -i -H $1 -d'
10568
# If the value was cached, stop now. We just wanted to have am__tar
10569
# and am__untar set.
10570
test -n "${am_cv_prog_tar_$1}" && break
10572
# tar/untar a dummy directory, and stop if the command works
10573
rm -rf conftest.dir
10575
echo GrepMe > conftest.dir/file
10576
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10577
rm -rf conftest.dir
10578
if test -s conftest.tar; then
10579
AM_RUN_LOG([$am__untar <conftest.tar])
10580
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10583
rm -rf conftest.dir
10585
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10586
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10587
AC_SUBST([am__tar])
10588
AC_SUBST([am__untar])