1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006 Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
m4_if(m4_PACKAGE_VERSION, [2.63],,
15
[m4_fatal([this file was generated for autoconf 2.63.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
19
# nls.m4 serial 3 (gettext-0.15)
20
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
21
dnl This file is free software; the Free Software Foundation
22
dnl gives unlimited permission to copy and/or distribute it,
23
dnl with or without modifications, as long as this notice is preserved.
25
dnl This file can can be used in projects which are not available under
26
dnl the GNU General Public License or the GNU Library General Public
27
dnl License but which still want to provide support for the GNU gettext
29
dnl Please note that the actual code of the GNU gettext library is covered
30
dnl by the GNU Library General Public License, and the rest of the GNU
31
dnl gettext package package is covered by the GNU General Public License.
32
dnl They are *not* in the public domain.
35
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
36
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
42
AC_MSG_CHECKING([whether NLS is requested])
43
dnl Default is enabled NLS
45
[ --disable-nls do not use Native Language Support],
46
USE_NLS=$enableval, USE_NLS=yes)
47
AC_MSG_RESULT($USE_NLS)
51
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
53
# This file is free software; the Free Software Foundation
54
# gives unlimited permission to copy and/or distribute it,
55
# with or without modifications, as long as this notice is preserved.
57
# AM_AUTOMAKE_VERSION(VERSION)
58
# ----------------------------
59
# Automake X.Y traces this macro to ensure aclocal.m4 has been
60
# generated from the m4 files accompanying Automake X.Y.
61
# (This private macro should not be called outside this file.)
62
AC_DEFUN([AM_AUTOMAKE_VERSION],
63
[am__api_version='1.10'
64
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
65
dnl require some minimum version. Point them to the right macro.
66
m4_if([$1], [1.10], [],
67
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
70
# _AM_AUTOCONF_VERSION(VERSION)
71
# -----------------------------
72
# aclocal traces this macro to find the Autoconf version.
73
# This is a private macro too. Using m4_define simplifies
74
# the logic in aclocal, which can simply ignore this definition.
75
m4_define([_AM_AUTOCONF_VERSION], [])
77
# AM_SET_CURRENT_AUTOMAKE_VERSION
78
# -------------------------------
79
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
80
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
81
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
82
[AM_AUTOMAKE_VERSION([1.10])dnl
83
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
85
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
87
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
89
# This file is free software; the Free Software Foundation
90
# gives unlimited permission to copy and/or distribute it,
91
# with or without modifications, as long as this notice is preserved.
93
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
94
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
95
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
97
# Of course, Automake must honor this variable whenever it calls a
98
# tool from the auxiliary directory. The problem is that $srcdir (and
99
# therefore $ac_aux_dir as well) can be either absolute or relative,
100
# depending on how configure is run. This is pretty annoying, since
101
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
102
# source directory, any form will work fine, but in subdirectories a
103
# relative path needs to be adjusted first.
105
# $ac_aux_dir/missing
106
# fails when called from a subdirectory if $ac_aux_dir is relative
107
# $top_srcdir/$ac_aux_dir/missing
108
# fails if $ac_aux_dir is absolute,
109
# fails when called from a subdirectory in a VPATH build with
110
# a relative $ac_aux_dir
112
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
113
# are both prefixed by $srcdir. In an in-source build this is usually
114
# harmless because $srcdir is `.', but things will broke when you
115
# start a VPATH build or use an absolute $srcdir.
117
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
118
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
119
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
120
# and then we would define $MISSING as
121
# MISSING="\${SHELL} $am_aux_dir/missing"
122
# This will work as long as MISSING is not called from configure, because
123
# unfortunately $(top_srcdir) has no meaning in configure.
124
# However there are other variables, like CC, which are often used in
125
# configure, and could therefore not use this "fixed" $ac_aux_dir.
127
# Another solution, used here, is to always expand $ac_aux_dir to an
128
# absolute PATH. The drawback is that using absolute paths prevent a
129
# configured tree to be moved without reconfiguration.
131
AC_DEFUN([AM_AUX_DIR_EXPAND],
132
[dnl Rely on autoconf to set up CDPATH properly.
134
# expand $ac_aux_dir to an absolute path
135
am_aux_dir=`cd $ac_aux_dir && pwd`
138
# AM_CONDITIONAL -*- Autoconf -*-
140
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
141
# Free Software Foundation, Inc.
143
# This file is free software; the Free Software Foundation
144
# gives unlimited permission to copy and/or distribute it,
145
# with or without modifications, as long as this notice is preserved.
149
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
150
# -------------------------------------
151
# Define a conditional.
152
AC_DEFUN([AM_CONDITIONAL],
154
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
155
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
156
AC_SUBST([$1_TRUE])dnl
157
AC_SUBST([$1_FALSE])dnl
158
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
159
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
167
AC_CONFIG_COMMANDS_PRE(
168
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
169
AC_MSG_ERROR([[conditional "$1" was never defined.
170
Usually this means the macro was only invoked conditionally.]])
173
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
174
# Free Software Foundation, Inc.
176
# This file is free software; the Free Software Foundation
177
# gives unlimited permission to copy and/or distribute it,
178
# with or without modifications, as long as this notice is preserved.
182
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
183
# written in clear, in which case automake, when reading aclocal.m4,
184
# will think it sees a *use*, and therefore will trigger all it's
185
# C support machinery. Also note that it means that autoscan, seeing
186
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
189
# _AM_DEPENDENCIES(NAME)
190
# ----------------------
191
# See how the compiler implements dependency checking.
192
# NAME is "CC", "CXX", "GCJ", or "OBJC".
193
# We try a few techniques and use that to set a single cache variable.
195
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
196
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
197
# dependency, and given that the user is not expected to run this macro,
198
# just rely on AC_PROG_CC.
199
AC_DEFUN([_AM_DEPENDENCIES],
200
[AC_REQUIRE([AM_SET_DEPDIR])dnl
201
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
202
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
203
AC_REQUIRE([AM_DEP_TRACK])dnl
205
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
206
[$1], CXX, [depcc="$CXX" am_compiler_list=],
207
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
208
[$1], UPC, [depcc="$UPC" am_compiler_list=],
209
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
210
[depcc="$$1" am_compiler_list=])
212
AC_CACHE_CHECK([dependency style of $depcc],
213
[am_cv_$1_dependencies_compiler_type],
214
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
215
# We make a subdir and do the tests there. Otherwise we can end up
216
# making bogus files that we don't know about and never remove. For
217
# instance it was reported that on HP-UX the gcc test will end up
218
# making a dummy file named `D' -- because `-MD' means `put the output
221
# Copy depcomp to subdir because otherwise we won't find it if we're
222
# using a relative directory.
223
cp "$am_depcomp" conftest.dir
225
# We will build objects and dependencies in a subdirectory because
226
# it helps to detect inapplicable dependency modes. For instance
227
# both Tru64's cc and ICC support -MD to output dependencies as a
228
# side effect of compilation, but ICC will put the dependencies in
229
# the current directory while Tru64 will put them in the object
233
am_cv_$1_dependencies_compiler_type=none
234
if test "$am_compiler_list" = ""; then
235
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
237
for depmode in $am_compiler_list; do
238
# Setup a source with many dependencies, because some compilers
239
# like to wrap large dependency lists on column 80 (with \), and
240
# we should not choose a depcomp mode which is confused by this.
242
# We need to recreate these files for each test, as the compiler may
243
# overwrite some of them when testing with obscure command lines.
244
# This happens at least with the AIX C compiler.
246
for i in 1 2 3 4 5 6; do
247
echo '#include "conftst'$i'.h"' >> sub/conftest.c
248
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
249
# Solaris 8's {/usr,}/bin/sh.
250
touch sub/conftst$i.h
252
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
256
# after this tag, mechanisms are not by side-effect, so they'll
257
# only be used when explicitly requested
258
if test "x$enable_dependency_tracking" = xyes; then
266
# We check with `-c' and `-o' for the sake of the "dashmstdout"
267
# mode. It turns out that the SunPro C++ compiler does not properly
268
# handle `-M -o', and we need to detect this.
269
if depmode=$depmode \
270
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
271
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
272
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
273
>/dev/null 2>conftest.err &&
274
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
275
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
276
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
277
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
278
# icc doesn't choke on unknown options, it will just issue warnings
279
# or remarks (even with -Werror). So we grep stderr for any message
280
# that says an option was ignored or not supported.
281
# When given -MP, icc 7.0 and 7.1 complain thusly:
282
# icc: Command line warning: ignoring option '-M'; no argument required
283
# The diagnosis changed in icc 8.0:
284
# icc: Command line remark: option '-MP' not supported
285
if (grep 'ignoring option' conftest.err ||
286
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
287
am_cv_$1_dependencies_compiler_type=$depmode
296
am_cv_$1_dependencies_compiler_type=none
299
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
300
AM_CONDITIONAL([am__fastdep$1], [
301
test "x$enable_dependency_tracking" != xno \
302
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
308
# Choose a directory name for dependency files.
309
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
310
AC_DEFUN([AM_SET_DEPDIR],
311
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
312
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
318
AC_DEFUN([AM_DEP_TRACK],
319
[AC_ARG_ENABLE(dependency-tracking,
320
[ --disable-dependency-tracking speeds up one-time build
321
--enable-dependency-tracking do not reject slow dependency extractors])
322
if test "x$enable_dependency_tracking" != xno; then
323
am_depcomp="$ac_aux_dir/depcomp"
326
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
327
AC_SUBST([AMDEPBACKSLASH])dnl
328
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
331
# Generate code to set up dependency tracking. -*- Autoconf -*-
333
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
334
# Free Software Foundation, Inc.
336
# This file is free software; the Free Software Foundation
337
# gives unlimited permission to copy and/or distribute it,
338
# with or without modifications, as long as this notice is preserved.
342
# _AM_OUTPUT_DEPENDENCY_COMMANDS
343
# ------------------------------
344
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
345
[for mf in $CONFIG_FILES; do
346
# Strip MF so we end up with the name of the file.
347
mf=`echo "$mf" | sed -e 's/:.*$//'`
348
# Check whether this is an Automake generated Makefile or not.
349
# We used to match only the files named `Makefile.in', but
350
# some people rename them; so instead we look at the file content.
351
# Grep'ing the first line is not enough: some people post-process
352
# each Makefile.in and add a new line on top of each file to say so.
353
# Grep'ing the whole file is not good either: AIX grep has a line
354
# limit of 2048, but all sed's we know have understand at least 4000.
355
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
356
dirpart=`AS_DIRNAME("$mf")`
360
# Extract the definition of DEPDIR, am__include, and am__quote
361
# from the Makefile without running `make'.
362
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
363
test -z "$DEPDIR" && continue
364
am__include=`sed -n 's/^am__include = //p' < "$mf"`
365
test -z "am__include" && continue
366
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
367
# When using ansi2knr, U may be empty or an underscore; expand it
368
U=`sed -n 's/^U = //p' < "$mf"`
369
# Find all dependency output files, they are included files with
370
# $(DEPDIR) in their names. We invoke sed twice because it is the
371
# simplest approach to changing $(DEPDIR) to its actual value in the
373
for file in `sed -n "
374
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
375
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
376
# Make sure the directory exists.
377
test -f "$dirpart/$file" && continue
378
fdir=`AS_DIRNAME(["$file"])`
379
AS_MKDIR_P([$dirpart/$fdir])
380
# echo "creating $dirpart/$file"
381
echo '# dummy' > "$dirpart/$file"
384
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
387
# AM_OUTPUT_DEPENDENCY_COMMANDS
388
# -----------------------------
389
# This macro should only be invoked once -- use via AC_REQUIRE.
391
# This code is only required when automatic dependency tracking
392
# is enabled. FIXME. This creates each `.P' file that we will
393
# need in order to bootstrap the dependency handling code.
394
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
395
[AC_CONFIG_COMMANDS([depfiles],
396
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
397
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
400
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
401
# Free Software Foundation, Inc.
403
# This file is free software; the Free Software Foundation
404
# gives unlimited permission to copy and/or distribute it,
405
# with or without modifications, as long as this notice is preserved.
409
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
410
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
412
# Do all the work for Automake. -*- Autoconf -*-
414
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
415
# 2005, 2006 Free Software Foundation, Inc.
417
# This file is free software; the Free Software Foundation
418
# gives unlimited permission to copy and/or distribute it,
419
# with or without modifications, as long as this notice is preserved.
423
# This macro actually does too much. Some checks are only needed if
424
# your package does certain things. But this isn't really a big deal.
426
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
427
# AM_INIT_AUTOMAKE([OPTIONS])
428
# -----------------------------------------------
429
# The call with PACKAGE and VERSION arguments is the old style
430
# call (pre autoconf-2.50), which is being phased out. PACKAGE
431
# and VERSION should now be passed to AC_INIT and removed from
432
# the call to AM_INIT_AUTOMAKE.
433
# We support both call styles for the transition. After
434
# the next Automake release, Autoconf can make the AC_INIT
435
# arguments mandatory, and then we can depend on a new Autoconf
436
# release and drop the old call support.
437
AC_DEFUN([AM_INIT_AUTOMAKE],
438
[AC_PREREQ([2.60])dnl
439
dnl Autoconf wants to disallow AM_ names. We explicitly allow
440
dnl the ones we care about.
441
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
442
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
443
AC_REQUIRE([AC_PROG_INSTALL])dnl
444
if test "`cd $srcdir && pwd`" != "`pwd`"; then
445
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
446
# is not polluted with repeated "-I."
447
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
448
# test to see if srcdir already configured
449
if test -f $srcdir/config.status; then
450
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
454
# test whether we have cygpath
455
if test -z "$CYGPATH_W"; then
456
if (cygpath --version) >/dev/null 2>/dev/null; then
457
CYGPATH_W='cygpath -w'
462
AC_SUBST([CYGPATH_W])
464
# Define the identity of the package.
465
dnl Distinguish between old-style and new-style calls.
467
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
468
AC_SUBST([PACKAGE], [$1])dnl
469
AC_SUBST([VERSION], [$2])],
470
[_AM_SET_OPTIONS([$1])dnl
471
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
472
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
473
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
474
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
475
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
477
_AM_IF_OPTION([no-define],,
478
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
479
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
481
# Some tools Automake needs.
482
AC_REQUIRE([AM_SANITY_CHECK])dnl
483
AC_REQUIRE([AC_ARG_PROGRAM])dnl
484
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
485
AM_MISSING_PROG(AUTOCONF, autoconf)
486
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
487
AM_MISSING_PROG(AUTOHEADER, autoheader)
488
AM_MISSING_PROG(MAKEINFO, makeinfo)
490
AM_PROG_INSTALL_STRIP
491
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
492
# We need awk for the "check" target. The system "awk" is bad on
494
AC_REQUIRE([AC_PROG_AWK])dnl
495
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
496
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
497
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
498
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
499
[_AM_PROG_TAR([v7])])])
500
_AM_IF_OPTION([no-dependencies],,
501
[AC_PROVIDE_IFELSE([AC_PROG_CC],
502
[_AM_DEPENDENCIES(CC)],
503
[define([AC_PROG_CC],
504
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
505
AC_PROVIDE_IFELSE([AC_PROG_CXX],
506
[_AM_DEPENDENCIES(CXX)],
507
[define([AC_PROG_CXX],
508
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
509
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
510
[_AM_DEPENDENCIES(OBJC)],
511
[define([AC_PROG_OBJC],
512
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
517
# When config.status generates a header, we must update the stamp-h file.
518
# This file resides in the same directory as the config header
519
# that is generated. The stamp files are numbered to have different names.
521
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
522
# loop where config.status creates the headers, so we can generate
523
# our stamp files there.
524
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
525
[# Compute $1's index in $config_headers.
527
for _am_header in $config_headers :; do
532
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
535
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
537
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
539
# This file is free software; the Free Software Foundation
540
# gives unlimited permission to copy and/or distribute it,
541
# with or without modifications, as long as this notice is preserved.
545
# Define $install_sh.
546
AC_DEFUN([AM_PROG_INSTALL_SH],
547
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
548
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
549
AC_SUBST(install_sh)])
551
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
553
# This file is free software; the Free Software Foundation
554
# gives unlimited permission to copy and/or distribute it,
555
# with or without modifications, as long as this notice is preserved.
559
# Check whether the underlying file-system supports filenames
560
# with a leading dot. For instance MS-DOS doesn't.
561
AC_DEFUN([AM_SET_LEADING_DOT],
562
[rm -rf .tst 2>/dev/null
563
mkdir .tst 2>/dev/null
564
if test -d .tst; then
569
rmdir .tst 2>/dev/null
570
AC_SUBST([am__leading_dot])])
572
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
575
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
576
# Free Software Foundation, Inc.
578
# This file is free software; the Free Software Foundation
579
# gives unlimited permission to copy and/or distribute it,
580
# with or without modifications, as long as this notice is preserved.
584
AC_DEFUN([AM_MAINTAINER_MODE],
585
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
586
dnl maintainer-mode is disabled by default
587
AC_ARG_ENABLE(maintainer-mode,
588
[ --enable-maintainer-mode enable make rules and dependencies not useful
589
(and sometimes confusing) to the casual installer],
590
USE_MAINTAINER_MODE=$enableval,
591
USE_MAINTAINER_MODE=no)
592
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
593
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
594
MAINT=$MAINTAINER_MODE_TRUE
599
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
601
# Check to see how 'make' treats includes. -*- Autoconf -*-
603
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
605
# This file is free software; the Free Software Foundation
606
# gives unlimited permission to copy and/or distribute it,
607
# with or without modifications, as long as this notice is preserved.
613
# Check to see how make treats includes.
614
AC_DEFUN([AM_MAKE_INCLUDE],
615
[am_make=${MAKE-make}
616
cat > confinc << 'END'
621
# If we don't find an include directive, just comment out the code.
622
AC_MSG_CHECKING([for style of include used by $am_make])
626
# First try GNU make style include.
627
echo "include confinc" > confmf
628
# We grep out `Entering directory' and `Leaving directory'
629
# messages which can occur if `w' ends up in MAKEFLAGS.
630
# In particular we don't look at `^make:' because GNU make might
631
# be invoked under some other name (usually "gmake"), in which
632
# case it prints its new name instead of `make'.
633
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
638
# Now try BSD make style include.
639
if test "$am__include" = "#"; then
640
echo '.include "confinc"' > confmf
641
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
647
AC_SUBST([am__include])
648
AC_SUBST([am__quote])
649
AC_MSG_RESULT([$_am_result])
653
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
654
# Free Software Foundation, Inc.
656
# This file is free software; the Free Software Foundation
657
# gives unlimited permission to copy and/or distribute it,
658
# with or without modifications, as long as this notice is preserved.
664
# Like AC_PROG_CC_C_O, but changed for automake.
665
AC_DEFUN([AM_PROG_CC_C_O],
666
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
667
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
668
AC_REQUIRE_AUX_FILE([compile])dnl
669
# FIXME: we rely on the cache variable name because
670
# there is no other way.
672
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
673
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
674
# Losing compiler, so override with the script.
675
# FIXME: It is wrong to rewrite CC.
676
# But if we don't then we get into trouble of one sort or another.
677
# A longer-term fix would be to have automake use am__CC in this case,
678
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
679
CC="$am_aux_dir/compile $CC"
681
dnl Make sure AC_PROG_CC is never called again, or it will override our
683
m4_define([AC_PROG_CC],
684
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
687
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
689
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
690
# Free Software Foundation, Inc.
692
# This file is free software; the Free Software Foundation
693
# gives unlimited permission to copy and/or distribute it,
694
# with or without modifications, as long as this notice is preserved.
698
# AM_MISSING_PROG(NAME, PROGRAM)
699
# ------------------------------
700
AC_DEFUN([AM_MISSING_PROG],
701
[AC_REQUIRE([AM_MISSING_HAS_RUN])
702
$1=${$1-"${am_missing_run}$2"}
708
# Define MISSING if not defined so far and test if it supports --run.
709
# If it does, set am_missing_run to use it, otherwise, to nothing.
710
AC_DEFUN([AM_MISSING_HAS_RUN],
711
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
712
AC_REQUIRE_AUX_FILE([missing])dnl
713
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
714
# Use eval to expand $SHELL
715
if eval "$MISSING --run true"; then
716
am_missing_run="$MISSING --run "
719
AC_MSG_WARN([`missing' script is too old or missing])
723
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
725
# This file is free software; the Free Software Foundation
726
# gives unlimited permission to copy and/or distribute it,
727
# with or without modifications, as long as this notice is preserved.
731
# Check for `mkdir -p'.
732
AC_DEFUN([AM_PROG_MKDIR_P],
733
[AC_PREREQ([2.60])dnl
734
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
735
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
736
dnl while keeping a definition of mkdir_p for backward compatibility.
737
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
738
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
739
dnl Makefile.ins that do not define MKDIR_P, so we do our own
740
dnl adjustment using top_builddir (which is defined more often than
742
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
744
[[\\/$]]* | ?:[[\\/]]*) ;;
745
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
749
# Helper functions for option handling. -*- Autoconf -*-
751
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
753
# This file is free software; the Free Software Foundation
754
# gives unlimited permission to copy and/or distribute it,
755
# with or without modifications, as long as this notice is preserved.
759
# _AM_MANGLE_OPTION(NAME)
760
# -----------------------
761
AC_DEFUN([_AM_MANGLE_OPTION],
762
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
764
# _AM_SET_OPTION(NAME)
765
# ------------------------------
766
# Set option NAME. Presently that only means defining a flag for this option.
767
AC_DEFUN([_AM_SET_OPTION],
768
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
770
# _AM_SET_OPTIONS(OPTIONS)
771
# ----------------------------------
772
# OPTIONS is a space-separated list of Automake options.
773
AC_DEFUN([_AM_SET_OPTIONS],
774
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
776
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
777
# -------------------------------------------
778
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
779
AC_DEFUN([_AM_IF_OPTION],
780
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
782
# Check to make sure that the build environment is sane. -*- Autoconf -*-
784
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
785
# Free Software Foundation, Inc.
787
# This file is free software; the Free Software Foundation
788
# gives unlimited permission to copy and/or distribute it,
789
# with or without modifications, as long as this notice is preserved.
795
AC_DEFUN([AM_SANITY_CHECK],
796
[AC_MSG_CHECKING([whether build environment is sane])
799
echo timestamp > conftest.file
800
# Do `set' in a subshell so we don't clobber the current shell's
801
# arguments. Must try -L first in case configure is actually a
802
# symlink; some systems play weird games with the mod time of symlinks
803
# (eg FreeBSD returns the mod time of the symlink's containing
806
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
807
if test "$[*]" = "X"; then
809
set X `ls -t $srcdir/configure conftest.file`
812
if test "$[*]" != "X $srcdir/configure conftest.file" \
813
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
815
# If neither matched, then we have a broken ls. This can happen
816
# if, for instance, CONFIG_SHELL is bash and it inherits a
817
# broken ls alias from the environment. This has actually
818
# happened. Such a system could not be considered "sane".
819
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
820
alias in your environment])
823
test "$[2]" = conftest.file
829
AC_MSG_ERROR([newly created file is older than distributed files!
830
Check your system clock])
834
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
836
# This file is free software; the Free Software Foundation
837
# gives unlimited permission to copy and/or distribute it,
838
# with or without modifications, as long as this notice is preserved.
840
# AM_PROG_INSTALL_STRIP
841
# ---------------------
842
# One issue with vendor `install' (even GNU) is that you can't
843
# specify the program used to strip binaries. This is especially
844
# annoying in cross-compiling environments, where the build's strip
845
# is unlikely to handle the host's binaries.
846
# Fortunately install-sh will honor a STRIPPROG variable, so we
847
# always use install-sh in `make install-strip', and initialize
848
# STRIPPROG with the value of the STRIP variable (set by the user).
849
AC_DEFUN([AM_PROG_INSTALL_STRIP],
850
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
851
# Installed binaries are usually stripped using `strip' when the user
852
# run `make install-strip'. However `strip' might not be the right
853
# tool to use in cross-compilation environments, therefore Automake
854
# will honor the `STRIP' environment variable to overrule this program.
855
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
856
if test "$cross_compiling" != no; then
857
AC_CHECK_TOOL([STRIP], [strip], :)
859
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
860
AC_SUBST([INSTALL_STRIP_PROGRAM])])
862
# Copyright (C) 2006 Free Software Foundation, Inc.
864
# This file is free software; the Free Software Foundation
865
# gives unlimited permission to copy and/or distribute it,
866
# with or without modifications, as long as this notice is preserved.
868
# _AM_SUBST_NOTMAKE(VARIABLE)
869
# ---------------------------
870
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
871
# This macro is traced by Automake.
872
AC_DEFUN([_AM_SUBST_NOTMAKE])
874
# Check how to create a tarball. -*- Autoconf -*-
876
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
878
# This file is free software; the Free Software Foundation
879
# gives unlimited permission to copy and/or distribute it,
880
# with or without modifications, as long as this notice is preserved.
884
# _AM_PROG_TAR(FORMAT)
885
# --------------------
886
# Check how to create a tarball in format FORMAT.
887
# FORMAT should be one of `v7', `ustar', or `pax'.
889
# Substitute a variable $(am__tar) that is a command
890
# writing to stdout a FORMAT-tarball containing the directory
892
# tardir=directory && $(am__tar) > result.tar
894
# Substitute a variable $(am__untar) that extract such
895
# a tarball read from stdin.
896
# $(am__untar) < result.tar
897
AC_DEFUN([_AM_PROG_TAR],
898
[# Always define AMTAR for backward compatibility.
899
AM_MISSING_PROG([AMTAR], [tar])
901
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
902
[m4_case([$1], [ustar],, [pax],,
903
[m4_fatal([Unknown tar format])])
904
AC_MSG_CHECKING([how to create a $1 tar archive])
905
# Loop over all known methods to create a tar archive until one works.
906
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
907
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
908
# Do not fold the above two line into one, because Tru64 sh and
909
# Solaris sh will not grok spaces in the rhs of `-'.
910
for _am_tool in $_am_tools
914
for _am_tar in tar gnutar gtar;
916
AM_RUN_LOG([$_am_tar --version]) && break
918
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
919
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
920
am__untar="$_am_tar -xf -"
923
# Must skip GNU tar: if it does not support --format= it doesn't create
924
# ustar tarball either.
925
(tar --version) >/dev/null 2>&1 && continue
926
am__tar='tar chf - "$$tardir"'
927
am__tar_='tar chf - "$tardir"'
931
am__tar='pax -L -x $1 -w "$$tardir"'
932
am__tar_='pax -L -x $1 -w "$tardir"'
936
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
937
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
938
am__untar='cpio -i -H $1 -d'
947
# If the value was cached, stop now. We just wanted to have am__tar
949
test -n "${am_cv_prog_tar_$1}" && break
951
# tar/untar a dummy directory, and stop if the command works
954
echo GrepMe > conftest.dir/file
955
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
957
if test -s conftest.tar; then
958
AM_RUN_LOG([$am__untar <conftest.tar])
959
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
964
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
965
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
967
AC_SUBST([am__untar])
970
dnl AM_GCONF_SOURCE_2
971
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
972
dnl (i.e. pass to gconftool-2
973
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
974
dnl you should install foo.schemas files
977
AC_DEFUN([AM_GCONF_SOURCE_2],
979
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
980
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
982
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
985
AC_ARG_WITH([gconf-source],
986
AC_HELP_STRING([--with-gconf-source=sourceaddress],
987
[Config database for installing schema files.]),
988
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
990
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
991
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
993
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
994
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
997
AC_ARG_WITH([gconf-schema-file-dir],
998
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
999
[Directory for installing schema files.]),
1000
[GCONF_SCHEMA_FILE_DIR="$withval"],)
1002
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
1003
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
1005
AC_ARG_ENABLE(schemas-install,
1006
AC_HELP_STRING([--disable-schemas-install],
1007
[Disable the schemas installation]),
1008
[case ${enableval} in
1010
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
1012
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
1015
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1016
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1018
# This file is free software, distributed under the terms of the GNU
1019
# General Public License. As a special exception to the GNU General
1020
# Public License, this file may be distributed as part of a program
1021
# that contains a configuration script generated by Autoconf, under
1022
# the same distribution terms as the rest of that program.
1024
# This file can be copied and used freely without restrictions. It can
1025
# be used in projects which are not available under the GNU Public License
1026
# but which still want to provide support for the GNU gettext functionality.
1028
# Macro to add for using GNU gettext.
1029
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
1031
# Modified to never use included libintl.
1032
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
1034
# Major rework to remove unused code
1035
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
1037
# Added better handling of ALL_LINGUAS from GNU gettext version
1038
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
1040
# Modified to require ngettext
1041
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
1043
# We need this here as well, since someone might use autoconf-2.5x
1044
# to configure GLib then an older version to configure a package
1045
# using AM_GLIB_GNU_GETTEXT
1049
dnl We go to great lengths to make sure that aclocal won't
1050
dnl try to pull in the installed version of these macros
1051
dnl when running aclocal in the glib directory.
1053
m4_copy([AC_DEFUN],[glib_DEFUN])
1054
m4_copy([AC_REQUIRE],[glib_REQUIRE])
1056
dnl At the end, if we're not within glib, we'll define the public
1057
dnl definitions in terms of our private definitions.
1061
#--------------------
1062
glib_DEFUN([GLIB_LC_MESSAGES],
1063
[AC_CHECK_HEADERS([locale.h])
1064
if test $ac_cv_header_locale_h = yes; then
1065
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
1066
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1067
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
1068
if test $am_cv_val_LC_MESSAGES = yes; then
1069
AC_DEFINE(HAVE_LC_MESSAGES, 1,
1070
[Define if your <locale.h> file defines LC_MESSAGES.])
1074
# GLIB_PATH_PROG_WITH_TEST
1075
#----------------------------
1076
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1077
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1078
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
1079
[# Extract the first word of "$2", so it can be a program name with args.
1080
set dummy $2; ac_word=[$]2
1081
AC_MSG_CHECKING([for $ac_word])
1082
AC_CACHE_VAL(ac_cv_path_$1,
1085
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1088
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1089
for ac_dir in ifelse([$5], , $PATH, [$5]); do
1090
test -z "$ac_dir" && ac_dir=.
1091
if test -f $ac_dir/$ac_word; then
1093
ac_cv_path_$1="$ac_dir/$ac_word"
1099
dnl If no 4th arg is given, leave the cache variable unset,
1100
dnl so AC_PATH_PROGS will keep looking.
1101
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1106
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
1107
AC_MSG_RESULT([$]$1)
1116
glib_DEFUN([GLIB_WITH_NLS],
1117
dnl NLS is obligatory
1118
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1122
gt_cv_have_gettext=no
1128
AC_CHECK_HEADER(libintl.h,
1129
[gt_cv_func_dgettext_libintl="no"
1130
libintl_extra_libs=""
1133
# First check in libc
1135
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
1137
#include <libintl.h>
1139
[return !ngettext ("","", 1)],
1140
gt_cv_func_ngettext_libc=yes,
1141
gt_cv_func_ngettext_libc=no)
1144
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1145
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
1147
#include <libintl.h>
1149
[return !dgettext ("","")],
1150
gt_cv_func_dgettext_libc=yes,
1151
gt_cv_func_dgettext_libc=no)
1155
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1156
AC_CHECK_FUNCS(bind_textdomain_codeset)
1160
# If we don't have everything we want, check in libintl
1162
if test "$gt_cv_func_dgettext_libc" != "yes" \
1163
|| test "$gt_cv_func_ngettext_libc" != "yes" \
1164
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
1166
AC_CHECK_LIB(intl, bindtextdomain,
1167
[AC_CHECK_LIB(intl, ngettext,
1168
[AC_CHECK_LIB(intl, dgettext,
1169
gt_cv_func_dgettext_libintl=yes)])])
1171
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
1172
AC_MSG_CHECKING([if -liconv is needed to use gettext])
1174
AC_CHECK_LIB(intl, ngettext,
1175
[AC_CHECK_LIB(intl, dcgettext,
1176
[gt_cv_func_dgettext_libintl=yes
1177
libintl_extra_libs=-liconv],
1183
# If we found libintl, then check in it for bind_textdomain_codeset();
1184
# we'll prefer libc if neither have bind_textdomain_codeset(),
1185
# and both have dgettext and ngettext
1187
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
1188
glib_save_LIBS="$LIBS"
1189
LIBS="$LIBS -lintl $libintl_extra_libs"
1190
unset ac_cv_func_bind_textdomain_codeset
1191
AC_CHECK_FUNCS(bind_textdomain_codeset)
1192
LIBS="$glib_save_LIBS"
1194
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
1195
gt_cv_func_dgettext_libc=no
1197
if test "$gt_cv_func_dgettext_libc" = "yes" \
1198
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
1199
gt_cv_func_dgettext_libintl=no
1205
if test "$gt_cv_func_dgettext_libc" = "yes" \
1206
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
1207
gt_cv_have_gettext=yes
1210
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
1211
INTLLIBS="-lintl $libintl_extra_libs"
1214
if test "$gt_cv_have_gettext" = "yes"; then
1215
AC_DEFINE(HAVE_GETTEXT,1,
1216
[Define if the GNU gettext() function is already present or preinstalled.])
1217
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1218
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
1219
if test "$MSGFMT" != "no"; then
1220
glib_save_LIBS="$LIBS"
1221
LIBS="$LIBS $INTLLIBS"
1222
AC_CHECK_FUNCS(dcgettext)
1224
AC_MSG_CHECKING([if msgfmt accepts -c])
1225
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
1228
"Content-Type: text/plain; charset=UTF-8\n"
1229
"Project-Id-Version: test 1.0\n"
1230
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
1231
"Last-Translator: test <foo@bar.xx>\n"
1232
"Language-Team: C <LL@li.org>\n"
1233
"MIME-Version: 1.0\n"
1234
"Content-Transfer-Encoding: 8bit\n"
1235
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
1236
AC_SUBST(MSGFMT_OPTS)
1237
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1238
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1239
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
1240
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
1241
return _nl_msg_cat_cntr],
1246
dnl On Solaris, if bind_textdomain_codeset is in libc,
1247
dnl GNU format message catalog is always supported,
1248
dnl since both are added to the libc all together.
1249
dnl Hence, we'd like to go with DATADIRNAME=share and
1250
dnl and CATOBJEXT=.gmo in this case.
1251
AC_CHECK_FUNC(bind_textdomain_codeset,
1262
LIBS="$glib_save_LIBS"
1265
gt_cv_have_gettext=no
1270
if test "$gt_cv_have_gettext" = "yes" ; then
1271
AC_DEFINE(ENABLE_NLS, 1,
1272
[always defined to indicate that i18n is enabled])
1275
dnl Test whether we really found GNU xgettext.
1276
if test "$XGETTEXT" != ":"; then
1277
dnl If it is not GNU xgettext we define it as : so that the
1278
dnl Makefiles still can work.
1279
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
1283
[found xgettext program is not GNU xgettext; ignore it])
1288
# We need to process the po/ directory.
1292
[case "$CONFIG_FILES" in *po/Makefile.in*)
1293
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
1296
dnl These rules are solely for the distribution goal. While doing this
1297
dnl we only have to keep exactly one list of the available catalogs
1298
dnl in configure.in.
1299
for lang in $ALL_LINGUAS; do
1300
GMOFILES="$GMOFILES $lang.gmo"
1301
POFILES="$POFILES $lang.po"
1304
dnl Make all variables we use known to autoconf.
1307
AC_SUBST(DATADIRNAME)
1309
AC_SUBST(INSTOBJEXT)
1311
AC_SUBST(PO_IN_DATADIR_TRUE)
1312
AC_SUBST(PO_IN_DATADIR_FALSE)
1317
# AM_GLIB_GNU_GETTEXT
1318
# -------------------
1319
# Do checks necessary for use of gettext. If a suitable implementation
1320
# of gettext is found in either in libintl or in the C library,
1321
# it will set INTLLIBS to the libraries needed for use of gettext
1322
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
1323
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
1324
# on various variables needed by the Makefile.in.in installed by
1327
glib_DEFUN([GLIB_GNU_GETTEXT],
1328
[AC_REQUIRE([AC_PROG_CC])dnl
1329
AC_REQUIRE([AC_HEADER_STDC])dnl
1334
if test "$gt_cv_have_gettext" = "yes"; then
1335
if test "x$ALL_LINGUAS" = "x"; then
1338
AC_MSG_CHECKING(for catalogs to be installed)
1340
for presentlang in $ALL_LINGUAS; do
1342
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
1343
desiredlanguages="$LINGUAS"
1345
desiredlanguages="$ALL_LINGUAS"
1347
for desiredlang in $desiredlanguages; do
1348
# Use the presentlang catalog if desiredlang is
1349
# a. equal to presentlang, or
1350
# b. a variant of presentlang (because in this case,
1351
# presentlang can be used as a fallback for messages
1352
# which are not translated in the desiredlang catalog).
1353
case "$desiredlang" in
1354
"$presentlang"*) useit=yes;;
1357
if test $useit = yes; then
1358
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
1361
LINGUAS=$NEW_LINGUAS
1362
AC_MSG_RESULT($LINGUAS)
1365
dnl Construct list of names of catalog files to be constructed.
1366
if test -n "$LINGUAS"; then
1367
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
1371
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
1372
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
1373
dnl Try to locate is.
1375
if test -n "$ac_aux_dir"; then
1376
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1378
if test -z "$MKINSTALLDIRS"; then
1379
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1381
AC_SUBST(MKINSTALLDIRS)
1383
dnl Generate list of files to be processed by xgettext which will
1384
dnl be included in po/Makefile.
1385
test -d po || mkdir po
1386
if test "x$srcdir" != "x."; then
1387
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
1388
posrcprefix="$srcdir/"
1390
posrcprefix="../$srcdir/"
1396
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
1397
< $srcdir/po/POTFILES.in > po/POTFILES
1400
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
1401
# -------------------------------
1402
# Define VARIABLE to the location where catalog files will
1403
# be installed by po/Makefile.
1404
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
1405
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
1406
glib_save_prefix="$prefix"
1407
glib_save_exec_prefix="$exec_prefix"
1408
glib_save_datarootdir="$datarootdir"
1409
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1410
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
1411
datarootdir=`eval echo "${datarootdir}"`
1412
if test "x$CATOBJEXT" = "x.mo" ; then
1413
localedir=`eval echo "${libdir}/locale"`
1415
localedir=`eval echo "${datadir}/locale"`
1417
prefix="$glib_save_prefix"
1418
exec_prefix="$glib_save_exec_prefix"
1419
datarootdir="$glib_save_datarootdir"
1420
AC_DEFINE_UNQUOTED($1, "$localedir",
1421
[Define the location where the catalogs will be installed])
1425
dnl Now the definitions that aclocal will find
1427
ifdef(glib_configure_in,[],[
1428
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
1429
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
1432
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
1434
# Create a temporary file with TEST-FILE as its contents and pass the
1435
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
1436
# 0 and perform ACTION-IF-FAIL for any other exit status.
1437
AC_DEFUN([GLIB_RUN_PROG],
1438
[cat >conftest.foo <<_ACEOF
1441
if AC_RUN_LOG([$1 conftest.foo]); then
1442
m4_ifval([$3], [$3], [:])
1443
m4_ifvaln([$4], [else $4])dnl
1444
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
1445
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
1449
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1451
# serial 48 AC_PROG_LIBTOOL
1454
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1455
# -----------------------------------------------------------
1456
# If this macro is not defined by Autoconf, define it here.
1457
m4_ifdef([AC_PROVIDE_IFELSE],
1459
[m4_define([AC_PROVIDE_IFELSE],
1460
[m4_ifdef([AC_PROVIDE_$1],
1466
AC_DEFUN([AC_PROG_LIBTOOL],
1467
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1468
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1469
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1470
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1472
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1474
dnl And a similar setup for Fortran 77 support
1475
AC_PROVIDE_IFELSE([AC_PROG_F77],
1477
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1480
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1481
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1482
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1483
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1485
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1487
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1489
[ifdef([AC_PROG_GCJ],
1490
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1491
ifdef([A][M_PROG_GCJ],
1492
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1493
ifdef([LT_AC_PROG_GCJ],
1494
[define([LT_AC_PROG_GCJ],
1495
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1496
])])# AC_PROG_LIBTOOL
1501
AC_DEFUN([_AC_PROG_LIBTOOL],
1502
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1503
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1504
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1505
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1507
# This can be used to rebuild libtool when needed
1508
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1510
# Always use our own libtool.
1511
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1512
AC_SUBST(LIBTOOL)dnl
1514
# Prevent multiple expansion
1515
define([AC_PROG_LIBTOOL], [])
1516
])# _AC_PROG_LIBTOOL
1521
AC_DEFUN([AC_LIBTOOL_SETUP],
1523
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1524
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1525
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1526
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1527
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1528
AC_REQUIRE([AC_PROG_CC])dnl
1529
AC_REQUIRE([AC_PROG_LD])dnl
1530
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1531
AC_REQUIRE([AC_PROG_NM])dnl
1533
AC_REQUIRE([AC_PROG_LN_S])dnl
1534
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1535
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1536
AC_REQUIRE([AC_OBJEXT])dnl
1537
AC_REQUIRE([AC_EXEEXT])dnl
1540
AC_LIBTOOL_SYS_MAX_CMD_LEN
1541
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1544
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1545
_LT_AC_PROG_ECHO_BACKSLASH
1549
# AIX sometimes has problems with the GCC collect2 program. For some
1550
# reason, if we set the COLLECT_NAMES environment variable, the problems
1551
# vanish in a puff of smoke.
1552
if test "X${COLLECT_NAMES+set}" != Xset; then
1554
export COLLECT_NAMES
1559
# Sed substitution that helps us do robust quoting. It backslashifies
1560
# metacharacters that are still active within double-quoted strings.
1561
Xsed='sed -e 1s/^X//'
1562
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1564
# Same as above, but do not quote variable references.
1565
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1567
# Sed substitution to delay expansion of an escaped shell variable in a
1568
# double_quote_subst'ed string.
1569
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1571
# Sed substitution to avoid accidental globbing in evaled expressions
1572
no_glob_subst='s/\*/\\\*/g'
1578
default_ofile=libtool
1579
can_build_shared=yes
1581
# All known linkers require a `.a' archive for static linking (except MSVC,
1582
# which needs '.lib').
1584
ltmain="$ac_aux_dir/ltmain.sh"
1585
ofile="$default_ofile"
1586
with_gnu_ld="$lt_cv_prog_gnu_ld"
1588
AC_CHECK_TOOL(AR, ar, false)
1589
AC_CHECK_TOOL(RANLIB, ranlib, :)
1590
AC_CHECK_TOOL(STRIP, strip, :)
1593
old_CFLAGS="$CFLAGS"
1595
# Set sane defaults for various variables
1596
test -z "$AR" && AR=ar
1597
test -z "$AR_FLAGS" && AR_FLAGS=cru
1598
test -z "$AS" && AS=as
1599
test -z "$CC" && CC=cc
1600
test -z "$LTCC" && LTCC=$CC
1601
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1602
test -z "$DLLTOOL" && DLLTOOL=dlltool
1603
test -z "$LD" && LD=ld
1604
test -z "$LN_S" && LN_S="ln -s"
1605
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1606
test -z "$NM" && NM=nm
1607
test -z "$SED" && SED=sed
1608
test -z "$OBJDUMP" && OBJDUMP=objdump
1609
test -z "$RANLIB" && RANLIB=:
1610
test -z "$STRIP" && STRIP=:
1611
test -z "$ac_objext" && ac_objext=o
1613
# Determine commands to create old-style static archives.
1614
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1615
old_postinstall_cmds='chmod 644 $oldlib'
1616
old_postuninstall_cmds=
1618
if test -n "$RANLIB"; then
1621
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1624
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1627
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1630
_LT_CC_BASENAME([$compiler])
1632
# Only perform the check for file, if the check method requires it
1633
case $deplibs_check_method in
1635
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1641
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1642
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1643
enable_win32_dll=yes, enable_win32_dll=no)
1645
AC_ARG_ENABLE([libtool-lock],
1646
[AC_HELP_STRING([--disable-libtool-lock],
1647
[avoid locking (might break parallel builds)])])
1648
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1651
[AC_HELP_STRING([--with-pic],
1652
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1653
[pic_mode="$withval"],
1655
test -z "$pic_mode" && pic_mode=default
1657
# Use C for the default configuration in the libtool script
1659
AC_LIBTOOL_LANG_C_CONFIG
1661
])# AC_LIBTOOL_SETUP
1664
# _LT_AC_SYS_COMPILER
1665
# -------------------
1666
AC_DEFUN([_LT_AC_SYS_COMPILER],
1667
[AC_REQUIRE([AC_PROG_CC])dnl
1669
# If no C compiler was specified, use CC.
1672
# If no C compiler flags were specified, use CFLAGS.
1673
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1675
# Allow CC to be a program name with arguments.
1677
])# _LT_AC_SYS_COMPILER
1680
# _LT_CC_BASENAME(CC)
1681
# -------------------
1682
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1683
AC_DEFUN([_LT_CC_BASENAME],
1684
[for cc_temp in $1""; do
1686
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1687
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1692
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1696
# _LT_COMPILER_BOILERPLATE
1697
# ------------------------
1698
# Check for compiler boilerplate output or warnings with
1699
# the simple compiler test code.
1700
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1701
[ac_outfile=conftest.$ac_objext
1702
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1703
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1704
_lt_compiler_boilerplate=`cat conftest.err`
1706
])# _LT_COMPILER_BOILERPLATE
1709
# _LT_LINKER_BOILERPLATE
1710
# ----------------------
1711
# Check for linker boilerplate output or warnings with
1712
# the simple link test code.
1713
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1714
[ac_outfile=conftest.$ac_objext
1715
printf "$lt_simple_link_test_code" >conftest.$ac_ext
1716
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1717
_lt_linker_boilerplate=`cat conftest.err`
1719
])# _LT_LINKER_BOILERPLATE
1722
# _LT_AC_SYS_LIBPATH_AIX
1723
# ----------------------
1724
# Links a minimal program and checks the executable
1725
# for the system default hardcoded library path. In most cases,
1726
# this is /usr/lib:/lib, but when the MPI compilers are used
1727
# the location of the communication and MPI libs are included too.
1728
# If we don't find anything, use the default library path according
1729
# to the aix ld manual.
1730
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1731
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1732
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1734
# Check for a 64-bit object if we didn't find anything.
1735
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1737
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1738
])# _LT_AC_SYS_LIBPATH_AIX
1741
# _LT_AC_SHELL_INIT(ARG)
1742
# ----------------------
1743
AC_DEFUN([_LT_AC_SHELL_INIT],
1744
[ifdef([AC_DIVERSION_NOTICE],
1745
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1746
[AC_DIVERT_PUSH(NOTICE)])
1749
])# _LT_AC_SHELL_INIT
1752
# _LT_AC_PROG_ECHO_BACKSLASH
1753
# --------------------------
1754
# Add some code to the start of the generated configure script which
1755
# will find an echo command which doesn't interpret backslashes.
1756
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1757
[_LT_AC_SHELL_INIT([
1758
# Check that we are running under the correct shell.
1759
SHELL=${CONFIG_SHELL-/bin/sh}
1763
# Remove one level of quotation (which was required for Make).
1764
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1769
if test "X[$]1" = X--no-reexec; then
1770
# Discard the --no-reexec flag, and continue.
1772
elif test "X[$]1" = X--fallback-echo; then
1773
# Avoid inline document here, it may be left over
1775
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1776
# Yippee, $echo works!
1779
# Restart under the correct shell.
1780
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1783
if test "X[$]1" = X--fallback-echo; then
1784
# used as fallback echo
1792
# The HP-UX ksh and POSIX shell print the target directory to stdout
1794
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1796
if test -z "$ECHO"; then
1797
if test "X${echo_test_string+set}" != Xset; then
1798
# find a string as large as possible, as long as the shell can cope with it
1799
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1800
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1801
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1802
echo_test_string=`eval $cmd` &&
1803
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1810
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1811
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1812
test "X$echo_testing_string" = "X$echo_test_string"; then
1815
# The Solaris, AIX, and Digital Unix default echo programs unquote
1816
# backslashes. This makes it impossible to quote backslashes using
1817
# echo "$something" | sed 's/\\/\\\\/g'
1819
# So, first we look for a working echo in the user's PATH.
1821
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1822
for dir in $PATH /usr/ucb; do
1824
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1825
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1826
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1827
test "X$echo_testing_string" = "X$echo_test_string"; then
1834
if test "X$echo" = Xecho; then
1835
# We didn't find a better echo, so look for alternatives.
1836
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1837
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1838
test "X$echo_testing_string" = "X$echo_test_string"; then
1839
# This shell has a builtin print -r that does the trick.
1841
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1842
test "X$CONFIG_SHELL" != X/bin/ksh; then
1843
# If we have ksh, try running configure again with it.
1844
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1845
export ORIGINAL_CONFIG_SHELL
1846
CONFIG_SHELL=/bin/ksh
1848
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1852
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1853
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1854
test "X$echo_testing_string" = "X$echo_test_string"; then
1855
# Cool, printf works
1857
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1858
test "X$echo_testing_string" = 'X\t' &&
1859
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1860
test "X$echo_testing_string" = "X$echo_test_string"; then
1861
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1863
SHELL="$CONFIG_SHELL"
1865
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1866
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1867
test "X$echo_testing_string" = 'X\t' &&
1868
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1869
test "X$echo_testing_string" = "X$echo_test_string"; then
1870
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1872
# maybe with a smaller string...
1875
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1876
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1883
if test "$prev" != 'sed 50q "[$]0"'; then
1884
echo_test_string=`eval $prev`
1885
export echo_test_string
1886
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1888
# Oops. We lost completely, so just stick with echo.
1897
# Copy echo and quote the copy suitably for passing to libtool from
1898
# the Makefile, instead of quoting the original, which is used later.
1900
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1901
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1905
])])# _LT_AC_PROG_ECHO_BACKSLASH
1910
AC_DEFUN([_LT_AC_LOCK],
1911
[AC_ARG_ENABLE([libtool-lock],
1912
[AC_HELP_STRING([--disable-libtool-lock],
1913
[avoid locking (might break parallel builds)])])
1914
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1916
# Some flags need to be propagated to the compiler or linker for good
1920
# Find out which ABI we are using.
1921
echo 'int i;' > conftest.$ac_ext
1922
if AC_TRY_EVAL(ac_compile); then
1923
case `/usr/bin/file conftest.$ac_objext` in
1935
# Find out which ABI we are using.
1936
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1937
if AC_TRY_EVAL(ac_compile); then
1938
if test "$lt_cv_prog_gnu_ld" = yes; then
1939
case `/usr/bin/file conftest.$ac_objext` in
1941
LD="${LD-ld} -melf32bsmip"
1944
LD="${LD-ld} -melf32bmipn32"
1947
LD="${LD-ld} -melf64bmip"
1951
case `/usr/bin/file conftest.$ac_objext` in
1967
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1968
# Find out which ABI we are using.
1969
echo 'int i;' > conftest.$ac_ext
1970
if AC_TRY_EVAL(ac_compile); then
1971
case `/usr/bin/file conftest.o` in
1975
LD="${LD-ld} -m elf_i386"
1977
ppc64-*linux*|powerpc64-*linux*)
1978
LD="${LD-ld} -m elf32ppclinux"
1981
LD="${LD-ld} -m elf_s390"
1984
LD="${LD-ld} -m elf32_sparc"
1991
LD="${LD-ld} -m elf_x86_64"
1993
ppc*-*linux*|powerpc*-*linux*)
1994
LD="${LD-ld} -m elf64ppc"
1997
LD="${LD-ld} -m elf64_s390"
2000
LD="${LD-ld} -m elf64_sparc"
2010
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2011
SAVE_CFLAGS="$CFLAGS"
2012
CFLAGS="$CFLAGS -belf"
2013
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2015
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2017
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2018
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2019
CFLAGS="$SAVE_CFLAGS"
2023
# Find out which ABI we are using.
2024
echo 'int i;' > conftest.$ac_ext
2025
if AC_TRY_EVAL(ac_compile); then
2026
case `/usr/bin/file conftest.o` in
2028
case $lt_cv_prog_gnu_ld in
2029
yes*) LD="${LD-ld} -m elf64_sparc" ;;
2030
*) LD="${LD-ld} -64" ;;
2038
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2039
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2040
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2041
AC_CHECK_TOOL(AS, as, false)
2042
AC_CHECK_TOOL(OBJDUMP, objdump, false)
2047
need_locks="$enable_libtool_lock"
2052
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2053
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2054
# ----------------------------------------------------------------
2055
# Check whether the given compiler option works
2056
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2057
[AC_REQUIRE([LT_AC_PROG_SED])
2058
AC_CACHE_CHECK([$1], [$2],
2060
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2061
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2062
lt_compiler_flag="$3"
2063
# Insert the option either (1) after the last *FLAGS variable, or
2064
# (2) before a word containing "conftest.", or (3) at the end.
2065
# Note that $ac_compile itself does not contain backslashes and begins
2066
# with a dollar sign (not a hyphen), so the echo should work correctly.
2067
# The option is referenced via a variable to avoid confusing sed.
2068
lt_compile=`echo "$ac_compile" | $SED \
2069
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2070
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2071
-e 's:$: $lt_compiler_flag:'`
2072
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2073
(eval "$lt_compile" 2>conftest.err)
2075
cat conftest.err >&AS_MESSAGE_LOG_FD
2076
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2077
if (exit $ac_status) && test -s "$ac_outfile"; then
2078
# The compiler can only warn and ignore the option if not recognized
2079
# So say no if there are warnings other than the usual output.
2080
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2081
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2082
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2089
if test x"[$]$2" = xyes; then
2090
ifelse([$5], , :, [$5])
2092
ifelse([$6], , :, [$6])
2094
])# AC_LIBTOOL_COMPILER_OPTION
2097
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2098
# [ACTION-SUCCESS], [ACTION-FAILURE])
2099
# ------------------------------------------------------------
2100
# Check whether the given compiler option works
2101
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2102
[AC_CACHE_CHECK([$1], [$2],
2104
save_LDFLAGS="$LDFLAGS"
2105
LDFLAGS="$LDFLAGS $3"
2106
printf "$lt_simple_link_test_code" > conftest.$ac_ext
2107
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2108
# The linker can only warn and ignore the option if not recognized
2109
# So say no if there are warnings
2110
if test -s conftest.err; then
2111
# Append any errors to the config.log.
2112
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2113
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2114
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2115
if diff conftest.exp conftest.er2 >/dev/null; then
2123
LDFLAGS="$save_LDFLAGS"
2126
if test x"[$]$2" = xyes; then
2127
ifelse([$4], , :, [$4])
2129
ifelse([$5], , :, [$5])
2131
])# AC_LIBTOOL_LINKER_OPTION
2134
# AC_LIBTOOL_SYS_MAX_CMD_LEN
2135
# --------------------------
2136
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2137
[# find the maximum length of command line arguments
2138
AC_MSG_CHECKING([the maximum length of command line arguments])
2139
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2145
# On DJGPP, this test can blow up pretty badly due to problems in libc
2146
# (any single argument exceeding 2000 bytes causes a buffer overrun
2147
# during glob expansion). Even if it were fixed, the result of this
2148
# check would be larger than it should be.
2149
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2153
# Under GNU Hurd, this test is not required because there is
2154
# no limit to the length of command line arguments.
2155
# Libtool will interpret -1 as no limit whatsoever
2156
lt_cv_sys_max_cmd_len=-1;
2160
# On Win9x/ME, this test blows up -- it succeeds, but takes
2161
# about 5 minutes as the teststring grows exponentially.
2162
# Worse, since 9x/ME are not pre-emptively multitasking,
2163
# you end up with a "frozen" computer, even though with patience
2164
# the test eventually succeeds (with a max line length of 256k).
2165
# Instead, let's just punt: use the minimum linelength reported by
2166
# all of the supported platforms: 8192 (on NT/2K/XP).
2167
lt_cv_sys_max_cmd_len=8192;
2171
# On AmigaOS with pdksh, this test takes hours, literally.
2172
# So we just punt and use a minimum line length of 8192.
2173
lt_cv_sys_max_cmd_len=8192;
2176
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2177
# This has been around since 386BSD, at least. Likely further.
2178
if test -x /sbin/sysctl; then
2179
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2180
elif test -x /usr/sbin/sysctl; then
2181
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2183
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2185
# And add a safety zone
2186
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2187
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2191
# We know the value 262144 and hardcode it with a safety zone (like BSD)
2192
lt_cv_sys_max_cmd_len=196608
2196
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2197
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2198
# nice to cause kernel panics so lets avoid the loop below.
2199
# First set a reasonable default.
2200
lt_cv_sys_max_cmd_len=16384
2202
if test -x /sbin/sysconfig; then
2203
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2204
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2209
lt_cv_sys_max_cmd_len=102400
2211
sysv5* | sco5v6* | sysv4.2uw2*)
2212
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2213
if test -n "$kargmax"; then
2214
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2216
lt_cv_sys_max_cmd_len=32768
2220
# If test is not a shell built-in, we'll probably end up computing a
2221
# maximum length that is only half of the actual maximum length, but
2223
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2224
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2225
= "XX$teststring") >/dev/null 2>&1 &&
2226
new_result=`expr "X$teststring" : ".*" 2>&1` &&
2227
lt_cv_sys_max_cmd_len=$new_result &&
2228
test $i != 17 # 1/2 MB should be enough
2231
teststring=$teststring$teststring
2234
# Add a significant safety factor because C++ compilers can tack on massive
2235
# amounts of additional arguments before passing them to the linker.
2236
# It appears as though 1/2 is a usable value.
2237
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2241
if test -n $lt_cv_sys_max_cmd_len ; then
2242
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2246
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2249
# _LT_AC_CHECK_DLFCN
2250
# ------------------
2251
AC_DEFUN([_LT_AC_CHECK_DLFCN],
2252
[AC_CHECK_HEADERS(dlfcn.h)dnl
2253
])# _LT_AC_CHECK_DLFCN
2256
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2257
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2258
# ---------------------------------------------------------------------
2259
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2260
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2261
if test "$cross_compiling" = yes; then :
2264
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2265
lt_status=$lt_dlunknown
2266
cat > conftest.$ac_ext <<EOF
2267
[#line __oline__ "configure"
2268
#include "confdefs.h"
2277
# define LT_DLGLOBAL RTLD_GLOBAL
2280
# define LT_DLGLOBAL DL_GLOBAL
2282
# define LT_DLGLOBAL 0
2286
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2287
find out it does not work in some platform. */
2288
#ifndef LT_DLLAZY_OR_NOW
2290
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2293
# define LT_DLLAZY_OR_NOW DL_LAZY
2296
# define LT_DLLAZY_OR_NOW RTLD_NOW
2299
# define LT_DLLAZY_OR_NOW DL_NOW
2301
# define LT_DLLAZY_OR_NOW 0
2309
extern "C" void exit (int);
2312
void fnord() { int i=42;}
2315
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2316
int status = $lt_dlunknown;
2320
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2321
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2322
/* dlclose (self); */
2330
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2331
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2334
x$lt_dlno_uscore) $1 ;;
2335
x$lt_dlneed_uscore) $2 ;;
2336
x$lt_dlunknown|x*) $3 ;;
2339
# compilation failed
2344
])# _LT_AC_TRY_DLOPEN_SELF
2347
# AC_LIBTOOL_DLOPEN_SELF
2348
# ----------------------
2349
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2350
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2351
if test "x$enable_dlopen" != xyes; then
2352
enable_dlopen=unknown
2353
enable_dlopen_self=unknown
2354
enable_dlopen_self_static=unknown
2361
lt_cv_dlopen="load_add_on"
2363
lt_cv_dlopen_self=yes
2367
lt_cv_dlopen="LoadLibrary"
2372
lt_cv_dlopen="dlopen"
2377
# if libdl is installed we need to link against it
2378
AC_CHECK_LIB([dl], [dlopen],
2379
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2382
lt_cv_dlopen_self=yes
2387
AC_CHECK_FUNC([shl_load],
2388
[lt_cv_dlopen="shl_load"],
2389
[AC_CHECK_LIB([dld], [shl_load],
2390
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2391
[AC_CHECK_FUNC([dlopen],
2392
[lt_cv_dlopen="dlopen"],
2393
[AC_CHECK_LIB([dl], [dlopen],
2394
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2395
[AC_CHECK_LIB([svld], [dlopen],
2396
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2397
[AC_CHECK_LIB([dld], [dld_link],
2398
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2407
if test "x$lt_cv_dlopen" != xno; then
2413
case $lt_cv_dlopen in
2415
save_CPPFLAGS="$CPPFLAGS"
2416
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2418
save_LDFLAGS="$LDFLAGS"
2419
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2422
LIBS="$lt_cv_dlopen_libs $LIBS"
2424
AC_CACHE_CHECK([whether a program can dlopen itself],
2425
lt_cv_dlopen_self, [dnl
2426
_LT_AC_TRY_DLOPEN_SELF(
2427
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2428
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2431
if test "x$lt_cv_dlopen_self" = xyes; then
2432
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2433
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2434
lt_cv_dlopen_self_static, [dnl
2435
_LT_AC_TRY_DLOPEN_SELF(
2436
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2437
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2441
CPPFLAGS="$save_CPPFLAGS"
2442
LDFLAGS="$save_LDFLAGS"
2447
case $lt_cv_dlopen_self in
2448
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2449
*) enable_dlopen_self=unknown ;;
2452
case $lt_cv_dlopen_self_static in
2453
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2454
*) enable_dlopen_self_static=unknown ;;
2457
])# AC_LIBTOOL_DLOPEN_SELF
2460
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2461
# ---------------------------------
2462
# Check to see if options -c and -o are simultaneously supported by compiler
2463
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2464
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2465
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2466
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2467
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2468
$rm -r conftest 2>/dev/null
2472
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2474
lt_compiler_flag="-o out/conftest2.$ac_objext"
2475
# Insert the option either (1) after the last *FLAGS variable, or
2476
# (2) before a word containing "conftest.", or (3) at the end.
2477
# Note that $ac_compile itself does not contain backslashes and begins
2478
# with a dollar sign (not a hyphen), so the echo should work correctly.
2479
lt_compile=`echo "$ac_compile" | $SED \
2480
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2481
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2482
-e 's:$: $lt_compiler_flag:'`
2483
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2484
(eval "$lt_compile" 2>out/conftest.err)
2486
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2487
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2488
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2490
# The compiler can only warn and ignore the option if not recognized
2491
# So say no if there are warnings
2492
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2493
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2494
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2495
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2498
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2500
# SGI C++ compiler will create directory out/ii_files/ for
2501
# template instantiation
2502
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2503
$rm out/* && rmdir out
2508
])# AC_LIBTOOL_PROG_CC_C_O
2511
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2512
# -----------------------------------------
2513
# Check to see if we can do hard links to lock some files if needed
2514
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2515
[AC_REQUIRE([_LT_AC_LOCK])dnl
2517
hard_links="nottested"
2518
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2519
# do not overwrite the value of need_locks provided by the user
2520
AC_MSG_CHECKING([if we can lock with hard links])
2523
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2525
ln conftest.a conftest.b 2>&5 || hard_links=no
2526
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2527
AC_MSG_RESULT([$hard_links])
2528
if test "$hard_links" = no; then
2529
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2535
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2540
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2541
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2542
[rm -f .libs 2>/dev/null
2543
mkdir .libs 2>/dev/null
2544
if test -d .libs; then
2547
# MS-DOS does not allow filenames that begin with a dot.
2550
rmdir .libs 2>/dev/null])
2551
objdir=$lt_cv_objdir
2552
])# AC_LIBTOOL_OBJDIR
2555
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2556
# ----------------------------------------------
2557
# Check hardcoding attributes.
2558
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2559
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2560
_LT_AC_TAGVAR(hardcode_action, $1)=
2561
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2562
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2563
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2565
# We can hardcode non-existant directories.
2566
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2567
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2568
# have to relink, otherwise we might link with an installed library
2569
# when we should be linking with a yet-to-be-installed one
2570
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2571
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2572
# Linking always hardcodes the temporary library directory.
2573
_LT_AC_TAGVAR(hardcode_action, $1)=relink
2575
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2576
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
2579
# We cannot hardcode anything, or else we can only hardcode existing
2581
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2583
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2585
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2586
# Fast installation is not supported
2587
enable_fast_install=no
2588
elif test "$shlibpath_overrides_runpath" = yes ||
2589
test "$enable_shared" = no; then
2590
# Fast installation is not necessary
2591
enable_fast_install=needless
2593
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2596
# AC_LIBTOOL_SYS_LIB_STRIP
2597
# ------------------------
2598
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2601
AC_MSG_CHECKING([whether stripping libraries is possible])
2602
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2603
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2604
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2605
AC_MSG_RESULT([yes])
2607
# FIXME - insert some real tests, host_os isn't really good enough
2610
if test -n "$STRIP" ; then
2611
striplib="$STRIP -x"
2612
AC_MSG_RESULT([yes])
2622
])# AC_LIBTOOL_SYS_LIB_STRIP
2625
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2626
# -----------------------------
2627
# PORTME Fill in your ld.so characteristics
2628
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2629
[AC_MSG_CHECKING([dynamic linker characteristics])
2631
libname_spec='lib$name'
2639
shlibpath_overrides_runpath=unknown
2641
dynamic_linker="$host_os ld.so"
2642
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2643
if test "$GCC" = yes; then
2644
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2645
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2646
# if the path contains ";" then we assume it to be the separator
2647
# otherwise default to the standard path separator (i.e. ":") - it is
2648
# assumed that no part of a normal pathname contains ";" but that should
2649
# okay in the real world where ";" in dirpaths is itself problematic.
2650
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2652
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2655
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2657
need_lib_prefix=unknown
2658
hardcode_into_libs=no
2660
# when you set need_version to no, make sure it does not cause -set_version
2661
# flags to be left without arguments
2662
need_version=unknown
2667
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2668
shlibpath_var=LIBPATH
2670
# AIX 3 has no versioning support, so we append a major version to the name.
2671
soname_spec='${libname}${release}${shared_ext}$major'
2678
hardcode_into_libs=yes
2679
if test "$host_cpu" = ia64; then
2680
# AIX 5 supports IA64
2681
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2682
shlibpath_var=LD_LIBRARY_PATH
2684
# With GCC up to 2.95.x, collect2 would create an import file
2685
# for dependence libraries. The import file would start with
2686
# the line `#! .'. This would cause the generated library to
2687
# depend on `.', always an invalid library. This was fixed in
2688
# development snapshots of GCC prior to 3.0.
2690
aix4 | aix4.[[01]] | aix4.[[01]].*)
2691
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2693
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2700
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2701
# soname into executable. Probably we can add versioning support to
2702
# collect2, so additional links can be useful in future.
2703
if test "$aix_use_runtimelinking" = yes; then
2704
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2705
# instead of lib<name>.a to let people know that these are not
2706
# typical AIX shared libraries.
2707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2709
# We preserve .a as extension for shared libraries through AIX4.2
2710
# and later when we are not doing run time linking.
2711
library_names_spec='${libname}${release}.a $libname.a'
2712
soname_spec='${libname}${release}${shared_ext}$major'
2714
shlibpath_var=LIBPATH
2719
library_names_spec='$libname.ixlibrary $libname.a'
2720
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2721
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2725
library_names_spec='${libname}${shared_ext}'
2726
dynamic_linker="$host_os ld.so"
2727
shlibpath_var=LIBRARY_PATH
2733
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2734
soname_spec='${libname}${release}${shared_ext}$major'
2735
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2736
shlibpath_var=LD_LIBRARY_PATH
2737
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2738
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2739
# the default ld.so.conf also contains /usr/contrib/lib and
2740
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2741
# libtool to hard-code these into programs
2744
cygwin* | mingw* | pw32*)
2745
version_type=windows
2750
case $GCC,$host_os in
2751
yes,cygwin* | yes,mingw* | yes,pw32*)
2752
library_names_spec='$libname.dll.a'
2753
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2754
postinstall_cmds='base_file=`basename \${file}`~
2755
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2756
dldir=$destdir/`dirname \$dlpath`~
2757
test -d \$dldir || mkdir -p \$dldir~
2758
$install_prog $dir/$dlname \$dldir/$dlname~
2759
chmod a+x \$dldir/$dlname'
2760
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2761
dlpath=$dir/\$dldll~
2763
shlibpath_overrides_runpath=yes
2767
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2768
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2769
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2772
# MinGW DLLs use traditional 'lib' prefix
2773
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2774
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2775
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2776
# It is most probably a Windows format PATH printed by
2777
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2778
# path with ; separators, and with drive letters. We can handle the
2779
# drive letters (cygwin fileutils understands them), so leave them,
2780
# especially as we might pass files found there to a mingw objdump,
2781
# which wouldn't understand a cygwinified path. Ahh.
2782
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2784
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2788
# pw32 DLLs use 'pw' prefix rather than 'lib'
2789
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2795
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2798
dynamic_linker='Win32 ld.exe'
2799
# FIXME: first we should search . and the directory the executable is in
2803
darwin* | rhapsody*)
2804
dynamic_linker="$host_os dyld"
2808
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2809
soname_spec='${libname}${release}${major}$shared_ext'
2810
shlibpath_overrides_runpath=yes
2811
shlibpath_var=DYLD_LIBRARY_PATH
2812
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2813
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2814
if test "$GCC" = yes; then
2815
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2817
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2819
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2826
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2827
soname_spec='${libname}${release}${shared_ext}$major'
2828
shlibpath_var=LD_LIBRARY_PATH
2839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2840
soname_spec='${libname}${release}${shared_ext}$major'
2841
shlibpath_var=LD_LIBRARY_PATH
2842
shlibpath_overrides_runpath=no
2843
hardcode_into_libs=yes
2844
dynamic_linker='GNU ld.so'
2847
freebsd* | dragonfly*)
2848
# DragonFly does not have aout. When/if they implement a new
2849
# versioning mechanism, adjust this.
2850
if test -x /usr/bin/objformat; then
2851
objformat=`/usr/bin/objformat`
2854
freebsd[[123]]*) objformat=aout ;;
2858
version_type=freebsd-$objformat
2859
case $version_type in
2861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2866
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2870
shlibpath_var=LD_LIBRARY_PATH
2873
shlibpath_overrides_runpath=yes
2875
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2876
shlibpath_overrides_runpath=yes
2877
hardcode_into_libs=yes
2879
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2880
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2881
shlibpath_overrides_runpath=no
2882
hardcode_into_libs=yes
2884
freebsd*) # from 4.6 on
2885
shlibpath_overrides_runpath=yes
2886
hardcode_into_libs=yes
2895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2896
soname_spec='${libname}${release}${shared_ext}$major'
2897
shlibpath_var=LD_LIBRARY_PATH
2898
hardcode_into_libs=yes
2901
hpux9* | hpux10* | hpux11*)
2902
# Give a soname corresponding to the major version so that dld.sl refuses to
2903
# link against other versions.
2910
hardcode_into_libs=yes
2911
dynamic_linker="$host_os dld.so"
2912
shlibpath_var=LD_LIBRARY_PATH
2913
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2915
soname_spec='${libname}${release}${shared_ext}$major'
2916
if test "X$HPUX_IA64_MODE" = X32; then
2917
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2919
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2921
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2925
hardcode_into_libs=yes
2926
dynamic_linker="$host_os dld.sl"
2927
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2928
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2930
soname_spec='${libname}${release}${shared_ext}$major'
2931
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2932
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2936
dynamic_linker="$host_os dld.sl"
2937
shlibpath_var=SHLIB_PATH
2938
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2940
soname_spec='${libname}${release}${shared_ext}$major'
2943
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2944
postinstall_cmds='chmod 555 $lib'
2951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2952
soname_spec='${libname}${release}${shared_ext}$major'
2953
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2954
shlibpath_var=LD_LIBRARY_PATH
2955
shlibpath_overrides_runpath=no
2956
hardcode_into_libs=yes
2959
irix5* | irix6* | nonstopux*)
2961
nonstopux*) version_type=nonstopux ;;
2963
if test "$lt_cv_prog_gnu_ld" = yes; then
2971
soname_spec='${libname}${release}${shared_ext}$major'
2972
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2974
irix5* | nonstopux*)
2978
case $LD in # libtool.m4 will add one of these switches to LD
2979
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2980
libsuff= shlibsuff= libmagic=32-bit;;
2981
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2982
libsuff=32 shlibsuff=N32 libmagic=N32;;
2983
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2984
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2985
*) libsuff= shlibsuff= libmagic=never-match;;
2989
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2990
shlibpath_overrides_runpath=no
2991
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2992
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2993
hardcode_into_libs=yes
2996
# No shared lib support for Linux oldld, aout, or coff.
2997
linux*oldld* | linux*aout* | linux*coff*)
3001
# This must be Linux ELF.
3006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3007
soname_spec='${libname}${release}${shared_ext}$major'
3008
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3009
shlibpath_var=LD_LIBRARY_PATH
3010
shlibpath_overrides_runpath=no
3011
# This implies no fast_install, which is unacceptable.
3012
# Some rework will be needed to allow for fast_install
3013
# before this can be enabled.
3014
hardcode_into_libs=yes
3016
# Append ld.so.conf contents to the search path
3017
if test -f /etc/ld.so.conf; then
3018
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3019
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3022
# We used to test for /lib/ld.so.1 and disable shared libraries on
3023
# powerpc, because MkLinux only supported shared libraries with the
3024
# GNU dynamic linker. Since this was broken with cross compilers,
3025
# most powerpc-linux boxes support dynamic linking these days and
3026
# people can always --disable-shared, the test was removed, and we
3027
# assume the GNU/Linux dynamic linker is in use.
3028
dynamic_linker='GNU/Linux ld.so'
3035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3036
soname_spec='${libname}${release}${shared_ext}$major'
3037
shlibpath_var=LD_LIBRARY_PATH
3038
shlibpath_overrides_runpath=no
3039
hardcode_into_libs=yes
3040
dynamic_linker='GNU ld.so'
3047
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3049
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3050
dynamic_linker='NetBSD (a.out) ld.so'
3052
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3053
soname_spec='${libname}${release}${shared_ext}$major'
3054
dynamic_linker='NetBSD ld.elf_so'
3056
shlibpath_var=LD_LIBRARY_PATH
3057
shlibpath_overrides_runpath=yes
3058
hardcode_into_libs=yes
3063
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3064
shlibpath_var=LD_LIBRARY_PATH
3065
shlibpath_overrides_runpath=yes
3072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3073
soname_spec='${libname}${release}${shared_ext}$major'
3074
shlibpath_var=LD_LIBRARY_PATH
3075
shlibpath_overrides_runpath=yes
3080
sys_lib_dlsearch_path_spec="/usr/lib"
3082
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3084
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3085
*) need_version=no ;;
3087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3088
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3089
shlibpath_var=LD_LIBRARY_PATH
3090
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3092
openbsd2.[[89]] | openbsd2.[[89]].*)
3093
shlibpath_overrides_runpath=no
3096
shlibpath_overrides_runpath=yes
3100
shlibpath_overrides_runpath=yes
3105
libname_spec='$name'
3108
library_names_spec='$libname${shared_ext} $libname.a'
3109
dynamic_linker='OS/2 ld.exe'
3110
shlibpath_var=LIBPATH
3113
osf3* | osf4* | osf5*)
3117
soname_spec='${libname}${release}${shared_ext}$major'
3118
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3119
shlibpath_var=LD_LIBRARY_PATH
3120
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3121
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3129
soname_spec='${libname}${release}${shared_ext}$major'
3130
shlibpath_var=LD_LIBRARY_PATH
3131
shlibpath_overrides_runpath=yes
3132
hardcode_into_libs=yes
3133
# ldd complains unless libraries are executable
3134
postinstall_cmds='chmod +x $lib'
3139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3140
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3141
shlibpath_var=LD_LIBRARY_PATH
3142
shlibpath_overrides_runpath=yes
3143
if test "$with_gnu_ld" = yes; then
3151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3152
soname_spec='${libname}${release}${shared_ext}$major'
3153
shlibpath_var=LD_LIBRARY_PATH
3154
case $host_vendor in
3156
shlibpath_overrides_runpath=no
3158
export_dynamic_flag_spec='${wl}-Blargedynsym'
3159
runpath_var=LD_RUN_PATH
3167
shlibpath_overrides_runpath=no
3168
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3174
if test -d /usr/nec ;then
3176
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3177
soname_spec='$libname${shared_ext}.$major'
3178
shlibpath_var=LD_LIBRARY_PATH
3182
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3183
version_type=freebsd-elf
3186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3187
soname_spec='${libname}${release}${shared_ext}$major'
3188
shlibpath_var=LD_LIBRARY_PATH
3189
hardcode_into_libs=yes
3190
if test "$with_gnu_ld" = yes; then
3191
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3192
shlibpath_overrides_runpath=no
3194
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3195
shlibpath_overrides_runpath=yes
3198
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3202
sys_lib_dlsearch_path_spec='/usr/lib'
3207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3208
soname_spec='${libname}${release}${shared_ext}$major'
3209
shlibpath_var=LD_LIBRARY_PATH
3216
AC_MSG_RESULT([$dynamic_linker])
3217
test "$dynamic_linker" = no && can_build_shared=no
3219
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3220
if test "$GCC" = yes; then
3221
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3223
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3228
AC_DEFUN([_LT_AC_TAGCONFIG],
3229
[AC_ARG_WITH([tags],
3230
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3231
[include additional configurations @<:@automatic@:>@])],
3232
[tagnames="$withval"])
3234
if test -f "$ltmain" && test -n "$tagnames"; then
3235
if test ! -f "${ofile}"; then
3236
AC_MSG_WARN([output file `$ofile' does not exist])
3239
if test -z "$LTCC"; then
3240
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3241
if test -z "$LTCC"; then
3242
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3244
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3247
if test -z "$LTCFLAGS"; then
3248
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3251
# Extract list of available tagged configurations in $ofile.
3252
# Note that this assumes the entire list is on one line.
3253
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3255
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3256
for tagname in $tagnames; do
3258
# Check whether tagname contains only valid characters
3259
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3261
*) AC_MSG_ERROR([invalid tag name: $tagname])
3265
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3267
AC_MSG_ERROR([tag name \"$tagname\" already exists])
3270
# Update the list of available tags.
3271
if test -n "$tagname"; then
3272
echo appending configuration tag \"$tagname\" to $ofile
3276
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3277
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3278
(test "X$CXX" != "Xg++"))) ; then
3279
AC_LIBTOOL_LANG_CXX_CONFIG
3286
if test -n "$F77" && test "X$F77" != "Xno"; then
3287
AC_LIBTOOL_LANG_F77_CONFIG
3294
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3295
AC_LIBTOOL_LANG_GCJ_CONFIG
3302
AC_LIBTOOL_LANG_RC_CONFIG
3306
AC_MSG_ERROR([Unsupported tag name: $tagname])
3310
# Append the new tag name to the list of available tags.
3311
if test -n "$tagname" ; then
3312
available_tags="$available_tags $tagname"
3318
# Now substitute the updated list of available tags.
3319
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3320
mv "${ofile}T" "$ofile"
3324
AC_MSG_ERROR([unable to update list of available tagged configurations.])
3327
])# _LT_AC_TAGCONFIG
3332
# enable checks for dlopen support
3333
AC_DEFUN([AC_LIBTOOL_DLOPEN],
3334
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3335
])# AC_LIBTOOL_DLOPEN
3338
# AC_LIBTOOL_WIN32_DLL
3339
# --------------------
3340
# declare package support for building win32 DLLs
3341
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3342
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3343
])# AC_LIBTOOL_WIN32_DLL
3346
# AC_ENABLE_SHARED([DEFAULT])
3347
# ---------------------------
3348
# implement the --enable-shared flag
3349
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3350
AC_DEFUN([AC_ENABLE_SHARED],
3351
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3352
AC_ARG_ENABLE([shared],
3353
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3354
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3355
[p=${PACKAGE-default}
3357
yes) enable_shared=yes ;;
3358
no) enable_shared=no ;;
3361
# Look at the argument we got. We use all the common list separators.
3362
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3363
for pkg in $enableval; do
3365
if test "X$pkg" = "X$p"; then
3372
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3373
])# AC_ENABLE_SHARED
3378
# set the default shared flag to --disable-shared
3379
AC_DEFUN([AC_DISABLE_SHARED],
3380
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3381
AC_ENABLE_SHARED(no)
3382
])# AC_DISABLE_SHARED
3385
# AC_ENABLE_STATIC([DEFAULT])
3386
# ---------------------------
3387
# implement the --enable-static flag
3388
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3389
AC_DEFUN([AC_ENABLE_STATIC],
3390
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3391
AC_ARG_ENABLE([static],
3392
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3393
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3394
[p=${PACKAGE-default}
3396
yes) enable_static=yes ;;
3397
no) enable_static=no ;;
3400
# Look at the argument we got. We use all the common list separators.
3401
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3402
for pkg in $enableval; do
3404
if test "X$pkg" = "X$p"; then
3411
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
3412
])# AC_ENABLE_STATIC
3417
# set the default static flag to --disable-static
3418
AC_DEFUN([AC_DISABLE_STATIC],
3419
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3420
AC_ENABLE_STATIC(no)
3421
])# AC_DISABLE_STATIC
3424
# AC_ENABLE_FAST_INSTALL([DEFAULT])
3425
# ---------------------------------
3426
# implement the --enable-fast-install flag
3427
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3428
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3429
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3430
AC_ARG_ENABLE([fast-install],
3431
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3432
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3433
[p=${PACKAGE-default}
3435
yes) enable_fast_install=yes ;;
3436
no) enable_fast_install=no ;;
3438
enable_fast_install=no
3439
# Look at the argument we got. We use all the common list separators.
3440
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3441
for pkg in $enableval; do
3443
if test "X$pkg" = "X$p"; then
3444
enable_fast_install=yes
3450
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3451
])# AC_ENABLE_FAST_INSTALL
3454
# AC_DISABLE_FAST_INSTALL
3455
# -----------------------
3456
# set the default to --disable-fast-install
3457
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3458
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3459
AC_ENABLE_FAST_INSTALL(no)
3460
])# AC_DISABLE_FAST_INSTALL
3463
# AC_LIBTOOL_PICMODE([MODE])
3464
# --------------------------
3465
# implement the --with-pic flag
3466
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3467
AC_DEFUN([AC_LIBTOOL_PICMODE],
3468
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3469
pic_mode=ifelse($#,1,$1,default)
3470
])# AC_LIBTOOL_PICMODE
3475
# This is predefined starting with Autoconf 2.54, so this conditional
3476
# definition can be removed once we require Autoconf 2.54 or later.
3477
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3478
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3479
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3480
then ac_cv_prog_egrep='grep -E'
3481
else ac_cv_prog_egrep='egrep'
3483
EGREP=$ac_cv_prog_egrep
3488
# AC_PATH_TOOL_PREFIX
3489
# -------------------
3490
# find a file program which can recognise shared library
3491
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3492
[AC_REQUIRE([AC_PROG_EGREP])dnl
3493
AC_MSG_CHECKING([for $1])
3494
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3496
[[\\/*] | ?:[\\/]*])
3497
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3500
lt_save_MAGIC_CMD="$MAGIC_CMD"
3501
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3502
dnl $ac_dummy forces splitting on constant user-supplied paths.
3503
dnl POSIX.2 word splitting is done only on the output of word expansions,
3504
dnl not every word. This closes a longstanding sh security hole.
3505
ac_dummy="ifelse([$2], , $PATH, [$2])"
3506
for ac_dir in $ac_dummy; do
3508
test -z "$ac_dir" && ac_dir=.
3509
if test -f $ac_dir/$1; then
3510
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3511
if test -n "$file_magic_test_file"; then
3512
case $deplibs_check_method in
3514
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3515
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3516
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3517
$EGREP "$file_magic_regex" > /dev/null; then
3522
*** Warning: the command libtool uses to detect shared libraries,
3523
*** $file_magic_cmd, produces output that libtool cannot recognize.
3524
*** The result is that libtool may fail to recognize shared libraries
3525
*** as such. This will affect the creation of libtool libraries that
3526
*** depend on shared libraries, but programs linked with such libtool
3527
*** libraries will work regardless of this problem. Nevertheless, you
3528
*** may want to report the problem to your system manager and/or to
3529
*** bug-libtool@gnu.org
3539
MAGIC_CMD="$lt_save_MAGIC_CMD"
3542
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3543
if test -n "$MAGIC_CMD"; then
3544
AC_MSG_RESULT($MAGIC_CMD)
3548
])# AC_PATH_TOOL_PREFIX
3553
# find a file program which can recognise a shared library
3554
AC_DEFUN([AC_PATH_MAGIC],
3555
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3556
if test -z "$lt_cv_path_MAGIC_CMD"; then
3557
if test -n "$ac_tool_prefix"; then
3558
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3568
# find the pathname to the GNU or non-GNU linker
3569
AC_DEFUN([AC_PROG_LD],
3570
[AC_ARG_WITH([gnu-ld],
3571
[AC_HELP_STRING([--with-gnu-ld],
3572
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3573
[test "$withval" = no || with_gnu_ld=yes],
3575
AC_REQUIRE([LT_AC_PROG_SED])dnl
3576
AC_REQUIRE([AC_PROG_CC])dnl
3577
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3578
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3580
if test "$GCC" = yes; then
3581
# Check if gcc -print-prog-name=ld gives a path.
3582
AC_MSG_CHECKING([for ld used by $CC])
3585
# gcc leaves a trailing carriage return which upsets mingw
3586
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3588
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3591
# Accept absolute paths.
3592
[[\\/]]* | ?:[[\\/]]*)
3593
re_direlt='/[[^/]][[^/]]*/\.\./'
3594
# Canonicalize the pathname of ld
3595
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3596
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3597
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3599
test -z "$LD" && LD="$ac_prog"
3602
# If it fails, then pretend we aren't using GCC.
3606
# If it is relative, then search for the first ld in PATH.
3610
elif test "$with_gnu_ld" = yes; then
3611
AC_MSG_CHECKING([for GNU ld])
3613
AC_MSG_CHECKING([for non-GNU ld])
3615
AC_CACHE_VAL(lt_cv_path_LD,
3616
[if test -z "$LD"; then
3617
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3618
for ac_dir in $PATH; do
3620
test -z "$ac_dir" && ac_dir=.
3621
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3622
lt_cv_path_LD="$ac_dir/$ac_prog"
3623
# Check to see if the program is GNU ld. I'd rather use --version,
3624
# but apparently some variants of GNU ld only accept -v.
3625
# Break only if it was the GNU/non-GNU ld that we prefer.
3626
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3627
*GNU* | *'with BFD'*)
3628
test "$with_gnu_ld" != no && break
3631
test "$with_gnu_ld" != yes && break
3638
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3641
if test -n "$LD"; then
3646
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3653
AC_DEFUN([AC_PROG_LD_GNU],
3654
[AC_REQUIRE([AC_PROG_EGREP])dnl
3655
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3656
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3657
case `$LD -v 2>&1 </dev/null` in
3658
*GNU* | *'with BFD'*)
3659
lt_cv_prog_gnu_ld=yes
3662
lt_cv_prog_gnu_ld=no
3665
with_gnu_ld=$lt_cv_prog_gnu_ld
3669
# AC_PROG_LD_RELOAD_FLAG
3670
# ----------------------
3671
# find reload flag for linker
3672
# -- PORTME Some linkers may need a different reload flag.
3673
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3674
[AC_CACHE_CHECK([for $LD option to reload object files],
3675
lt_cv_ld_reload_flag,
3676
[lt_cv_ld_reload_flag='-r'])
3677
reload_flag=$lt_cv_ld_reload_flag
3678
case $reload_flag in
3680
*) reload_flag=" $reload_flag" ;;
3682
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3685
if test "$GCC" = yes; then
3686
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3688
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3692
])# AC_PROG_LD_RELOAD_FLAG
3695
# AC_DEPLIBS_CHECK_METHOD
3696
# -----------------------
3697
# how to check for library dependencies
3698
# -- PORTME fill in with the dynamic library characteristics
3699
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3700
[AC_CACHE_CHECK([how to recognise dependent libraries],
3701
lt_cv_deplibs_check_method,
3702
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3703
lt_cv_file_magic_test_file=
3704
lt_cv_deplibs_check_method='unknown'
3705
# Need to set the preceding variable on all platforms that support
3706
# interlibrary dependencies.
3707
# 'none' -- dependencies not supported.
3708
# `unknown' -- same as none, but documents that we really don't know.
3709
# 'pass_all' -- all dependencies passed with no checks.
3710
# 'test_compile' -- check by making test program.
3711
# 'file_magic [[regex]]' -- check by looking for files in library path
3712
# which responds to the $file_magic_cmd with a given extended regex.
3713
# If you have `file' or equivalent on your system and you're not sure
3714
# whether `pass_all' will *always* work, you probably want this one.
3718
lt_cv_deplibs_check_method=pass_all
3722
lt_cv_deplibs_check_method=pass_all
3726
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3727
lt_cv_file_magic_cmd='/usr/bin/file -L'
3728
lt_cv_file_magic_test_file=/shlib/libc.so
3732
# func_win32_libid is a shell function defined in ltmain.sh
3733
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3734
lt_cv_file_magic_cmd='func_win32_libid'
3738
# Base MSYS/MinGW do not provide the 'file' command needed by
3739
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3740
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3741
lt_cv_file_magic_cmd='$OBJDUMP -f'
3744
darwin* | rhapsody*)
3745
lt_cv_deplibs_check_method=pass_all
3748
freebsd* | kfreebsd*-gnu | dragonfly*)
3749
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3752
# Not sure whether the presence of OpenBSD here was a mistake.
3753
# Let's accept both of them until this is cleared up.
3754
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3755
lt_cv_file_magic_cmd=/usr/bin/file
3756
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3760
lt_cv_deplibs_check_method=pass_all
3765
lt_cv_deplibs_check_method=pass_all
3768
hpux10.20* | hpux11*)
3769
lt_cv_file_magic_cmd=/usr/bin/file
3772
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3773
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3776
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3777
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3780
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3781
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3787
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3788
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3791
irix5* | irix6* | nonstopux*)
3793
*-32|*"-32 ") libmagic=32-bit;;
3794
*-n32|*"-n32 ") libmagic=N32;;
3795
*-64|*"-64 ") libmagic=64-bit;;
3796
*) libmagic=never-match;;
3798
lt_cv_deplibs_check_method=pass_all
3801
# This must be Linux ELF.
3803
lt_cv_deplibs_check_method=pass_all
3807
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3808
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3810
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3815
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3816
lt_cv_file_magic_cmd=/usr/bin/file
3817
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3821
lt_cv_deplibs_check_method=unknown
3825
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3826
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3828
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3832
osf3* | osf4* | osf5*)
3833
lt_cv_deplibs_check_method=pass_all
3837
lt_cv_deplibs_check_method=pass_all
3841
case $host_vendor in
3843
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3844
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3847
lt_cv_deplibs_check_method=pass_all
3850
lt_cv_file_magic_cmd='/bin/file'
3851
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3854
lt_cv_file_magic_cmd='/bin/file'
3855
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3856
lt_cv_file_magic_test_file=/lib/libc.so
3859
lt_cv_deplibs_check_method=pass_all
3862
lt_cv_deplibs_check_method=pass_all
3867
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3868
lt_cv_deplibs_check_method=pass_all
3872
file_magic_cmd=$lt_cv_file_magic_cmd
3873
deplibs_check_method=$lt_cv_deplibs_check_method
3874
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3875
])# AC_DEPLIBS_CHECK_METHOD
3880
# find the pathname to a BSD-compatible name lister
3881
AC_DEFUN([AC_PROG_NM],
3882
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3883
[if test -n "$NM"; then
3884
# Let the user override the test.
3887
lt_nm_to_check="${ac_tool_prefix}nm"
3888
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3889
lt_nm_to_check="$lt_nm_to_check nm"
3891
for lt_tmp_nm in $lt_nm_to_check; do
3892
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3893
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3895
test -z "$ac_dir" && ac_dir=.
3896
tmp_nm="$ac_dir/$lt_tmp_nm"
3897
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3898
# Check to see if the nm accepts a BSD-compat flag.
3899
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3900
# nm: unknown option "B" ignored
3901
# Tru64's nm complains that /dev/null is an invalid object file
3902
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3903
*/dev/null* | *'Invalid file or object type'*)
3904
lt_cv_path_NM="$tmp_nm -B"
3908
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3910
lt_cv_path_NM="$tmp_nm -p"
3914
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3915
continue # so that we can try to find one that supports BSD flags
3924
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3932
# check for math library
3933
AC_DEFUN([AC_CHECK_LIBM],
3934
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3937
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3938
# These system don't have libm, or don't need it
3941
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3942
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3945
AC_CHECK_LIB(m, cos, LIBM="-lm")
3951
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3952
# -----------------------------------
3953
# sets LIBLTDL to the link flags for the libltdl convenience library and
3954
# LTDLINCL to the include flags for the libltdl header and adds
3955
# --enable-ltdl-convenience to the configure arguments. Note that
3956
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3957
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3958
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3959
# (note the single quotes!). If your package is not flat and you're not
3960
# using automake, define top_builddir and top_srcdir appropriately in
3962
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3963
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3964
case $enable_ltdl_convenience in
3965
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3966
"") enable_ltdl_convenience=yes
3967
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3969
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3970
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3971
# For backwards non-gettext consistent compatibility...
3973
])# AC_LIBLTDL_CONVENIENCE
3976
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3977
# -----------------------------------
3978
# sets LIBLTDL to the link flags for the libltdl installable library and
3979
# LTDLINCL to the include flags for the libltdl header and adds
3980
# --enable-ltdl-install to the configure arguments. Note that
3981
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3982
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3983
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3984
# '${top_srcdir}/' (note the single quotes!). If your package is not
3985
# flat and you're not using automake, define top_builddir and top_srcdir
3986
# appropriately in the Makefiles.
3987
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3988
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3989
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3990
AC_CHECK_LIB(ltdl, lt_dlinit,
3991
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3992
[if test x"$enable_ltdl_install" = xno; then
3993
AC_MSG_WARN([libltdl not installed, but installation disabled])
3995
enable_ltdl_install=yes
3998
if test x"$enable_ltdl_install" = x"yes"; then
3999
ac_configure_args="$ac_configure_args --enable-ltdl-install"
4000
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4001
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4003
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4007
# For backwards non-gettext consistent compatibility...
4009
])# AC_LIBLTDL_INSTALLABLE
4014
# enable support for C++ libraries
4015
AC_DEFUN([AC_LIBTOOL_CXX],
4016
[AC_REQUIRE([_LT_AC_LANG_CXX])
4022
AC_DEFUN([_LT_AC_LANG_CXX],
4023
[AC_REQUIRE([AC_PROG_CXX])
4024
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4025
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4028
# _LT_AC_PROG_CXXCPP
4029
# ------------------
4030
AC_DEFUN([_LT_AC_PROG_CXXCPP],
4032
AC_REQUIRE([AC_PROG_CXX])
4033
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4034
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4035
(test "X$CXX" != "Xg++"))) ; then
4038
])# _LT_AC_PROG_CXXCPP
4042
# enable support for Fortran 77 libraries
4043
AC_DEFUN([AC_LIBTOOL_F77],
4044
[AC_REQUIRE([_LT_AC_LANG_F77])
4050
AC_DEFUN([_LT_AC_LANG_F77],
4051
[AC_REQUIRE([AC_PROG_F77])
4052
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4058
# enable support for GCJ libraries
4059
AC_DEFUN([AC_LIBTOOL_GCJ],
4060
[AC_REQUIRE([_LT_AC_LANG_GCJ])
4066
AC_DEFUN([_LT_AC_LANG_GCJ],
4067
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4068
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4069
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4070
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4071
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4072
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4073
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4079
# enable support for Windows resource files
4080
AC_DEFUN([AC_LIBTOOL_RC],
4081
[AC_REQUIRE([LT_AC_PROG_RC])
4082
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4086
# AC_LIBTOOL_LANG_C_CONFIG
4087
# ------------------------
4088
# Ensure that the configuration vars for the C compiler are
4089
# suitably defined. Those variables are subsequently used by
4090
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4091
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4092
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4096
# Source file extension for C test sources.
4099
# Object file extension for compiled C test sources.
4101
_LT_AC_TAGVAR(objext, $1)=$objext
4103
# Code to be used in simple compile tests
4104
lt_simple_compile_test_code="int some_variable = 0;\n"
4106
# Code to be used in simple link tests
4107
lt_simple_link_test_code='int main(){return(0);}\n'
4111
# save warnings/boilerplate of simple test code
4112
_LT_COMPILER_BOILERPLATE
4113
_LT_LINKER_BOILERPLATE
4115
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4116
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4117
AC_LIBTOOL_PROG_CC_C_O($1)
4118
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4119
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4120
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4121
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4122
AC_LIBTOOL_SYS_LIB_STRIP
4123
AC_LIBTOOL_DLOPEN_SELF
4125
# Report which library types will actually be built
4126
AC_MSG_CHECKING([if libtool supports shared libraries])
4127
AC_MSG_RESULT([$can_build_shared])
4129
AC_MSG_CHECKING([whether to build shared libraries])
4130
test "$can_build_shared" = "no" && enable_shared=no
4132
# On AIX, shared libraries and static libraries use the same namespace, and
4133
# are all built from PIC.
4136
test "$enable_shared" = yes && enable_static=no
4137
if test -n "$RANLIB"; then
4138
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4139
postinstall_cmds='$RANLIB $lib'
4144
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4145
test "$enable_shared" = yes && enable_static=no
4149
AC_MSG_RESULT([$enable_shared])
4151
AC_MSG_CHECKING([whether to build static libraries])
4152
# Make sure either enable_shared or enable_static is yes.
4153
test "$enable_shared" = yes || enable_static=yes
4154
AC_MSG_RESULT([$enable_static])
4156
AC_LIBTOOL_CONFIG($1)
4160
])# AC_LIBTOOL_LANG_C_CONFIG
4163
# AC_LIBTOOL_LANG_CXX_CONFIG
4164
# --------------------------
4165
# Ensure that the configuration vars for the C compiler are
4166
# suitably defined. Those variables are subsequently used by
4167
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4168
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4169
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4171
AC_REQUIRE([AC_PROG_CXX])
4172
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4174
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4175
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4176
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4177
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4178
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4179
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4180
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4182
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4183
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4184
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4185
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4186
_LT_AC_TAGVAR(module_cmds, $1)=
4187
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4188
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4189
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4190
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4191
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4192
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4194
# Dependencies to place before and after the object being linked:
4195
_LT_AC_TAGVAR(predep_objects, $1)=
4196
_LT_AC_TAGVAR(postdep_objects, $1)=
4197
_LT_AC_TAGVAR(predeps, $1)=
4198
_LT_AC_TAGVAR(postdeps, $1)=
4199
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4201
# Source file extension for C++ test sources.
4204
# Object file extension for compiled C++ test sources.
4206
_LT_AC_TAGVAR(objext, $1)=$objext
4208
# Code to be used in simple compile tests
4209
lt_simple_compile_test_code="int some_variable = 0;\n"
4211
# Code to be used in simple link tests
4212
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
4214
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4217
# save warnings/boilerplate of simple test code
4218
_LT_COMPILER_BOILERPLATE
4219
_LT_LINKER_BOILERPLATE
4221
# Allow CC to be a program name with arguments.
4226
lt_save_with_gnu_ld=$with_gnu_ld
4227
lt_save_path_LD=$lt_cv_path_LD
4228
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4229
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4231
$as_unset lt_cv_prog_gnu_ld
4233
if test -n "${lt_cv_path_LDCXX+set}"; then
4234
lt_cv_path_LD=$lt_cv_path_LDCXX
4236
$as_unset lt_cv_path_LD
4238
test -z "${LDCXX+set}" || LD=$LDCXX
4241
_LT_AC_TAGVAR(compiler, $1)=$CC
4242
_LT_CC_BASENAME([$compiler])
4244
# We don't want -fno-exception wen compiling C++ code, so set the
4245
# no_builtin_flag separately
4246
if test "$GXX" = yes; then
4247
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4249
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4252
if test "$GXX" = yes; then
4253
# Set up default GNU C++ configuration
4257
# Check if GNU C++ uses GNU ld as the underlying linker, since the
4258
# archiving commands below assume that GNU ld is being used.
4259
if test "$with_gnu_ld" = yes; then
4260
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4261
_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'
4263
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4264
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4266
# If archive_cmds runs LD, not CC, wlarc should be empty
4267
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4268
# investigate it a little bit more. (MM)
4271
# ancient GNU ld didn't support --whole-archive et. al.
4272
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4273
grep 'no-whole-archive' > /dev/null; then
4274
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4276
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4282
# A generic and very simple default shared library creation
4283
# command for GNU C++ for the case where it uses the native
4284
# linker, instead of GNU ld. If possible, this setting should
4285
# overridden to take advantage of the native linker features on
4286
# the platform it is being used on.
4287
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4290
# Commands to make compiler produce verbose output that lists
4291
# what "hidden" libraries, object files and flags are used when
4292
# linking a shared library.
4293
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4301
# PORTME: fill in a description of your system's C++ link characteristics
4302
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4303
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4306
# FIXME: insert proper C++ library support
4307
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4310
if test "$host_cpu" = ia64; then
4311
# On IA64, the linker does run time linking by default, so we don't
4312
# have to do anything special.
4313
aix_use_runtimelinking=no
4314
exp_sym_flag='-Bexport'
4317
aix_use_runtimelinking=no
4319
# Test if we are trying to use run time linking or normal
4320
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4321
# need to do runtime linking.
4322
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4323
for ld_flag in $LDFLAGS; do
4326
aix_use_runtimelinking=yes
4334
exp_sym_flag='-bexport'
4335
no_entry_flag='-bnoentry'
4338
# When large executables or shared objects are built, AIX ld can
4339
# have problems creating the table of contents. If linking a library
4340
# or program results in "error TOC overflow" add -mminimal-toc to
4341
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4342
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4344
_LT_AC_TAGVAR(archive_cmds, $1)=''
4345
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4346
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4347
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4349
if test "$GXX" = yes; then
4350
case $host_os in aix4.[[012]]|aix4.[[012]].*)
4351
# We only want to do this on AIX 4.2 and lower, the check
4352
# below for broken collect2 doesn't work under 4.3+
4353
collect2name=`${CC} -print-prog-name=collect2`
4354
if test -f "$collect2name" && \
4355
strings "$collect2name" | grep resolve_lib_name >/dev/null
4357
# We have reworked collect2
4358
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4360
# We have old collect2
4361
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4362
# It fails to find uninstalled libraries when the uninstalled
4363
# path is not listed in the libpath. Setting hardcode_minus_L
4364
# to unsupported forces relinking
4365
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4366
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4367
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4371
shared_flag='-shared'
4372
if test "$aix_use_runtimelinking" = yes; then
4373
shared_flag="$shared_flag "'${wl}-G'
4377
if test "$host_cpu" = ia64; then
4378
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4379
# chokes on -Wl,-G. The following line is correct:
4382
if test "$aix_use_runtimelinking" = yes; then
4383
shared_flag='${wl}-G'
4385
shared_flag='${wl}-bM:SRE'
4390
# It seems that -bexpall does not export symbols beginning with
4391
# underscore (_), so it is better to generate a list of symbols to export.
4392
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4393
if test "$aix_use_runtimelinking" = yes; then
4394
# Warning - without using the other runtime loading flags (-brtl),
4395
# -berok will link without error, but may produce a broken library.
4396
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4397
# Determine the default libpath from the value encoded in an empty executable.
4398
_LT_AC_SYS_LIBPATH_AIX
4399
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4401
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4403
if test "$host_cpu" = ia64; then
4404
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4405
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4406
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4408
# Determine the default libpath from the value encoded in an empty executable.
4409
_LT_AC_SYS_LIBPATH_AIX
4410
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4411
# Warning - without using the other run time loading flags,
4412
# -berok will link without error, but may produce a broken library.
4413
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4414
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4415
# Exported symbols can be pulled into shared objects from archives
4416
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4417
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4418
# This is similar to how AIX traditionally builds its shared libraries.
4419
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4425
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4426
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4427
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4428
# support --undefined. This deserves some investigation. FIXME
4429
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4431
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4436
case $cc_basename in
4438
# FIXME: insert proper C++ library support
4439
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4444
cygwin* | mingw* | pw32*)
4445
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4446
# as there is no search path for DLLs.
4447
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4448
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4449
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4450
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4452
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4453
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4454
# If the export-symbols file already is a .def file (1st line
4455
# is EXPORTS), use it as is; otherwise, prepend...
4456
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4457
cp $export_symbols $output_objdir/$soname.def;
4459
echo EXPORTS > $output_objdir/$soname.def;
4460
cat $export_symbols >> $output_objdir/$soname.def;
4462
$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'
4464
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4467
darwin* | rhapsody*)
4469
rhapsody* | darwin1.[[012]])
4470
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4473
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4474
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4476
case ${MACOSX_DEPLOYMENT_TARGET} in
4478
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4481
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4487
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4488
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4489
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4490
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4491
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4492
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4494
if test "$GXX" = yes ; then
4495
lt_int_apple_cc_single_mod=no
4496
output_verbose_link_cmd='echo'
4497
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4498
lt_int_apple_cc_single_mod=yes
4500
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4503
_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'
4505
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4506
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4507
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4508
_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}'
4510
_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}'
4512
_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}'
4514
case $cc_basename in
4516
output_verbose_link_cmd='echo'
4517
_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'
4518
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4519
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4520
_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}'
4521
_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}'
4524
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4531
case $cc_basename in
4533
# FIXME: insert proper C++ library support
4534
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4537
# Green Hills C++ Compiler
4538
# FIXME: insert proper C++ library support
4539
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4542
# FIXME: insert proper C++ library support
4543
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4548
# C++ shared libraries reported to be fairly broken before switch to ELF
4549
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4552
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4554
freebsd* | kfreebsd*-gnu | dragonfly*)
4555
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4557
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4562
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4563
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4564
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4565
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4566
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4567
# but as the default
4568
# location of the library.
4570
case $cc_basename in
4572
# FIXME: insert proper C++ library support
4573
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4576
_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'
4577
# Commands to make compiler produce verbose output that lists
4578
# what "hidden" libraries, object files and flags are used when
4579
# linking a shared library.
4581
# There doesn't appear to be a way to prevent this compiler from
4582
# explicitly linking system object files so we need to strip them
4583
# from the output so that they don't get included in the library
4585
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'
4588
if test "$GXX" = yes; then
4589
_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'
4591
# FIXME: insert proper C++ library support
4592
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4598
if test $with_gnu_ld = no; then
4599
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4600
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4604
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4607
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4613
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4614
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4617
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4618
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4619
# but as the default
4620
# location of the library.
4624
case $cc_basename in
4626
# FIXME: insert proper C++ library support
4627
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4632
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4635
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4638
_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'
4641
# Commands to make compiler produce verbose output that lists
4642
# what "hidden" libraries, object files and flags are used when
4643
# linking a shared library.
4645
# There doesn't appear to be a way to prevent this compiler from
4646
# explicitly linking system object files so we need to strip them
4647
# from the output so that they don't get included in the library
4649
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'
4652
if test "$GXX" = yes; then
4653
if test $with_gnu_ld = no; then
4656
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4659
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4662
_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'
4667
# FIXME: insert proper C++ library support
4668
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4674
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4675
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4676
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4677
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4678
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4679
# Instead, shared libraries are loaded at an image base (0x10000000 by
4680
# default) and relocated if they conflict, which is a slow very memory
4681
# consuming and fragmenting process. To avoid this, we pick a random,
4682
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4683
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4684
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4685
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4688
case $cc_basename in
4691
_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'
4693
# Archives containing C++ object files must be created using
4694
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4695
# necessary to make sure instantiated templates are included
4697
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4700
if test "$GXX" = yes; then
4701
if test "$with_gnu_ld" = no; then
4702
_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'
4704
_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'
4707
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4710
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4711
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4714
case $cc_basename in
4716
# Kuck and Associates, Inc. (KAI) C++ Compiler
4718
# KCC will only create a shared library if the output file
4719
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4720
# to its proper name (with version) after linking.
4721
_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'
4722
_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'
4723
# Commands to make compiler produce verbose output that lists
4724
# what "hidden" libraries, object files and flags are used when
4725
# linking a shared library.
4727
# There doesn't appear to be a way to prevent this compiler from
4728
# explicitly linking system object files so we need to strip them
4729
# from the output so that they don't get included in the library
4731
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'
4733
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4734
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4736
# Archives containing C++ object files must be created using
4737
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4738
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4743
# version 8.0 and above of icpc choke on multiply defined symbols
4744
# if we add $predep_objects and $postdep_objects, however 7.1 and
4745
# earlier do not add the objects themselves.
4746
case `$CC -V 2>&1` in
4748
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4749
_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'
4751
*) # Version 8.0 or newer
4754
ia64*) tmp_idyn=' -i_dynamic';;
4756
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4757
_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'
4760
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4761
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4762
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4763
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4766
# Portland Group C++ compiler
4767
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4768
_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'
4770
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4771
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4772
_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'
4776
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4777
_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'
4779
runpath_var=LD_RUN_PATH
4780
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4781
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4783
# Commands to make compiler produce verbose output that lists
4784
# what "hidden" libraries, object files and flags are used when
4785
# linking a shared library.
4787
# There doesn't appear to be a way to prevent this compiler from
4788
# explicitly linking system object files so we need to strip them
4789
# from the output so that they don't get included in the library
4791
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'
4796
# FIXME: insert proper C++ library support
4797
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4800
# FIXME: insert proper C++ library support
4801
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4804
case $cc_basename in
4806
# FIXME: insert proper C++ library support
4807
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4810
# FIXME: insert proper C++ library support
4811
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4816
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4817
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4819
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4820
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4821
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4823
# Workaround some broken pre-1.5 toolchains
4824
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4827
# C++ shared libraries are fairly broken
4828
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4831
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4832
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4833
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4834
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4835
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4836
_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'
4837
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4838
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4840
output_verbose_link_cmd='echo'
4843
case $cc_basename in
4845
# Kuck and Associates, Inc. (KAI) C++ Compiler
4847
# KCC will only create a shared library if the output file
4848
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4849
# to its proper name (with version) after linking.
4850
_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'
4852
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4853
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4855
# Archives containing C++ object files must be created using
4856
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4857
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4861
# Rational C++ 2.4.1
4862
# FIXME: insert proper C++ library support
4863
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4866
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4867
_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'
4869
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4870
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4872
# Commands to make compiler produce verbose output that lists
4873
# what "hidden" libraries, object files and flags are used when
4874
# linking a shared library.
4876
# There doesn't appear to be a way to prevent this compiler from
4877
# explicitly linking system object files so we need to strip them
4878
# from the output so that they don't get included in the library
4880
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'
4883
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4884
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4885
_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'
4887
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4888
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4890
# Commands to make compiler produce verbose output that lists
4891
# what "hidden" libraries, object files and flags are used when
4892
# linking a shared library.
4893
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4896
# FIXME: insert proper C++ library support
4897
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4903
case $cc_basename in
4905
# Kuck and Associates, Inc. (KAI) C++ Compiler
4907
# KCC will only create a shared library if the output file
4908
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4909
# to its proper name (with version) after linking.
4910
_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'
4912
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4913
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4915
# Archives containing C++ object files must be created using
4916
# the KAI C++ compiler.
4917
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4920
# Rational C++ 2.4.1
4921
# FIXME: insert proper C++ library support
4922
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4925
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4926
_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'
4927
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4928
echo "-hidden">> $lib.exp~
4929
$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~
4932
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4933
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4935
# Commands to make compiler produce verbose output that lists
4936
# what "hidden" libraries, object files and flags are used when
4937
# linking a shared library.
4939
# There doesn't appear to be a way to prevent this compiler from
4940
# explicitly linking system object files so we need to strip them
4941
# from the output so that they don't get included in the library
4943
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'
4946
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4947
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4948
_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'
4950
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4951
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4953
# Commands to make compiler produce verbose output that lists
4954
# what "hidden" libraries, object files and flags are used when
4955
# linking a shared library.
4956
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4959
# FIXME: insert proper C++ library support
4960
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4966
# FIXME: insert proper C++ library support
4967
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4970
case $cc_basename in
4973
# FIXME: insert proper C++ library support
4974
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4978
# FIXME: insert proper C++ library support
4979
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4982
# FIXME: insert proper C++ library support
4983
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4988
case $cc_basename in
4990
# Sun C++ 4.2, 5.x and Centerline C++
4991
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4992
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4993
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4994
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4995
$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'
4997
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4998
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5000
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5002
# The C++ compiler is used as linker so we must use $wl
5003
# flag to pass the commands to the underlying system
5004
# linker. We must also pass each convience library through
5005
# to the system linker between allextract/defaultextract.
5006
# The C++ compiler will combine linker options so we
5007
# cannot just pass the convience library names through
5009
# Supported since Solaris 2.6 (maybe 2.5.1?)
5010
_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'
5013
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5015
output_verbose_link_cmd='echo'
5017
# Archives containing C++ object files must be created using
5018
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5019
# necessary to make sure instantiated templates are included
5021
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5024
# Green Hills C++ Compiler
5025
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5027
# The C++ compiler must be used to create the archive.
5028
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5031
# GNU C++ compiler with Solaris linker
5032
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5033
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5034
if $CC --version | grep -v '^2\.7' > /dev/null; then
5035
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5036
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5037
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5039
# Commands to make compiler produce verbose output that lists
5040
# what "hidden" libraries, object files and flags are used when
5041
# linking a shared library.
5042
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5044
# g++ 2.7 appears to require `-G' NOT `-shared' on this
5046
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5047
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5048
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5050
# Commands to make compiler produce verbose output that lists
5051
# what "hidden" libraries, object files and flags are used when
5052
# linking a shared library.
5053
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5056
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5061
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5062
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5063
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5064
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5065
runpath_var='LD_RUN_PATH'
5067
case $cc_basename in
5069
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5070
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5073
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5074
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5078
sysv5* | sco3.2v5* | sco5v6*)
5079
# Note: We can NOT use -z defs as we might desire, because we do not
5080
# link with -lc, and that would cause any symbols used from libc to
5081
# always be unresolved, which means just about no library would
5082
# ever link correctly. If we're not using GNU ld we use -z text
5083
# though, which does catch some bad symbols but isn't as heavy-handed
5085
# For security reasons, it is highly recommended that you always
5086
# use absolute paths for naming shared libraries, and exclude the
5087
# DT_RUNPATH tag from executables and libraries. But doing so
5088
# requires that you compile everything twice, which is a pain.
5089
# So that behaviour is only enabled if SCOABSPATH is set to a
5090
# non-empty value in the environment. Most likely only useful for
5091
# creating official distributions of packages.
5092
# This is a hack until libtool officially supports absolute path
5093
# names for shared libraries.
5094
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5095
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5096
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5097
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5098
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5099
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5100
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5101
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5102
runpath_var='LD_RUN_PATH'
5104
case $cc_basename in
5106
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5107
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5110
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5111
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5116
case $cc_basename in
5118
# NonStop-UX NCC 3.20
5119
# FIXME: insert proper C++ library support
5120
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5123
# FIXME: insert proper C++ library support
5124
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5129
# FIXME: insert proper C++ library support
5130
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5133
# FIXME: insert proper C++ library support
5134
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5137
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5138
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5140
_LT_AC_TAGVAR(GCC, $1)="$GXX"
5141
_LT_AC_TAGVAR(LD, $1)="$LD"
5143
AC_LIBTOOL_POSTDEP_PREDEP($1)
5144
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5145
AC_LIBTOOL_PROG_CC_C_O($1)
5146
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5147
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5148
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5149
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5151
AC_LIBTOOL_CONFIG($1)
5158
with_gnu_ldcxx=$with_gnu_ld
5159
with_gnu_ld=$lt_save_with_gnu_ld
5160
lt_cv_path_LDCXX=$lt_cv_path_LD
5161
lt_cv_path_LD=$lt_save_path_LD
5162
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5163
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5164
])# AC_LIBTOOL_LANG_CXX_CONFIG
5166
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5167
# ------------------------------------
5168
# Figure out "hidden" library dependencies from verbose
5169
# compiler output when linking a shared library.
5170
# Parse the compiler output and extract the necessary
5171
# objects, libraries and library flags.
5172
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5173
dnl we can't use the lt_simple_compile_test_code here,
5174
dnl because it contains code intended for an executable,
5175
dnl not a library. It's possible we should let each
5176
dnl tag define a new lt_????_link_test_code variable,
5177
dnl but it's only used here...
5178
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5180
void foo (void) { a = 0; }
5182
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5186
Foo (void) { a = 0; }
5191
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5199
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5202
public void bar (void) {
5208
dnl Parse the compiler output and extract the necessary
5209
dnl objects, libraries and library flags.
5210
if AC_TRY_EVAL(ac_compile); then
5211
# Parse the compiler output and extract the necessary
5212
# objects, libraries and library flags.
5214
# Sentinel used to keep track of whether or not we are before
5215
# the conftest object file.
5216
pre_test_object_deps_done=no
5218
# The `*' in the case matches for architectures that use `case' in
5219
# $output_verbose_cmd can trigger glob expansion during the loop
5220
# eval without this substitution.
5221
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5223
for p in `eval $output_verbose_link_cmd`; do
5227
# Some compilers place space between "-{L,R}" and the path.
5230
|| test $p = "-R"; then
5237
if test "$pre_test_object_deps_done" = no; then
5240
# Internal compiler library paths should come after those
5241
# provided the user. The postdeps already come after the
5242
# user supplied libs so there is no need to process them.
5243
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5244
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5246
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5249
# The "-l" case would never come before the object being
5250
# linked, so don't bother handling this case.
5253
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5254
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5256
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5262
# This assumes that the test object file only shows up
5263
# once in the compiler output.
5264
if test "$p" = "conftest.$objext"; then
5265
pre_test_object_deps_done=yes
5269
if test "$pre_test_object_deps_done" = no; then
5270
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5271
_LT_AC_TAGVAR(predep_objects, $1)="$p"
5273
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5276
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5277
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
5279
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5284
*) ;; # Ignore the rest.
5292
echo "libtool.m4: error: problem compiling $1 test program"
5295
$rm -f confest.$objext
5297
# PORTME: override above test on systems where it is broken
5301
# Interix 3.5 installs completely hosed .la files for C++, so rather than
5302
# hack all around it, let's just trust "g++" to DTRT.
5303
_LT_AC_TAGVAR(predep_objects,$1)=
5304
_LT_AC_TAGVAR(postdep_objects,$1)=
5305
_LT_AC_TAGVAR(postdeps,$1)=
5309
case $cc_basename in
5311
# Adding this requires a known-good setup of shared libraries for
5312
# Sun compiler versions before 5.6, else PIC objects from an old
5313
# archive will be linked into the output, leading to subtle bugs.
5314
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
5321
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5322
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5324
])# AC_LIBTOOL_POSTDEP_PREDEP
5326
# AC_LIBTOOL_LANG_F77_CONFIG
5327
# --------------------------
5328
# Ensure that the configuration vars for the C compiler are
5329
# suitably defined. Those variables are subsequently used by
5330
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5331
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5332
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5333
[AC_REQUIRE([AC_PROG_F77])
5334
AC_LANG_PUSH(Fortran 77)
5336
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5337
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5338
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5339
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5340
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5341
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5342
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5343
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5344
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5345
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5346
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5347
_LT_AC_TAGVAR(module_cmds, $1)=
5348
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5349
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5350
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5351
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5352
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5353
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5355
# Source file extension for f77 test sources.
5358
# Object file extension for compiled f77 test sources.
5360
_LT_AC_TAGVAR(objext, $1)=$objext
5362
# Code to be used in simple compile tests
5363
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5365
# Code to be used in simple link tests
5366
lt_simple_link_test_code=" program t\n end\n"
5368
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5371
# save warnings/boilerplate of simple test code
5372
_LT_COMPILER_BOILERPLATE
5373
_LT_LINKER_BOILERPLATE
5375
# Allow CC to be a program name with arguments.
5379
_LT_AC_TAGVAR(compiler, $1)=$CC
5380
_LT_CC_BASENAME([$compiler])
5382
AC_MSG_CHECKING([if libtool supports shared libraries])
5383
AC_MSG_RESULT([$can_build_shared])
5385
AC_MSG_CHECKING([whether to build shared libraries])
5386
test "$can_build_shared" = "no" && enable_shared=no
5388
# On AIX, shared libraries and static libraries use the same namespace, and
5389
# are all built from PIC.
5392
test "$enable_shared" = yes && enable_static=no
5393
if test -n "$RANLIB"; then
5394
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5395
postinstall_cmds='$RANLIB $lib'
5399
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5400
test "$enable_shared" = yes && enable_static=no
5404
AC_MSG_RESULT([$enable_shared])
5406
AC_MSG_CHECKING([whether to build static libraries])
5407
# Make sure either enable_shared or enable_static is yes.
5408
test "$enable_shared" = yes || enable_static=yes
5409
AC_MSG_RESULT([$enable_static])
5411
_LT_AC_TAGVAR(GCC, $1)="$G77"
5412
_LT_AC_TAGVAR(LD, $1)="$LD"
5414
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5415
AC_LIBTOOL_PROG_CC_C_O($1)
5416
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5417
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5418
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5419
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5421
AC_LIBTOOL_CONFIG($1)
5425
])# AC_LIBTOOL_LANG_F77_CONFIG
5428
# AC_LIBTOOL_LANG_GCJ_CONFIG
5429
# --------------------------
5430
# Ensure that the configuration vars for the C compiler are
5431
# suitably defined. Those variables are subsequently used by
5432
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5433
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5434
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5437
# Source file extension for Java test sources.
5440
# Object file extension for compiled Java test sources.
5442
_LT_AC_TAGVAR(objext, $1)=$objext
5444
# Code to be used in simple compile tests
5445
lt_simple_compile_test_code="class foo {}\n"
5447
# Code to be used in simple link tests
5448
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5450
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5453
# save warnings/boilerplate of simple test code
5454
_LT_COMPILER_BOILERPLATE
5455
_LT_LINKER_BOILERPLATE
5457
# Allow CC to be a program name with arguments.
5461
_LT_AC_TAGVAR(compiler, $1)=$CC
5462
_LT_CC_BASENAME([$compiler])
5464
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5465
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5467
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5469
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5470
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5471
AC_LIBTOOL_PROG_CC_C_O($1)
5472
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5473
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5474
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5475
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5477
AC_LIBTOOL_CONFIG($1)
5481
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5484
# AC_LIBTOOL_LANG_RC_CONFIG
5485
# -------------------------
5486
# Ensure that the configuration vars for the Windows resource compiler are
5487
# suitably defined. Those variables are subsequently used by
5488
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5489
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5490
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5493
# Source file extension for RC test sources.
5496
# Object file extension for compiled RC test sources.
5498
_LT_AC_TAGVAR(objext, $1)=$objext
5500
# Code to be used in simple compile tests
5501
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5503
# Code to be used in simple link tests
5504
lt_simple_link_test_code="$lt_simple_compile_test_code"
5506
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5509
# save warnings/boilerplate of simple test code
5510
_LT_COMPILER_BOILERPLATE
5511
_LT_LINKER_BOILERPLATE
5513
# Allow CC to be a program name with arguments.
5517
_LT_AC_TAGVAR(compiler, $1)=$CC
5518
_LT_CC_BASENAME([$compiler])
5519
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5521
AC_LIBTOOL_CONFIG($1)
5525
])# AC_LIBTOOL_LANG_RC_CONFIG
5528
# AC_LIBTOOL_CONFIG([TAGNAME])
5529
# ----------------------------
5530
# If TAGNAME is not passed, then create an initial libtool script
5531
# with a default configuration from the untagged config vars. Otherwise
5532
# add code to config.status for appending the configuration named by
5533
# TAGNAME from the matching tagged config vars.
5534
AC_DEFUN([AC_LIBTOOL_CONFIG],
5535
[# The else clause should only fire when bootstrapping the
5536
# libtool distribution, otherwise you forgot to ship ltmain.sh
5537
# with your package, and you will get complaints that there are
5538
# no rules to generate ltmain.sh.
5539
if test -f "$ltmain"; then
5540
# See if we are running on zsh, and set the options which allow our commands through
5541
# without removal of \ escapes.
5542
if test -n "${ZSH_VERSION+set}" ; then
5543
setopt NO_GLOB_SUBST
5545
# Now quote all the things that may contain metacharacters while being
5546
# careful not to overquote the AC_SUBSTed values. We take copies of the
5547
# variables and quote the copies for generation of the libtool script.
5548
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5550
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5551
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5552
deplibs_check_method reload_flag reload_cmds need_locks \
5553
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5554
lt_cv_sys_global_symbol_to_c_name_address \
5555
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5556
old_postinstall_cmds old_postuninstall_cmds \
5557
_LT_AC_TAGVAR(compiler, $1) \
5558
_LT_AC_TAGVAR(CC, $1) \
5559
_LT_AC_TAGVAR(LD, $1) \
5560
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5561
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5562
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5563
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5564
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5565
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5566
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5567
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5568
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5569
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5570
_LT_AC_TAGVAR(predep_objects, $1) \
5571
_LT_AC_TAGVAR(postdep_objects, $1) \
5572
_LT_AC_TAGVAR(predeps, $1) \
5573
_LT_AC_TAGVAR(postdeps, $1) \
5574
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5575
_LT_AC_TAGVAR(archive_cmds, $1) \
5576
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5577
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5578
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5579
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5580
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5581
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5582
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5583
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5584
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5585
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5586
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5587
_LT_AC_TAGVAR(module_cmds, $1) \
5588
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5589
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5590
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5591
_LT_AC_TAGVAR(include_expsyms, $1); do
5594
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5595
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5596
_LT_AC_TAGVAR(archive_cmds, $1) | \
5597
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5598
_LT_AC_TAGVAR(module_cmds, $1) | \
5599
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5600
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5601
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5602
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5603
postinstall_cmds | postuninstall_cmds | \
5604
old_postinstall_cmds | old_postuninstall_cmds | \
5605
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5606
# Double-quote double-evaled strings.
5607
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5610
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5616
*'\[$]0 --fallback-echo"')
5617
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5622
[cfgfile="${ofile}T"
5623
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5625
AC_MSG_NOTICE([creating $ofile])],
5628
cat <<__EOF__ >> "$cfgfile"
5632
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5633
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5634
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5636
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5637
# Free Software Foundation, Inc.
5639
# This file is part of GNU Libtool:
5640
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5642
# This program is free software; you can redistribute it and/or modify
5643
# it under the terms of the GNU General Public License as published by
5644
# the Free Software Foundation; either version 2 of the License, or
5645
# (at your option) any later version.
5647
# This program is distributed in the hope that it will be useful, but
5648
# WITHOUT ANY WARRANTY; without even the implied warranty of
5649
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5650
# General Public License for more details.
5652
# You should have received a copy of the GNU General Public License
5653
# along with this program; if not, write to the Free Software
5654
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5656
# As a special exception to the GNU General Public License, if you
5657
# distribute this file as part of a program that contains a
5658
# configuration script generated by Autoconf, you may include it under
5659
# the same distribution terms that you use for the rest of that program.
5661
# A sed program that does not truncate output.
5664
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5665
Xsed="$SED -e 1s/^X//"
5667
# The HP-UX ksh and POSIX shell print the target directory to stdout
5669
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5671
# The names of the tagged configurations supported by this script.
5674
# ### BEGIN LIBTOOL CONFIG],
5675
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5677
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5679
# Shell to use when invoking shell scripts.
5682
# Whether or not to build shared libraries.
5683
build_libtool_libs=$enable_shared
5685
# Whether or not to build static libraries.
5686
build_old_libs=$enable_static
5688
# Whether or not to add -lc for building shared libraries.
5689
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5691
# Whether or not to disallow shared libs when runtime libs are static
5692
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5694
# Whether or not to optimize for fast installation.
5695
fast_install=$enable_fast_install
5698
host_alias=$host_alias
5703
build_alias=$build_alias
5707
# An echo program that does not interpret backslashes.
5712
AR_FLAGS=$lt_AR_FLAGS
5717
# LTCC compiler flags.
5718
LTCFLAGS=$lt_LTCFLAGS
5720
# A language-specific compiler.
5721
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5723
# Is the compiler the GNU C compiler?
5724
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5729
# The linker used to build libraries.
5730
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5732
# Whether we need hard or soft links.
5735
# A BSD-compatible nm program.
5738
# A symbol stripping program
5741
# Used to examine libraries when file_magic_cmd begins "file"
5742
MAGIC_CMD=$MAGIC_CMD
5744
# Used on cygwin: DLL creation program.
5747
# Used on cygwin: object dumper.
5750
# Used on cygwin: assembler.
5753
# The name of the directory that contains temporary libtool files.
5756
# How to create reloadable object files.
5757
reload_flag=$lt_reload_flag
5758
reload_cmds=$lt_reload_cmds
5760
# How to pass a linker flag through the compiler.
5761
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5763
# Object file suffix (normally "o").
5766
# Old archive suffix (normally "a").
5769
# Shared library suffix (normally ".so").
5770
shrext_cmds='$shrext_cmds'
5772
# Executable file suffix (normally "").
5775
# Additional compiler flags for building library objects.
5776
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5779
# What is the maximum length of a command?
5780
max_cmd_len=$lt_cv_sys_max_cmd_len
5782
# Does compiler simultaneously support -c and -o options?
5783
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5785
# Must we lock files when doing compilation?
5786
need_locks=$lt_need_locks
5788
# Do we need the lib prefix for modules?
5789
need_lib_prefix=$need_lib_prefix
5791
# Do we need a version for libraries?
5792
need_version=$need_version
5794
# Whether dlopen is supported.
5795
dlopen_support=$enable_dlopen
5797
# Whether dlopen of programs is supported.
5798
dlopen_self=$enable_dlopen_self
5800
# Whether dlopen of statically linked programs is supported.
5801
dlopen_self_static=$enable_dlopen_self_static
5803
# Compiler flag to prevent dynamic linking.
5804
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5806
# Compiler flag to turn off builtin functions.
5807
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5809
# Compiler flag to allow reflexive dlopens.
5810
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5812
# Compiler flag to generate shared objects directly from archives.
5813
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5815
# Compiler flag to generate thread-safe objects.
5816
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5818
# Library versioning type.
5819
version_type=$version_type
5821
# Format of library name prefix.
5822
libname_spec=$lt_libname_spec
5824
# List of archive names. First name is the real one, the rest are links.
5825
# The last name is the one that the linker finds with -lNAME.
5826
library_names_spec=$lt_library_names_spec
5828
# The coded name of the library, if different from the real name.
5829
soname_spec=$lt_soname_spec
5831
# Commands used to build and install an old-style archive.
5833
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5834
old_postinstall_cmds=$lt_old_postinstall_cmds
5835
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5837
# Create an old-style archive from a shared archive.
5838
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5840
# Create a temporary old-style archive to link instead of a shared archive.
5841
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5843
# Commands used to build and install a shared archive.
5844
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5845
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5846
postinstall_cmds=$lt_postinstall_cmds
5847
postuninstall_cmds=$lt_postuninstall_cmds
5849
# Commands used to build a loadable module (assumed same as above if empty)
5850
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5851
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5853
# Commands to strip libraries.
5854
old_striplib=$lt_old_striplib
5855
striplib=$lt_striplib
5857
# Dependencies to place before the objects being linked to create a
5859
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5861
# Dependencies to place after the objects being linked to create a
5863
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5865
# Dependencies to place before the objects being linked to create a
5867
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5869
# Dependencies to place after the objects being linked to create a
5871
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5873
# The library search path used internally by the compiler when linking
5875
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5877
# Method to check whether dependent libraries are shared objects.
5878
deplibs_check_method=$lt_deplibs_check_method
5880
# Command to use when deplibs_check_method == file_magic.
5881
file_magic_cmd=$lt_file_magic_cmd
5883
# Flag that allows shared libraries with undefined symbols to be built.
5884
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5886
# Flag that forces no undefined symbols.
5887
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5889
# Commands used to finish a libtool library installation in a directory.
5890
finish_cmds=$lt_finish_cmds
5892
# Same as above, but a single script fragment to be evaled but not shown.
5893
finish_eval=$lt_finish_eval
5895
# Take the output of nm and produce a listing of raw symbols and C names.
5896
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5898
# Transform the output of nm in a proper C declaration
5899
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5901
# Transform the output of nm in a C name address pair
5902
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5904
# This is the shared library runtime path variable.
5905
runpath_var=$runpath_var
5907
# This is the shared library path variable.
5908
shlibpath_var=$shlibpath_var
5910
# Is shlibpath searched before the hard-coded library search path?
5911
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5913
# How to hardcode a shared library path into an executable.
5914
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5916
# Whether we should hardcode library paths into libraries.
5917
hardcode_into_libs=$hardcode_into_libs
5919
# Flag to hardcode \$libdir into a binary during linking.
5920
# This must work even if \$libdir does not exist.
5921
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5923
# If ld is used when linking, flag to hardcode \$libdir into
5924
# a binary during linking. This must work even if \$libdir does
5926
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5928
# Whether we need a single -rpath flag with a separated argument.
5929
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5931
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5933
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5935
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5937
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5939
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5940
# the resulting binary.
5941
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5943
# Set to yes if building a shared library automatically hardcodes DIR into the library
5944
# and all subsequent libraries and executables linked against it.
5945
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5947
# Variables whose values should be saved in libtool wrapper scripts and
5948
# restored at relink time.
5949
variables_saved_for_relink="$variables_saved_for_relink"
5951
# Whether libtool must link a program against all its dependency libraries.
5952
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5954
# Compile-time system search path for libraries
5955
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5957
# Run-time system search path for libraries
5958
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5960
# Fix the shell variable \$srcfile for the compiler.
5961
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5963
# Set to yes if exported symbols are required.
5964
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5966
# The commands to list exported symbols.
5967
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5969
# The commands to extract the exported symbol list from a shared archive.
5970
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5972
# Symbols that should not be listed in the preloaded symbols.
5973
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5975
# Symbols that must always be exported.
5976
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5979
[# ### END LIBTOOL CONFIG],
5980
[# ### END LIBTOOL TAG CONFIG: $tagname])
5987
cat <<\EOF >> "$cfgfile"
5989
# AIX sometimes has problems with the GCC collect2 program. For some
5990
# reason, if we set the COLLECT_NAMES environment variable, the problems
5991
# vanish in a puff of smoke.
5992
if test "X${COLLECT_NAMES+set}" != Xset; then
5994
export COLLECT_NAMES
6000
# We use sed instead of cat because bash on DJGPP gets confused if
6001
# if finds mixed CR/LF and LF-only lines. Since sed operates in
6002
# text mode, it properly converts lines to CR/LF. This bash problem
6003
# is reportedly fixed, but why not run on old versions too?
6004
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6006
mv -f "$cfgfile" "$ofile" || \
6007
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6011
# If there is no Makefile yet, we rely on a make rule to execute
6012
# `config.status --recheck' to rerun these tests and create the
6013
# libtool script then.
6014
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6015
if test -f "$ltmain_in"; then
6016
test -f Makefile && make "$ltmain"
6019
])# AC_LIBTOOL_CONFIG
6022
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6023
# -------------------------------------------
6024
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6025
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6027
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6029
if test "$GCC" = yes; then
6030
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6032
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6033
lt_cv_prog_compiler_rtti_exceptions,
6034
[-fno-rtti -fno-exceptions], [],
6035
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6037
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6040
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6041
# ---------------------------------
6042
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6043
[AC_REQUIRE([AC_CANONICAL_HOST])
6044
AC_REQUIRE([AC_PROG_NM])
6045
AC_REQUIRE([AC_OBJEXT])
6046
# Check for command to grab the raw symbol name followed by C symbol from nm.
6047
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6048
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6050
# These are sane defaults that work on at least a few old systems.
6051
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6053
# Character class describing NM global symbol codes.
6054
symcode='[[BCDEGRST]]'
6056
# Regexp to match symbols that can be accessed directly from C.
6057
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6059
# Transform an extracted symbol line into a proper C declaration
6060
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6062
# Transform an extracted symbol line into symbol name and symbol address
6063
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6065
# Define system-specific variables.
6070
cygwin* | mingw* | pw32*)
6071
symcode='[[ABCDGISTW]]'
6073
hpux*) # Its linker distinguishes data from code symbols
6074
if test "$host_cpu" = ia64; then
6075
symcode='[[ABCDEGRST]]'
6077
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6078
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6081
if test "$host_cpu" = ia64; then
6082
symcode='[[ABCDGIRSTW]]'
6083
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6084
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6088
symcode='[[BCDEGRST]]'
6091
symcode='[[BCDEGQRST]]'
6102
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6106
symcode='[[DFNSTU]]'
6110
# Handle CRLF in mingw tool chain
6114
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6118
# If we're using GNU nm, then use its standard symbol codes.
6119
case `$NM -V 2>&1` in
6120
*GNU* | *'with BFD'*)
6121
symcode='[[ABCDGIRSTW]]' ;;
6124
# Try without a prefix undercore, then with it.
6125
for ac_symprfx in "" "_"; do
6127
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6128
symxfrm="\\1 $ac_symprfx\\2 \\2"
6130
# Write the raw and C identifiers.
6131
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6133
# Check to see that the pipe works correctly.
6137
cat > conftest.$ac_ext <<EOF
6142
void nm_test_func(){}
6146
int main(){nm_test_var='a';nm_test_func();return(0);}
6149
if AC_TRY_EVAL(ac_compile); then
6150
# Now try to grab the symbols.
6152
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6153
# Try sorting and uniquifying the output.
6154
if sort "$nlist" | uniq > "$nlist"T; then
6155
mv -f "$nlist"T "$nlist"
6160
# Make sure that we snagged all the symbols we need.
6161
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6162
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6163
cat <<EOF > conftest.$ac_ext
6169
# Now generate the symbol file.
6170
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6172
cat <<EOF >> conftest.$ac_ext
6173
#if defined (__STDC__) && __STDC__
6174
# define lt_ptr_t void *
6176
# define lt_ptr_t char *
6180
/* The mapping between symbol names and symbols. */
6185
lt_preloaded_symbols[[]] =
6188
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6189
cat <<\EOF >> conftest.$ac_ext
6197
# Now try linking the two files.
6198
mv conftest.$ac_objext conftstm.$ac_objext
6199
lt_save_LIBS="$LIBS"
6200
lt_save_CFLAGS="$CFLAGS"
6201
LIBS="conftstm.$ac_objext"
6202
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6203
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6206
LIBS="$lt_save_LIBS"
6207
CFLAGS="$lt_save_CFLAGS"
6209
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6212
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6215
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6218
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6219
cat conftest.$ac_ext >&5
6221
rm -f conftest* conftst*
6223
# Do not use the global_symbol_pipe unless it works.
6224
if test "$pipe_works" = yes; then
6227
lt_cv_sys_global_symbol_pipe=
6231
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6232
lt_cv_sys_global_symbol_to_cdecl=
6234
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6235
AC_MSG_RESULT(failed)
6239
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6242
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6243
# ---------------------------------------
6244
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6245
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6246
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6247
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6249
AC_MSG_CHECKING([for $compiler option to produce PIC])
6251
# C++ specific cases for pic, static, wl, etc.
6252
if test "$GXX" = yes; then
6253
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6254
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6258
# All AIX code is PIC.
6259
if test "$host_cpu" = ia64; then
6260
# AIX 5 now supports IA64 processor
6261
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6265
# FIXME: we need at least 68020 code to build shared libraries, but
6266
# adding the `-m68020' flag to GCC prevents building anything better,
6268
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6270
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6271
# PIC is the default for these OSes.
6273
mingw* | os2* | pw32*)
6274
# This hack is so that the source file can tell whether it is being
6275
# built for inclusion in a dll (and should export symbols for example).
6276
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6278
darwin* | rhapsody*)
6279
# PIC is the default on this platform
6280
# Common symbols not allowed in MH_DYLIB files
6281
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6284
# DJGPP does not support shared libraries at all
6285
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6288
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6289
# Instead, we relocate shared libraries at runtime.
6292
if test -d /usr/nec; then
6293
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6297
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6303
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6308
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6314
# All AIX code is PIC.
6315
if test "$host_cpu" = ia64; then
6316
# AIX 5 now supports IA64 processor
6317
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6319
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6323
case $cc_basename in
6325
# Green Hills C++ Compiler
6326
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6331
# PIC is the default on this platform
6332
# Common symbols not allowed in MH_DYLIB files
6333
case $cc_basename in
6335
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6336
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6341
case $cc_basename in
6343
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6346
# Green Hills C++ Compiler
6347
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6353
freebsd* | kfreebsd*-gnu | dragonfly*)
6354
# FreeBSD uses GNU C++
6356
hpux9* | hpux10* | hpux11*)
6357
case $cc_basename in
6359
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6360
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6361
if test "$host_cpu" != ia64; then
6362
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6366
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6367
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6373
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6382
# This is c89, which is MS Visual C++ (no shared libs)
6383
# Anyone wants to do a port?
6385
irix5* | irix6* | nonstopux*)
6386
case $cc_basename in
6388
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6389
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6390
# CC pic flag -KPIC is the default.
6397
case $cc_basename in
6400
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6401
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6405
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6406
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6407
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6410
# Portland Group C++ compiler.
6411
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6412
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6413
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6417
# Make sure the PIC flag is empty. It appears that all Alpha
6418
# Linux and Compaq Tru64 Unix objects are PIC.
6419
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6420
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6431
case $cc_basename in
6433
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6441
osf3* | osf4* | osf5*)
6442
case $cc_basename in
6444
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6447
# Rational C++ 2.4.1
6448
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6451
# Digital/Compaq C++
6452
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6453
# Make sure the PIC flag is empty. It appears that all Alpha
6454
# Linux and Compaq Tru64 Unix objects are PIC.
6455
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6456
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6465
case $cc_basename in
6467
# Sun C++ 4.2, 5.x and Centerline C++
6468
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6469
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6470
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6473
# Green Hills C++ Compiler
6474
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6481
case $cc_basename in
6484
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6485
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6489
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6496
case $cc_basename in
6498
# NonStop-UX NCC 3.20
6499
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6505
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6506
case $cc_basename in
6508
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6509
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6510
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6517
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6523
if test "$GCC" = yes; then
6524
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6525
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6529
# All AIX code is PIC.
6530
if test "$host_cpu" = ia64; then
6531
# AIX 5 now supports IA64 processor
6532
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6537
# FIXME: we need at least 68020 code to build shared libraries, but
6538
# adding the `-m68020' flag to GCC prevents building anything better,
6540
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6543
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6544
# PIC is the default for these OSes.
6547
mingw* | pw32* | os2*)
6548
# This hack is so that the source file can tell whether it is being
6549
# built for inclusion in a dll (and should export symbols for example).
6550
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6553
darwin* | rhapsody*)
6554
# PIC is the default on this platform
6555
# Common symbols not allowed in MH_DYLIB files
6556
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6560
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6561
# Instead, we relocate shared libraries at runtime.
6565
# Just because we use GCC doesn't mean we suddenly get shared libraries
6566
# on systems that don't support them.
6567
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6572
if test -d /usr/nec; then
6573
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6578
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6585
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6591
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6595
# PORTME Check for flag to pass linker flags through the system compiler.
6598
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6599
if test "$host_cpu" = ia64; then
6600
# AIX 5 now supports IA64 processor
6601
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6603
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6607
# PIC is the default on this platform
6608
# Common symbols not allowed in MH_DYLIB files
6609
case $cc_basename in
6611
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6612
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6617
mingw* | pw32* | os2*)
6618
# This hack is so that the source file can tell whether it is being
6619
# built for inclusion in a dll (and should export symbols for example).
6620
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6623
hpux9* | hpux10* | hpux11*)
6624
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6625
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6632
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6635
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6636
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6639
irix5* | irix6* | nonstopux*)
6640
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6641
# PIC (with -KPIC) is the default.
6642
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6646
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6647
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6651
case $cc_basename in
6653
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6654
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6655
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6657
pgcc* | pgf77* | pgf90* | pgf95*)
6658
# Portland Group compilers (*not* the Pentium gcc compiler,
6659
# which looks to be a dead project)
6660
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6661
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6662
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6665
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6666
# All Alpha code is PIC.
6667
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6672
osf3* | osf4* | osf5*)
6673
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6674
# All OSF/1 code is PIC.
6675
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6679
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6680
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6681
case $cc_basename in
6683
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6685
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6690
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6691
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6692
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6695
sysv4 | sysv4.2uw2* | sysv4.3*)
6696
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6697
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6698
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6702
if test -d /usr/nec ;then
6703
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6704
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6708
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6709
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6710
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6711
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6715
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6716
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6720
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6721
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6725
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6730
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6733
# Check to make sure the PIC flag actually works.
6735
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6736
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6737
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6738
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6739
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6741
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6743
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6744
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6747
# For platforms which do not support PIC, -DPIC is meaningless:
6749
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6752
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6757
# Check to make sure the static flag actually works.
6759
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6760
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6761
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6762
$lt_tmp_static_flag,
6764
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6768
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6769
# ------------------------------------
6770
# See if the linker supports building shared libraries.
6771
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6772
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6774
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6777
# If we're using GNU nm, then we don't want the "-C" option.
6778
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6779
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6780
_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'
6782
_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'
6786
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6789
_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'
6792
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6797
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6798
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6799
_LT_AC_TAGVAR(archive_cmds, $1)=
6800
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6801
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6802
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6803
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6804
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6805
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6806
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6807
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6808
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6809
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6810
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6811
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6812
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6813
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6814
_LT_AC_TAGVAR(module_cmds, $1)=
6815
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6816
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6817
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6818
# include_expsyms should be a list of space-separated symbols to be *always*
6819
# included in the symbol list
6820
_LT_AC_TAGVAR(include_expsyms, $1)=
6821
# exclude_expsyms can be an extended regexp of symbols to exclude
6822
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6823
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6824
# as well as any symbol that contains `d'.
6825
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6826
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6827
# platforms (ab)use it in PIC code, but their linkers get confused if
6828
# the symbol is explicitly referenced. Since portable code cannot
6829
# rely on this symbol name, it's probably fine to never include it in
6830
# preloaded symbol tables.
6831
extract_expsyms_cmds=
6832
# Just being paranoid about ensuring that cc_basename is set.
6833
_LT_CC_BASENAME([$compiler])
6835
cygwin* | mingw* | pw32*)
6836
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6837
# When not using gcc, we currently assume that we are using
6838
# Microsoft Visual C++.
6839
if test "$GCC" != yes; then
6844
# we just hope/assume this is gcc and not c89 (= MSVC++)
6852
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6853
if test "$with_gnu_ld" = yes; then
6854
# If archive_cmds runs LD, not CC, wlarc should be empty
6857
# Set some defaults for GNU ld with shared library support. These
6858
# are reset later if shared libraries are not supported. Putting them
6859
# here allows them to be overridden if necessary.
6860
runpath_var=LD_RUN_PATH
6861
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6862
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6863
# ancient GNU ld didn't support --whole-archive et. al.
6864
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6865
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6867
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6869
supports_anon_versioning=no
6870
case `$LD -v 2>/dev/null` in
6871
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6872
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6873
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6874
*\ 2.11.*) ;; # other 2.11 versions
6875
*) supports_anon_versioning=yes ;;
6878
# See if GNU ld supports shared libraries.
6880
aix3* | aix4* | aix5*)
6881
# On AIX/PPC, the GNU linker is very broken
6882
if test "$host_cpu" != ia64; then
6883
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6886
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6887
*** to be unable to reliably create shared libraries on AIX.
6888
*** Therefore, libtool is disabling shared libraries support. If you
6889
*** really care for shared libraries, you may want to modify your PATH
6890
*** so that a non-GNU linker is found, and then restart.
6897
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6898
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6899
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6901
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6902
# that the semantics of dynamic libraries on AmigaOS, at least up
6903
# to version 4, is to share data among multiple programs linked
6904
# with the same dynamic library. Since this doesn't match the
6905
# behavior of shared libraries on other platforms, we can't use
6907
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6911
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6912
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6913
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6914
# support --undefined. This deserves some investigation. FIXME
6915
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6917
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6921
cygwin* | mingw* | pw32*)
6922
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6923
# as there is no search path for DLLs.
6924
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6925
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6926
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6927
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6928
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6930
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6931
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6932
# If the export-symbols file already is a .def file (1st line
6933
# is EXPORTS), use it as is; otherwise, prepend...
6934
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6935
cp $export_symbols $output_objdir/$soname.def;
6937
echo EXPORTS > $output_objdir/$soname.def;
6938
cat $export_symbols >> $output_objdir/$soname.def;
6940
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6942
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6947
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6948
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6949
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6950
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6951
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6952
# Instead, shared libraries are loaded at an image base (0x10000000 by
6953
# default) and relocated if they conflict, which is a slow very memory
6954
# consuming and fragmenting process. To avoid this, we pick a random,
6955
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6956
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6957
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6958
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6962
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6964
case $cc_basename,$host_cpu in
6965
pgcc*) # Portland Group C compiler
6966
_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'
6967
tmp_addflag=' $pic_flag'
6969
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6970
_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'
6971
tmp_addflag=' $pic_flag -Mnomain' ;;
6972
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6973
tmp_addflag=' -i_dynamic' ;;
6974
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6975
tmp_addflag=' -i_dynamic -nofor_main' ;;
6976
ifc* | ifort*) # Intel Fortran compiler
6977
tmp_addflag=' -nofor_main' ;;
6979
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6981
if test $supports_anon_versioning = yes; then
6982
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6983
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6984
$echo "local: *; };" >> $output_objdir/$libname.ver~
6985
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6988
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6993
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6994
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6997
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6998
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7003
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7004
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7007
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7008
*** create shared libraries on Solaris systems. Therefore, libtool
7009
*** is disabling shared libraries support. We urge you to upgrade GNU
7010
*** binutils to release 2.9.1 or newer. Another option is to modify
7011
*** your PATH or compiler configuration so that the native linker is
7012
*** used, and then restart.
7015
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7016
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7017
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7019
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7023
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7024
case `$LD -v 2>&1` in
7025
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7026
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7029
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7030
*** reliably create shared libraries on SCO systems. Therefore, libtool
7031
*** is disabling shared libraries support. We urge you to upgrade GNU
7032
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7033
*** your PATH or compiler configuration so that the native linker is
7034
*** used, and then restart.
7039
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7040
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7041
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7042
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7044
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7051
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7053
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7054
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7058
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7059
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7060
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7062
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7067
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
7069
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7070
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7071
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7074
# PORTME fill in a description of your system's linker (not GNU ld)
7077
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7078
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
7079
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7080
# Note: this linker hardcodes the directories in LIBPATH if there
7081
# are no directories specified by -L.
7082
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7083
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7084
# Neither direct hardcoding nor static linking is supported with a
7086
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7091
if test "$host_cpu" = ia64; then
7092
# On IA64, the linker does run time linking by default, so we don't
7093
# have to do anything special.
7094
aix_use_runtimelinking=no
7095
exp_sym_flag='-Bexport'
7098
# If we're using GNU nm, then we don't want the "-C" option.
7099
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7100
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7101
_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'
7103
_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'
7105
aix_use_runtimelinking=no
7107
# Test if we are trying to use run time linking or normal
7108
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7109
# need to do runtime linking.
7110
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7111
for ld_flag in $LDFLAGS; do
7112
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7113
aix_use_runtimelinking=yes
7120
exp_sym_flag='-bexport'
7121
no_entry_flag='-bnoentry'
7124
# When large executables or shared objects are built, AIX ld can
7125
# have problems creating the table of contents. If linking a library
7126
# or program results in "error TOC overflow" add -mminimal-toc to
7127
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7128
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7130
_LT_AC_TAGVAR(archive_cmds, $1)=''
7131
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7132
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7133
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7135
if test "$GCC" = yes; then
7136
case $host_os in aix4.[[012]]|aix4.[[012]].*)
7137
# We only want to do this on AIX 4.2 and lower, the check
7138
# below for broken collect2 doesn't work under 4.3+
7139
collect2name=`${CC} -print-prog-name=collect2`
7140
if test -f "$collect2name" && \
7141
strings "$collect2name" | grep resolve_lib_name >/dev/null
7143
# We have reworked collect2
7144
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7146
# We have old collect2
7147
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7148
# It fails to find uninstalled libraries when the uninstalled
7149
# path is not listed in the libpath. Setting hardcode_minus_L
7150
# to unsupported forces relinking
7151
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7152
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7153
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7157
shared_flag='-shared'
7158
if test "$aix_use_runtimelinking" = yes; then
7159
shared_flag="$shared_flag "'${wl}-G'
7163
if test "$host_cpu" = ia64; then
7164
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7165
# chokes on -Wl,-G. The following line is correct:
7168
if test "$aix_use_runtimelinking" = yes; then
7169
shared_flag='${wl}-G'
7171
shared_flag='${wl}-bM:SRE'
7176
# It seems that -bexpall does not export symbols beginning with
7177
# underscore (_), so it is better to generate a list of symbols to export.
7178
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
7179
if test "$aix_use_runtimelinking" = yes; then
7180
# Warning - without using the other runtime loading flags (-brtl),
7181
# -berok will link without error, but may produce a broken library.
7182
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7183
# Determine the default libpath from the value encoded in an empty executable.
7184
_LT_AC_SYS_LIBPATH_AIX
7185
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7186
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7188
if test "$host_cpu" = ia64; then
7189
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7190
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7191
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7193
# Determine the default libpath from the value encoded in an empty executable.
7194
_LT_AC_SYS_LIBPATH_AIX
7195
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7196
# Warning - without using the other run time loading flags,
7197
# -berok will link without error, but may produce a broken library.
7198
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7199
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7200
# Exported symbols can be pulled into shared objects from archives
7201
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7202
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7203
# This is similar to how AIX traditionally builds its shared libraries.
7204
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7210
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7211
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7212
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7213
# see comment about different semantics on the GNU ld section
7214
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7218
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7221
cygwin* | mingw* | pw32*)
7222
# When not using gcc, we currently assume that we are using
7223
# Microsoft Visual C++.
7224
# hardcode_libdir_flag_spec is actually meaningless, as there is
7225
# no search path for DLLs.
7226
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7227
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7228
# Tell ltmain to make .lib files, not .a files.
7230
# Tell ltmain to make .dll files, not .so files.
7232
# FIXME: Setting linknames here is a bad hack.
7233
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7234
# The linker will automatically build a .lib file if we build a DLL.
7235
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7236
# FIXME: Should let the user specify the lib program.
7237
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7238
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7239
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7242
darwin* | rhapsody*)
7244
rhapsody* | darwin1.[[012]])
7245
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7248
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7249
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7251
case ${MACOSX_DEPLOYMENT_TARGET} in
7253
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7256
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7262
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7263
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7264
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7265
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7266
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7267
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7268
if test "$GCC" = yes ; then
7269
output_verbose_link_cmd='echo'
7270
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7271
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7272
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7273
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7274
_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}'
7276
case $cc_basename in
7278
output_verbose_link_cmd='echo'
7279
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7280
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7281
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7282
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7283
_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}'
7286
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7293
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7295
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7299
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7302
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7303
# support. Future versions do this automatically, but an explicit c++rt0.o
7304
# does not break anything, and helps significantly (at the cost of a little
7307
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7308
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7309
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7310
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7313
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7315
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7316
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7317
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7318
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7321
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7322
freebsd* | kfreebsd*-gnu | dragonfly*)
7323
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7324
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7325
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7326
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7330
if test "$GCC" = yes; then
7331
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7333
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7335
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7336
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7337
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7339
# hardcode_minus_L: Not really in the search PATH,
7340
# but as the default location of the library.
7341
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7342
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7346
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7347
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7349
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7351
if test "$with_gnu_ld" = no; then
7352
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7353
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7355
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7356
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7358
# hardcode_minus_L: Not really in the search PATH,
7359
# but as the default location of the library.
7360
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7365
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7368
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7371
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7374
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7380
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7383
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7386
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7390
if test "$with_gnu_ld" = no; then
7391
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7392
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7396
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7397
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7398
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7401
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7402
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7404
# hardcode_minus_L: Not really in the search PATH,
7405
# but as the default location of the library.
7406
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7412
irix5* | irix6* | nonstopux*)
7413
if test "$GCC" = yes; then
7414
_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'
7416
_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'
7417
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7419
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7420
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7421
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7425
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7426
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7428
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7430
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7431
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7432
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7436
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7437
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7438
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7439
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7440
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7444
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7445
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7446
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7447
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7448
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7449
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7450
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7453
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7454
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7455
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7458
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7459
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7466
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7467
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7468
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7469
_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'
7470
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7474
if test "$GCC" = yes; then
7475
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7476
_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'
7478
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7479
_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'
7481
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7482
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7485
osf4* | osf5*) # as osf3* with the addition of -msym flag
7486
if test "$GCC" = yes; then
7487
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7488
_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'
7489
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7491
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7492
_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'
7493
_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~
7494
$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'
7496
# Both c and cxx compiler support -rpath directly
7497
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7499
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7503
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7504
if test "$GCC" = yes; then
7506
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7507
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7508
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7511
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7513
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7515
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7516
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7518
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7520
# The compiler driver will combine linker options so we
7521
# cannot just pass the convience library names through
7522
# without $wl, iff we do not link with $LD.
7523
# Luckily, gcc supports the same syntax we need for Sun Studio.
7524
# Supported since Solaris 2.6 (maybe 2.5.1?)
7527
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7529
_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' ;;
7532
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7536
if test "x$host_vendor" = xsequent; then
7537
# Use $CC to link under sequent, because it throws in some extra .o
7538
# files that make .init and .fini sections work.
7539
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7541
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7543
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7544
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7545
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7546
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7550
case $host_vendor in
7552
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7553
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7556
## LD is ld it makes a PLAMLIB
7557
## CC just makes a GrossModule.
7558
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7559
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7560
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7563
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7564
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7567
runpath_var='LD_RUN_PATH'
7568
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7572
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7573
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7574
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7578
if test -d /usr/nec; then
7579
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7581
runpath_var=LD_RUN_PATH
7582
hardcode_runpath_var=yes
7583
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7587
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7588
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7589
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7590
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7591
runpath_var='LD_RUN_PATH'
7593
if test "$GCC" = yes; then
7594
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7595
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7597
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7598
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7602
sysv5* | sco3.2v5* | sco5v6*)
7603
# Note: We can NOT use -z defs as we might desire, because we do not
7604
# link with -lc, and that would cause any symbols used from libc to
7605
# always be unresolved, which means just about no library would
7606
# ever link correctly. If we're not using GNU ld we use -z text
7607
# though, which does catch some bad symbols but isn't as heavy-handed
7609
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7610
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7611
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7612
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7613
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7614
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7615
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7616
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7617
runpath_var='LD_RUN_PATH'
7619
if test "$GCC" = yes; then
7620
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7621
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7623
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7624
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7629
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7631
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7635
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7640
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7641
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7644
# Do we need to explicitly link libc?
7646
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7648
# Assume -lc should be added
7649
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7651
if test "$enable_shared" = yes && test "$GCC" = yes; then
7652
case $_LT_AC_TAGVAR(archive_cmds, $1) in
7654
# FIXME: we may have to deal with multi-command sequences.
7657
# Test whether the compiler implicitly links with -lc since on some
7658
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7659
# to ld, don't add -lc before -lgcc.
7660
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7662
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7664
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7667
libobjs=conftest.$ac_objext
7669
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7670
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7676
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7677
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7678
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7680
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7682
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7684
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7686
cat conftest.err 1>&5
7689
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7695
])# AC_LIBTOOL_PROG_LD_SHLIBS
7698
# _LT_AC_FILE_LTDLL_C
7699
# -------------------
7700
# Be careful that the start marker always follows a newline.
7701
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7702
# /* ltdll.c starts here */
7703
# #define WIN32_LEAN_AND_MEAN
7704
# #include <windows.h>
7705
# #undef WIN32_LEAN_AND_MEAN
7706
# #include <stdio.h>
7708
# #ifndef __CYGWIN__
7709
# # ifdef __CYGWIN32__
7710
# # define __CYGWIN__ __CYGWIN32__
7714
# #ifdef __cplusplus
7717
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7718
# #ifdef __cplusplus
7723
# #include <cygwin/cygwin_dll.h>
7724
# DECLARE_CYGWIN_DLL( DllMain );
7726
# HINSTANCE __hDllInstance_base;
7729
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7731
# __hDllInstance_base = hInst;
7734
# /* ltdll.c ends here */
7735
])# _LT_AC_FILE_LTDLL_C
7738
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7739
# ---------------------------------
7740
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7744
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7745
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7746
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7747
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7748
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7749
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7750
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7752
# This is just to silence aclocal about the macro not being used
7753
ifelse([AC_DISABLE_FAST_INSTALL])
7755
AC_DEFUN([LT_AC_PROG_GCJ],
7756
[AC_CHECK_TOOL(GCJ, gcj, no)
7757
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7761
AC_DEFUN([LT_AC_PROG_RC],
7762
[AC_CHECK_TOOL(RC, windres, no)
7765
# NOTE: This macro has been submitted for inclusion into #
7766
# GNU Autoconf as AC_PROG_SED. When it is available in #
7767
# a released version of Autoconf we should remove this #
7768
# macro and use it instead. #
7771
# Check for a fully-functional sed program, that truncates
7772
# as few characters as possible. Prefer GNU sed if found.
7773
AC_DEFUN([LT_AC_PROG_SED],
7774
[AC_MSG_CHECKING([for a sed that does not truncate output])
7775
AC_CACHE_VAL(lt_cv_path_SED,
7776
[# Loop through the user's path and test for sed and gsed.
7777
# Then use that list of sed's as ones to test for truncation.
7778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782
test -z "$as_dir" && as_dir=.
7783
for lt_ac_prog in sed gsed; do
7784
for ac_exec_ext in '' $ac_executable_extensions; do
7785
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7786
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7793
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7794
# along with /bin/sed that truncates output.
7795
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7796
test ! -f $lt_ac_sed && continue
7797
cat /dev/null > conftest.in
7799
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7800
# Check for GNU sed and select it if it is found.
7801
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7802
lt_cv_path_SED=$lt_ac_sed
7806
cat conftest.in conftest.in >conftest.tmp
7807
mv conftest.tmp conftest.in
7808
cp conftest.in conftest.nl
7810
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7811
cmp -s conftest.out conftest.nl || break
7812
# 10000 chars as input seems more than enough
7813
test $lt_ac_count -gt 10 && break
7814
lt_ac_count=`expr $lt_ac_count + 1`
7815
if test $lt_ac_count -gt $lt_ac_max; then
7816
lt_ac_max=$lt_ac_count
7817
lt_cv_path_SED=$lt_ac_sed
7823
AC_MSG_RESULT([$SED])
7826
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7828
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7830
# This program is free software; you can redistribute it and/or modify
7831
# it under the terms of the GNU General Public License as published by
7832
# the Free Software Foundation; either version 2 of the License, or
7833
# (at your option) any later version.
7835
# This program is distributed in the hope that it will be useful, but
7836
# WITHOUT ANY WARRANTY; without even the implied warranty of
7837
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7838
# General Public License for more details.
7840
# You should have received a copy of the GNU General Public License
7841
# along with this program; if not, write to the Free Software
7842
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7844
# As a special exception to the GNU General Public License, if you
7845
# distribute this file as part of a program that contains a
7846
# configuration script generated by Autoconf, you may include it under
7847
# the same distribution terms that you use for the rest of that program.
7849
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
7850
# ----------------------------------
7851
AC_DEFUN([PKG_PROG_PKG_CONFIG],
7852
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7853
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7854
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7855
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7856
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7858
if test -n "$PKG_CONFIG"; then
7859
_pkg_min_version=m4_default([$1], [0.9.0])
7860
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7861
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7862
AC_MSG_RESULT([yes])
7869
])# PKG_PROG_PKG_CONFIG
7871
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7873
# Check to see whether a particular set of modules exists. Similar
7874
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
7877
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
7878
# this or PKG_CHECK_MODULES is called, or make sure to call
7879
# PKG_CHECK_EXISTS manually
7880
# --------------------------------------------------------------
7881
AC_DEFUN([PKG_CHECK_EXISTS],
7882
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7883
if test -n "$PKG_CONFIG" && \
7884
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7885
m4_ifval([$2], [$2], [:])
7886
m4_ifvaln([$3], [else
7891
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7892
# ---------------------------------------------
7893
m4_define([_PKG_CONFIG],
7894
[if test -n "$$1"; then
7896
elif test -n "$PKG_CONFIG"; then
7897
PKG_CHECK_EXISTS([$3],
7898
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7905
# _PKG_SHORT_ERRORS_SUPPORTED
7906
# -----------------------------
7907
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7908
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7909
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7910
_pkg_short_errors_supported=yes
7912
_pkg_short_errors_supported=no
7914
])# _PKG_SHORT_ERRORS_SUPPORTED
7917
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7918
# [ACTION-IF-NOT-FOUND])
7921
# Note that if there is a possibility the first call to
7922
# PKG_CHECK_MODULES might not happen, you should be sure to include an
7923
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7926
# --------------------------------------------------------------
7927
AC_DEFUN([PKG_CHECK_MODULES],
7928
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7929
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7930
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7933
AC_MSG_CHECKING([for $1])
7935
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7936
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7938
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7939
and $1[]_LIBS to avoid the need to call pkg-config.
7940
See the pkg-config man page for more details.])
7942
if test $pkg_failed = yes; then
7943
_PKG_SHORT_ERRORS_SUPPORTED
7944
if test $_pkg_short_errors_supported = yes; then
7945
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
7947
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
7949
# Put the nasty error message in config.log where it belongs
7950
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7952
ifelse([$4], , [AC_MSG_ERROR(dnl
7953
[Package requirements ($2) were not met:
7957
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7958
installed software in a non-standard prefix.
7962
[AC_MSG_RESULT([no])
7964
elif test $pkg_failed = untried; then
7965
ifelse([$4], , [AC_MSG_FAILURE(dnl
7966
[The pkg-config script could not be found or is too old. Make sure it
7967
is in your PATH or set the PKG_CONFIG environment variable to the full
7972
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7975
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7976
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7977
AC_MSG_RESULT([yes])
7978
ifelse([$3], , :, [$3])
7980
])# PKG_CHECK_MODULES
7982
m4_include([m4/gnome-doc-utils.m4])
7983
m4_include([m4/intltool.m4])
7984
m4_include([acinclude.m4])