1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 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
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
16
# This file is free software; the Free Software Foundation
17
# gives unlimited permission to copy and/or distribute it,
18
# with or without modifications, as long as this notice is preserved.
20
# AM_AUTOMAKE_VERSION(VERSION)
21
# ----------------------------
22
# Automake X.Y traces this macro to ensure aclocal.m4 has been
23
# generated from the m4 files accompanying Automake X.Y.
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
26
# AM_SET_CURRENT_AUTOMAKE_VERSION
27
# -------------------------------
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
29
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
30
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31
[AM_AUTOMAKE_VERSION([1.9.6])])
33
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
35
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
37
# This file is free software; the Free Software Foundation
38
# gives unlimited permission to copy and/or distribute it,
39
# with or without modifications, as long as this notice is preserved.
41
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
42
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
43
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
45
# Of course, Automake must honor this variable whenever it calls a
46
# tool from the auxiliary directory. The problem is that $srcdir (and
47
# therefore $ac_aux_dir as well) can be either absolute or relative,
48
# depending on how configure is run. This is pretty annoying, since
49
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
50
# source directory, any form will work fine, but in subdirectories a
51
# relative path needs to be adjusted first.
54
# fails when called from a subdirectory if $ac_aux_dir is relative
55
# $top_srcdir/$ac_aux_dir/missing
56
# fails if $ac_aux_dir is absolute,
57
# fails when called from a subdirectory in a VPATH build with
58
# a relative $ac_aux_dir
60
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
61
# are both prefixed by $srcdir. In an in-source build this is usually
62
# harmless because $srcdir is `.', but things will broke when you
63
# start a VPATH build or use an absolute $srcdir.
65
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
66
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
67
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
68
# and then we would define $MISSING as
69
# MISSING="\${SHELL} $am_aux_dir/missing"
70
# This will work as long as MISSING is not called from configure, because
71
# unfortunately $(top_srcdir) has no meaning in configure.
72
# However there are other variables, like CC, which are often used in
73
# configure, and could therefore not use this "fixed" $ac_aux_dir.
75
# Another solution, used here, is to always expand $ac_aux_dir to an
76
# absolute PATH. The drawback is that using absolute paths prevent a
77
# configured tree to be moved without reconfiguration.
79
AC_DEFUN([AM_AUX_DIR_EXPAND],
80
[dnl Rely on autoconf to set up CDPATH properly.
82
# expand $ac_aux_dir to an absolute path
83
am_aux_dir=`cd $ac_aux_dir && pwd`
86
# AM_CONDITIONAL -*- Autoconf -*-
88
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
89
# Free Software Foundation, Inc.
91
# This file is free software; the Free Software Foundation
92
# gives unlimited permission to copy and/or distribute it,
93
# with or without modifications, as long as this notice is preserved.
97
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
98
# -------------------------------------
99
# Define a conditional.
100
AC_DEFUN([AM_CONDITIONAL],
102
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
103
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
113
AC_CONFIG_COMMANDS_PRE(
114
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
115
AC_MSG_ERROR([[conditional "$1" was never defined.
116
Usually this means the macro was only invoked conditionally.]])
120
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
121
# Free Software Foundation, Inc.
123
# This file is free software; the Free Software Foundation
124
# gives unlimited permission to copy and/or distribute it,
125
# with or without modifications, as long as this notice is preserved.
129
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
130
# written in clear, in which case automake, when reading aclocal.m4,
131
# will think it sees a *use*, and therefore will trigger all it's
132
# C support machinery. Also note that it means that autoscan, seeing
133
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
136
# _AM_DEPENDENCIES(NAME)
137
# ----------------------
138
# See how the compiler implements dependency checking.
139
# NAME is "CC", "CXX", "GCJ", or "OBJC".
140
# We try a few techniques and use that to set a single cache variable.
142
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
143
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
144
# dependency, and given that the user is not expected to run this macro,
145
# just rely on AC_PROG_CC.
146
AC_DEFUN([_AM_DEPENDENCIES],
147
[AC_REQUIRE([AM_SET_DEPDIR])dnl
148
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
149
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
150
AC_REQUIRE([AM_DEP_TRACK])dnl
152
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
153
[$1], CXX, [depcc="$CXX" am_compiler_list=],
154
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
155
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
156
[depcc="$$1" am_compiler_list=])
158
AC_CACHE_CHECK([dependency style of $depcc],
159
[am_cv_$1_dependencies_compiler_type],
160
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
161
# We make a subdir and do the tests there. Otherwise we can end up
162
# making bogus files that we don't know about and never remove. For
163
# instance it was reported that on HP-UX the gcc test will end up
164
# making a dummy file named `D' -- because `-MD' means `put the output
167
# Copy depcomp to subdir because otherwise we won't find it if we're
168
# using a relative directory.
169
cp "$am_depcomp" conftest.dir
171
# We will build objects and dependencies in a subdirectory because
172
# it helps to detect inapplicable dependency modes. For instance
173
# both Tru64's cc and ICC support -MD to output dependencies as a
174
# side effect of compilation, but ICC will put the dependencies in
175
# the current directory while Tru64 will put them in the object
179
am_cv_$1_dependencies_compiler_type=none
180
if test "$am_compiler_list" = ""; then
181
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
183
for depmode in $am_compiler_list; do
184
# Setup a source with many dependencies, because some compilers
185
# like to wrap large dependency lists on column 80 (with \), and
186
# we should not choose a depcomp mode which is confused by this.
188
# We need to recreate these files for each test, as the compiler may
189
# overwrite some of them when testing with obscure command lines.
190
# This happens at least with the AIX C compiler.
192
for i in 1 2 3 4 5 6; do
193
echo '#include "conftst'$i'.h"' >> sub/conftest.c
194
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
195
# Solaris 8's {/usr,}/bin/sh.
196
touch sub/conftst$i.h
198
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
202
# after this tag, mechanisms are not by side-effect, so they'll
203
# only be used when explicitly requested
204
if test "x$enable_dependency_tracking" = xyes; then
212
# We check with `-c' and `-o' for the sake of the "dashmstdout"
213
# mode. It turns out that the SunPro C++ compiler does not properly
214
# handle `-M -o', and we need to detect this.
215
if depmode=$depmode \
216
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
217
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
218
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
219
>/dev/null 2>conftest.err &&
220
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
221
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
222
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
223
# icc doesn't choke on unknown options, it will just issue warnings
224
# or remarks (even with -Werror). So we grep stderr for any message
225
# that says an option was ignored or not supported.
226
# When given -MP, icc 7.0 and 7.1 complain thusly:
227
# icc: Command line warning: ignoring option '-M'; no argument required
228
# The diagnosis changed in icc 8.0:
229
# icc: Command line remark: option '-MP' not supported
230
if (grep 'ignoring option' conftest.err ||
231
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
232
am_cv_$1_dependencies_compiler_type=$depmode
241
am_cv_$1_dependencies_compiler_type=none
244
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
245
AM_CONDITIONAL([am__fastdep$1], [
246
test "x$enable_dependency_tracking" != xno \
247
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
253
# Choose a directory name for dependency files.
254
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
255
AC_DEFUN([AM_SET_DEPDIR],
256
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
257
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
263
AC_DEFUN([AM_DEP_TRACK],
264
[AC_ARG_ENABLE(dependency-tracking,
265
[ --disable-dependency-tracking speeds up one-time build
266
--enable-dependency-tracking do not reject slow dependency extractors])
267
if test "x$enable_dependency_tracking" != xno; then
268
am_depcomp="$ac_aux_dir/depcomp"
271
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
272
AC_SUBST([AMDEPBACKSLASH])
275
# Generate code to set up dependency tracking. -*- Autoconf -*-
277
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
278
# Free Software Foundation, Inc.
280
# This file is free software; the Free Software Foundation
281
# gives unlimited permission to copy and/or distribute it,
282
# with or without modifications, as long as this notice is preserved.
286
# _AM_OUTPUT_DEPENDENCY_COMMANDS
287
# ------------------------------
288
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
289
[for mf in $CONFIG_FILES; do
290
# Strip MF so we end up with the name of the file.
291
mf=`echo "$mf" | sed -e 's/:.*$//'`
292
# Check whether this is an Automake generated Makefile or not.
293
# We used to match only the files named `Makefile.in', but
294
# some people rename them; so instead we look at the file content.
295
# Grep'ing the first line is not enough: some people post-process
296
# each Makefile.in and add a new line on top of each file to say so.
297
# So let's grep whole file.
298
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
299
dirpart=`AS_DIRNAME("$mf")`
303
# Extract the definition of DEPDIR, am__include, and am__quote
304
# from the Makefile without running `make'.
305
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
306
test -z "$DEPDIR" && continue
307
am__include=`sed -n 's/^am__include = //p' < "$mf"`
308
test -z "am__include" && continue
309
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
310
# When using ansi2knr, U may be empty or an underscore; expand it
311
U=`sed -n 's/^U = //p' < "$mf"`
312
# Find all dependency output files, they are included files with
313
# $(DEPDIR) in their names. We invoke sed twice because it is the
314
# simplest approach to changing $(DEPDIR) to its actual value in the
316
for file in `sed -n "
317
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
318
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
319
# Make sure the directory exists.
320
test -f "$dirpart/$file" && continue
321
fdir=`AS_DIRNAME(["$file"])`
322
AS_MKDIR_P([$dirpart/$fdir])
323
# echo "creating $dirpart/$file"
324
echo '# dummy' > "$dirpart/$file"
327
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
330
# AM_OUTPUT_DEPENDENCY_COMMANDS
331
# -----------------------------
332
# This macro should only be invoked once -- use via AC_REQUIRE.
334
# This code is only required when automatic dependency tracking
335
# is enabled. FIXME. This creates each `.P' file that we will
336
# need in order to bootstrap the dependency handling code.
337
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
338
[AC_CONFIG_COMMANDS([depfiles],
339
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
340
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
343
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
344
# Free Software Foundation, Inc.
346
# This file is free software; the Free Software Foundation
347
# gives unlimited permission to copy and/or distribute it,
348
# with or without modifications, as long as this notice is preserved.
352
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
353
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
355
# Do all the work for Automake. -*- Autoconf -*-
357
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
358
# Free Software Foundation, Inc.
360
# This file is free software; the Free Software Foundation
361
# gives unlimited permission to copy and/or distribute it,
362
# with or without modifications, as long as this notice is preserved.
366
# This macro actually does too much. Some checks are only needed if
367
# your package does certain things. But this isn't really a big deal.
369
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
370
# AM_INIT_AUTOMAKE([OPTIONS])
371
# -----------------------------------------------
372
# The call with PACKAGE and VERSION arguments is the old style
373
# call (pre autoconf-2.50), which is being phased out. PACKAGE
374
# and VERSION should now be passed to AC_INIT and removed from
375
# the call to AM_INIT_AUTOMAKE.
376
# We support both call styles for the transition. After
377
# the next Automake release, Autoconf can make the AC_INIT
378
# arguments mandatory, and then we can depend on a new Autoconf
379
# release and drop the old call support.
380
AC_DEFUN([AM_INIT_AUTOMAKE],
381
[AC_PREREQ([2.58])dnl
382
dnl Autoconf wants to disallow AM_ names. We explicitly allow
383
dnl the ones we care about.
384
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
385
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
386
AC_REQUIRE([AC_PROG_INSTALL])dnl
387
# test to see if srcdir already configured
388
if test "`cd $srcdir && pwd`" != "`pwd`" &&
389
test -f $srcdir/config.status; then
390
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
393
# test whether we have cygpath
394
if test -z "$CYGPATH_W"; then
395
if (cygpath --version) >/dev/null 2>/dev/null; then
396
CYGPATH_W='cygpath -w'
401
AC_SUBST([CYGPATH_W])
403
# Define the identity of the package.
404
dnl Distinguish between old-style and new-style calls.
406
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
407
AC_SUBST([PACKAGE], [$1])dnl
408
AC_SUBST([VERSION], [$2])],
409
[_AM_SET_OPTIONS([$1])dnl
410
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
411
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
413
_AM_IF_OPTION([no-define],,
414
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
415
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
417
# Some tools Automake needs.
418
AC_REQUIRE([AM_SANITY_CHECK])dnl
419
AC_REQUIRE([AC_ARG_PROGRAM])dnl
420
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
421
AM_MISSING_PROG(AUTOCONF, autoconf)
422
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
423
AM_MISSING_PROG(AUTOHEADER, autoheader)
424
AM_MISSING_PROG(MAKEINFO, makeinfo)
426
AM_PROG_INSTALL_STRIP
427
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
428
# We need awk for the "check" target. The system "awk" is bad on
430
AC_REQUIRE([AC_PROG_AWK])dnl
431
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
432
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
433
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
434
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
435
[_AM_PROG_TAR([v7])])])
436
_AM_IF_OPTION([no-dependencies],,
437
[AC_PROVIDE_IFELSE([AC_PROG_CC],
438
[_AM_DEPENDENCIES(CC)],
439
[define([AC_PROG_CC],
440
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
441
AC_PROVIDE_IFELSE([AC_PROG_CXX],
442
[_AM_DEPENDENCIES(CXX)],
443
[define([AC_PROG_CXX],
444
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
449
# When config.status generates a header, we must update the stamp-h file.
450
# This file resides in the same directory as the config header
451
# that is generated. The stamp files are numbered to have different names.
453
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
454
# loop where config.status creates the headers, so we can generate
455
# our stamp files there.
456
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
457
[# Compute $1's index in $config_headers.
459
for _am_header in $config_headers :; do
464
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
467
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
469
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
471
# This file is free software; the Free Software Foundation
472
# gives unlimited permission to copy and/or distribute it,
473
# with or without modifications, as long as this notice is preserved.
477
# Define $install_sh.
478
AC_DEFUN([AM_PROG_INSTALL_SH],
479
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
480
install_sh=${install_sh-"$am_aux_dir/install-sh"}
481
AC_SUBST(install_sh)])
483
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
485
# This file is free software; the Free Software Foundation
486
# gives unlimited permission to copy and/or distribute it,
487
# with or without modifications, as long as this notice is preserved.
491
# Check whether the underlying file-system supports filenames
492
# with a leading dot. For instance MS-DOS doesn't.
493
AC_DEFUN([AM_SET_LEADING_DOT],
494
[rm -rf .tst 2>/dev/null
495
mkdir .tst 2>/dev/null
496
if test -d .tst; then
501
rmdir .tst 2>/dev/null
502
AC_SUBST([am__leading_dot])])
504
# Check to see how 'make' treats includes. -*- Autoconf -*-
506
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
508
# This file is free software; the Free Software Foundation
509
# gives unlimited permission to copy and/or distribute it,
510
# with or without modifications, as long as this notice is preserved.
516
# Check to see how make treats includes.
517
AC_DEFUN([AM_MAKE_INCLUDE],
518
[am_make=${MAKE-make}
519
cat > confinc << 'END'
524
# If we don't find an include directive, just comment out the code.
525
AC_MSG_CHECKING([for style of include used by $am_make])
529
# First try GNU make style include.
530
echo "include confinc" > confmf
531
# We grep out `Entering directory' and `Leaving directory'
532
# messages which can occur if `w' ends up in MAKEFLAGS.
533
# In particular we don't look at `^make:' because GNU make might
534
# be invoked under some other name (usually "gmake"), in which
535
# case it prints its new name instead of `make'.
536
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
541
# Now try BSD make style include.
542
if test "$am__include" = "#"; then
543
echo '.include "confinc"' > confmf
544
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
550
AC_SUBST([am__include])
551
AC_SUBST([am__quote])
552
AC_MSG_RESULT([$_am_result])
556
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
558
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
559
# Free Software Foundation, Inc.
561
# This file is free software; the Free Software Foundation
562
# gives unlimited permission to copy and/or distribute it,
563
# with or without modifications, as long as this notice is preserved.
567
# AM_MISSING_PROG(NAME, PROGRAM)
568
# ------------------------------
569
AC_DEFUN([AM_MISSING_PROG],
570
[AC_REQUIRE([AM_MISSING_HAS_RUN])
571
$1=${$1-"${am_missing_run}$2"}
577
# Define MISSING if not defined so far and test if it supports --run.
578
# If it does, set am_missing_run to use it, otherwise, to nothing.
579
AC_DEFUN([AM_MISSING_HAS_RUN],
580
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
581
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
582
# Use eval to expand $SHELL
583
if eval "$MISSING --run true"; then
584
am_missing_run="$MISSING --run "
587
AC_MSG_WARN([`missing' script is too old or missing])
591
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
593
# This file is free software; the Free Software Foundation
594
# gives unlimited permission to copy and/or distribute it,
595
# with or without modifications, as long as this notice is preserved.
599
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
601
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
602
# created by `make install' are always world readable, even if the
603
# installer happens to have an overly restrictive umask (e.g. 077).
604
# This was a mistake. There are at least two reasons why we must not
606
# - it causes special bits like SGID to be ignored,
607
# - it may be too restrictive (some setups expect 775 directories).
609
# Do not use -m 0755 and let people choose whatever they expect by
612
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
613
# Some implementations (such as Solaris 8's) are not thread-safe: if a
614
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
615
# concurrently, both version can detect that a/ is missing, but only
616
# one can create it and the other will error out. Consequently we
617
# restrict ourselves to GNU make (using the --version option ensures
619
AC_DEFUN([AM_PROG_MKDIR_P],
620
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
621
# We used to keeping the `.' as first argument, in order to
622
# allow $(mkdir_p) to be used without argument. As in
623
# $(mkdir_p) $(somedir)
624
# where $(somedir) is conditionally defined. However this is wrong
626
# 1. if the package is installed by a user who cannot write `.'
627
# make install will fail,
628
# 2. the above comment should most certainly read
629
# $(mkdir_p) $(DESTDIR)$(somedir)
630
# so it does not work when $(somedir) is undefined and
632
# To support the latter case, we have to write
633
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
634
# so the `.' trick is pointless.
635
mkdir_p='mkdir -p --'
637
# On NextStep and OpenStep, the `mkdir' command does not
638
# recognize any option. It will interpret all options as
639
# directories to create, and then abort because `.' already
641
for d in ./-p ./--version;
643
test -d $d && rmdir $d
645
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
646
if test -f "$ac_aux_dir/mkinstalldirs"; then
647
mkdir_p='$(mkinstalldirs)'
649
mkdir_p='$(install_sh) -d'
652
AC_SUBST([mkdir_p])])
654
# Helper functions for option handling. -*- Autoconf -*-
656
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
658
# This file is free software; the Free Software Foundation
659
# gives unlimited permission to copy and/or distribute it,
660
# with or without modifications, as long as this notice is preserved.
664
# _AM_MANGLE_OPTION(NAME)
665
# -----------------------
666
AC_DEFUN([_AM_MANGLE_OPTION],
667
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
669
# _AM_SET_OPTION(NAME)
670
# ------------------------------
671
# Set option NAME. Presently that only means defining a flag for this option.
672
AC_DEFUN([_AM_SET_OPTION],
673
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
675
# _AM_SET_OPTIONS(OPTIONS)
676
# ----------------------------------
677
# OPTIONS is a space-separated list of Automake options.
678
AC_DEFUN([_AM_SET_OPTIONS],
679
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
681
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
682
# -------------------------------------------
683
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
684
AC_DEFUN([_AM_IF_OPTION],
685
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
687
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
688
# Free Software Foundation, Inc.
690
# This file is free software; the Free Software Foundation
691
# gives unlimited permission to copy and/or distribute it,
692
# with or without modifications, as long as this notice is preserved.
694
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
695
# ---------------------------------------------------------------------------
696
# Adds support for distributing Python modules and packages. To
697
# install modules, copy them to $(pythondir), using the python_PYTHON
698
# automake variable. To install a package with the same name as the
699
# automake package, install to $(pkgpythondir), or use the
700
# pkgpython_PYTHON automake variable.
702
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
703
# locations to install python extension modules (shared libraries).
704
# Another macro is required to find the appropriate flags to compile
707
# If your package is configured with a different prefix to python,
708
# users will have to add the install directory to the PYTHONPATH
709
# environment variable, or create a .pth file (see the python
710
# documentation for details).
712
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
713
# cause an error if the version of python installed on the system
714
# doesn't meet the requirement. MINIMUM-VERSION should consist of
715
# numbers and dots only.
716
AC_DEFUN([AM_PATH_PYTHON],
718
dnl Find a Python interpreter. Python versions prior to 1.5 are not
719
dnl supported because the default installation locations changed from
720
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
722
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
723
[python python2 python2.5 python2.4 python2.3 python2.2 dnl
724
python2.1 python2.0 python1.6 python1.5])
727
dnl No version check is needed.
728
# Find any Python interpreter.
729
if test -z "$PYTHON"; then
730
AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
732
am_display_PYTHON=python
734
dnl A version check is needed.
735
if test -n "$PYTHON"; then
736
# If the user set $PYTHON, use it and don't search something else.
737
AC_MSG_CHECKING([whether $PYTHON version >= $1])
738
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
739
[AC_MSG_RESULT(yes)],
740
[AC_MSG_ERROR(too old)])
741
am_display_PYTHON=$PYTHON
743
# Otherwise, try each interpreter until we find one that satisfies
745
AC_CACHE_CHECK([for a Python interpreter with version >= $1],
746
[am_cv_pathless_PYTHON],[
747
for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
748
test "$am_cv_pathless_PYTHON" = none && break
749
AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
751
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
752
if test "$am_cv_pathless_PYTHON" = none; then
755
AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
757
am_display_PYTHON=$am_cv_pathless_PYTHON
761
if test "$PYTHON" = :; then
762
dnl Run any user-specified action, or abort.
763
m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
766
dnl Query Python for its version number. Getting [:3] seems to be
767
dnl the best way to do this; it's what "site.py" does in the standard
770
AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
771
[am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
772
AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
774
dnl Use the values of $prefix and $exec_prefix for the corresponding
775
dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
776
dnl distinct variables so they can be overridden if need be. However,
777
dnl general consensus is that you shouldn't need this ability.
779
AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
780
AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
782
dnl At times (like when building shared libraries) you may want
783
dnl to know which OS platform Python thinks this is.
785
AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
786
[am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
787
AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
790
dnl Set up 4 directories:
792
dnl pythondir -- where to install python scripts. This is the
793
dnl site-packages directory, not the python standard library
794
dnl directory like in previous automake betas. This behavior
795
dnl is more consistent with lispdir.m4 for example.
796
dnl Query distutils for this directory. distutils does not exist in
797
dnl Python 1.5, so we fall back to the hardcoded directory if it
799
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
800
[am_cv_python_pythondir],
801
[am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
802
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
803
AC_SUBST([pythondir], [$am_cv_python_pythondir])
805
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
806
dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
807
dnl more consistent with the rest of automake.
809
AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
811
dnl pyexecdir -- directory for installing python extension modules
812
dnl (shared libraries)
813
dnl Query distutils for this directory. distutils does not exist in
814
dnl Python 1.5, so we fall back to the hardcoded directory if it
816
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
817
[am_cv_python_pyexecdir],
818
[am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
819
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
820
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
822
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
824
AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
826
dnl Run any user-specified action.
833
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
834
# ---------------------------------------------------------------------------
835
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
836
# Run ACTION-IF-FALSE otherwise.
837
# This test uses sys.hexversion instead of the string equivalent (first
838
# word of sys.version), in order to cope with versions such as 2.2c1.
839
# hexversion has been introduced in Python 1.5.2; it's probably not
840
# worth to support older versions (1.5.1 was released on October 31, 1998).
841
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
842
[prog="import sys, string
843
# split strings by '.' and convert to numeric. Append some zeros
844
# because we need at least 4 digits for the hex conversion.
845
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
847
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
848
sys.exit(sys.hexversion < minverhex)"
849
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
851
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
853
# This file is free software; the Free Software Foundation
854
# gives unlimited permission to copy and/or distribute it,
855
# with or without modifications, as long as this notice is preserved.
857
# AM_RUN_LOG(COMMAND)
858
# -------------------
859
# Run COMMAND, save the exit status in ac_status, and log it.
860
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
861
AC_DEFUN([AM_RUN_LOG],
862
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
863
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
865
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
866
(exit $ac_status); }])
868
# Check to make sure that the build environment is sane. -*- Autoconf -*-
870
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
871
# Free Software Foundation, Inc.
873
# This file is free software; the Free Software Foundation
874
# gives unlimited permission to copy and/or distribute it,
875
# with or without modifications, as long as this notice is preserved.
881
AC_DEFUN([AM_SANITY_CHECK],
882
[AC_MSG_CHECKING([whether build environment is sane])
885
echo timestamp > conftest.file
886
# Do `set' in a subshell so we don't clobber the current shell's
887
# arguments. Must try -L first in case configure is actually a
888
# symlink; some systems play weird games with the mod time of symlinks
889
# (eg FreeBSD returns the mod time of the symlink's containing
892
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
893
if test "$[*]" = "X"; then
895
set X `ls -t $srcdir/configure conftest.file`
898
if test "$[*]" != "X $srcdir/configure conftest.file" \
899
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
901
# If neither matched, then we have a broken ls. This can happen
902
# if, for instance, CONFIG_SHELL is bash and it inherits a
903
# broken ls alias from the environment. This has actually
904
# happened. Such a system could not be considered "sane".
905
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
906
alias in your environment])
909
test "$[2]" = conftest.file
915
AC_MSG_ERROR([newly created file is older than distributed files!
916
Check your system clock])
920
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
922
# This file is free software; the Free Software Foundation
923
# gives unlimited permission to copy and/or distribute it,
924
# with or without modifications, as long as this notice is preserved.
926
# AM_PROG_INSTALL_STRIP
927
# ---------------------
928
# One issue with vendor `install' (even GNU) is that you can't
929
# specify the program used to strip binaries. This is especially
930
# annoying in cross-compiling environments, where the build's strip
931
# is unlikely to handle the host's binaries.
932
# Fortunately install-sh will honor a STRIPPROG variable, so we
933
# always use install-sh in `make install-strip', and initialize
934
# STRIPPROG with the value of the STRIP variable (set by the user).
935
AC_DEFUN([AM_PROG_INSTALL_STRIP],
936
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
937
# Installed binaries are usually stripped using `strip' when the user
938
# run `make install-strip'. However `strip' might not be the right
939
# tool to use in cross-compilation environments, therefore Automake
940
# will honor the `STRIP' environment variable to overrule this program.
941
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
942
if test "$cross_compiling" != no; then
943
AC_CHECK_TOOL([STRIP], [strip], :)
945
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
946
AC_SUBST([INSTALL_STRIP_PROGRAM])])
948
# Check how to create a tarball. -*- Autoconf -*-
950
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
952
# This file is free software; the Free Software Foundation
953
# gives unlimited permission to copy and/or distribute it,
954
# with or without modifications, as long as this notice is preserved.
958
# _AM_PROG_TAR(FORMAT)
959
# --------------------
960
# Check how to create a tarball in format FORMAT.
961
# FORMAT should be one of `v7', `ustar', or `pax'.
963
# Substitute a variable $(am__tar) that is a command
964
# writing to stdout a FORMAT-tarball containing the directory
966
# tardir=directory && $(am__tar) > result.tar
968
# Substitute a variable $(am__untar) that extract such
969
# a tarball read from stdin.
970
# $(am__untar) < result.tar
971
AC_DEFUN([_AM_PROG_TAR],
972
[# Always define AMTAR for backward compatibility.
973
AM_MISSING_PROG([AMTAR], [tar])
975
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
976
[m4_case([$1], [ustar],, [pax],,
977
[m4_fatal([Unknown tar format])])
978
AC_MSG_CHECKING([how to create a $1 tar archive])
979
# Loop over all known methods to create a tar archive until one works.
980
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
981
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
982
# Do not fold the above two line into one, because Tru64 sh and
983
# Solaris sh will not grok spaces in the rhs of `-'.
984
for _am_tool in $_am_tools
988
for _am_tar in tar gnutar gtar;
990
AM_RUN_LOG([$_am_tar --version]) && break
992
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
993
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
994
am__untar="$_am_tar -xf -"
997
# Must skip GNU tar: if it does not support --format= it doesn't create
998
# ustar tarball either.
999
(tar --version) >/dev/null 2>&1 && continue
1000
am__tar='tar chf - "$$tardir"'
1001
am__tar_='tar chf - "$tardir"'
1002
am__untar='tar xf -'
1005
am__tar='pax -L -x $1 -w "$$tardir"'
1006
am__tar_='pax -L -x $1 -w "$tardir"'
1010
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1011
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1012
am__untar='cpio -i -H $1 -d'
1021
# If the value was cached, stop now. We just wanted to have am__tar
1022
# and am__untar set.
1023
test -n "${am_cv_prog_tar_$1}" && break
1025
# tar/untar a dummy directory, and stop if the command works
1028
echo GrepMe > conftest.dir/file
1029
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1031
if test -s conftest.tar; then
1032
AM_RUN_LOG([$am__untar <conftest.tar])
1033
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1038
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1039
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1041
AC_SUBST([am__untar])
1044
# Configure paths for GLIB
1045
# Owen Taylor 1997-2001
1047
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
1048
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or
1049
dnl gthread is specified in MODULES, pass to pkg-config
1051
AC_DEFUN([AM_PATH_GLIB_2_0],
1053
dnl Get the cflags and libraries from pkg-config
1055
AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
1056
, enable_glibtest=yes)
1058
pkg_config_args=glib-2.0
1063
pkg_config_args="$pkg_config_args gmodule-2.0"
1066
pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
1069
pkg_config_args="$pkg_config_args gobject-2.0"
1072
pkg_config_args="$pkg_config_args gthread-2.0"
1077
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1081
if test x$PKG_CONFIG != xno ; then
1082
if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
1085
echo *** pkg-config too old; version 0.7 or better required.
1093
min_glib_version=ifelse([$1], ,2.0.0,$1)
1094
AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
1096
if test x$PKG_CONFIG != xno ; then
1097
## don't try to run the test against uninstalled libtool libs
1098
if $PKG_CONFIG --uninstalled $pkg_config_args; then
1099
echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
1103
if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
1110
if test x"$no_glib" = x ; then
1111
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
1112
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
1113
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
1115
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
1116
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
1117
glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
1118
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
1119
glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
1120
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
1121
glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
1122
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
1123
if test "x$enable_glibtest" = "xyes" ; then
1124
ac_save_CFLAGS="$CFLAGS"
1125
ac_save_LIBS="$LIBS"
1126
CFLAGS="$CFLAGS $GLIB_CFLAGS"
1127
LIBS="$GLIB_LIBS $LIBS"
1129
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
1130
dnl checks the results of pkg-config to some extent)
1141
int major, minor, micro;
1144
system ("touch conf.glibtest");
1146
/* HP/UX 9 (%@#!) writes to sscanf strings */
1147
tmp_version = g_strdup("$min_glib_version");
1148
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1149
printf("%s, bad version string\n", "$min_glib_version");
1153
if ((glib_major_version != $glib_config_major_version) ||
1154
(glib_minor_version != $glib_config_minor_version) ||
1155
(glib_micro_version != $glib_config_micro_version))
1157
printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
1158
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1159
glib_major_version, glib_minor_version, glib_micro_version);
1160
printf ("*** was found! If pkg-config was correct, then it is best\n");
1161
printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
1162
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1163
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1164
printf("*** required on your system.\n");
1165
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
1166
printf("*** to point to the correct configuration files\n");
1168
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1169
(glib_minor_version != GLIB_MINOR_VERSION) ||
1170
(glib_micro_version != GLIB_MICRO_VERSION))
1172
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1173
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1174
printf("*** library (version %d.%d.%d)\n",
1175
glib_major_version, glib_minor_version, glib_micro_version);
1179
if ((glib_major_version > major) ||
1180
((glib_major_version == major) && (glib_minor_version > minor)) ||
1181
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1187
printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1188
glib_major_version, glib_minor_version, glib_micro_version);
1189
printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1190
major, minor, micro);
1191
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1193
printf("*** If you have already installed a sufficiently new version, this error\n");
1194
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
1195
printf("*** being found. The easiest way to fix this is to remove the old version\n");
1196
printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
1197
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
1198
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1199
printf("*** so that the correct libraries are found at run-time))\n");
1204
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
1205
CFLAGS="$ac_save_CFLAGS"
1206
LIBS="$ac_save_LIBS"
1209
if test "x$no_glib" = x ; then
1210
AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
1211
ifelse([$2], , :, [$2])
1214
if test "$PKG_CONFIG" = "no" ; then
1215
echo "*** A new enough version of pkg-config was not found."
1216
echo "*** See http://www.freedesktop.org/software/pkgconfig/"
1218
if test -f conf.glibtest ; then
1221
echo "*** Could not run GLIB test program, checking why..."
1222
ac_save_CFLAGS="$CFLAGS"
1223
ac_save_LIBS="$LIBS"
1224
CFLAGS="$CFLAGS $GLIB_CFLAGS"
1225
LIBS="$LIBS $GLIB_LIBS"
1229
], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
1230
[ echo "*** The test program compiled, but did not run. This usually means"
1231
echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1232
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1233
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1234
echo "*** to the installed location Also, make sure you have run ldconfig if that"
1235
echo "*** is required on your system"
1237
echo "*** If you have an old version installed, it is best to remove it, although"
1238
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
1239
[ echo "*** The test program failed to compile or link. See the file config.log for the"
1240
echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
1241
CFLAGS="$ac_save_CFLAGS"
1242
LIBS="$ac_save_LIBS"
1250
ifelse([$3], , :, [$3])
1252
AC_SUBST(GLIB_CFLAGS)
1254
AC_SUBST(GLIB_GENMARSHAL)
1255
AC_SUBST(GOBJECT_QUERY)
1256
AC_SUBST(GLIB_MKENUMS)
1263
dnl GNOME_COMMON_INIT
1265
AC_DEFUN([GNOME_COMMON_INIT],
1267
dnl this macro should come after AC_CONFIG_MACRO_DIR
1268
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
1270
dnl ensure that when the Automake generated makefile calls aclocal,
1271
dnl it honours the $ACLOCAL_FLAGS environment variable
1272
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
1273
if test -n "$ac_macro_dir"; then
1274
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
1277
AC_SUBST([ACLOCAL_AMFLAGS])
1280
AC_DEFUN([GNOME_DEBUG_CHECK],
1282
AC_ARG_ENABLE([debug],
1283
AC_HELP_STRING([--enable-debug],
1284
[turn on debugging]),,
1287
if test x$enable_debug = xyes ; then
1288
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
1289
[Enable additional debugging at the expense of performance and size])
1293
dnl GNOME_MAINTAINER_MODE_DEFINES ()
1294
dnl define DISABLE_DEPRECATED
1296
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
1298
AC_REQUIRE([AM_MAINTAINER_MODE])
1300
if test $USE_MAINTAINER_MODE = yes; then
1301
DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED"
1303
DISABLE_DEPRECATED=""
1305
AC_SUBST(DISABLE_DEPRECATED)
1308
# Configure paths for GTK+
1309
# Owen Taylor 1997-2001
1311
dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
1312
dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
1313
dnl pass to pkg-config
1315
AC_DEFUN([AM_PATH_GTK_2_0],
1317
dnl Get the cflags and libraries from pkg-config
1319
AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
1320
, enable_gtktest=yes)
1322
pkg_config_args=gtk+-2.0
1327
pkg_config_args="$pkg_config_args gthread-2.0"
1334
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1336
if test x$PKG_CONFIG != xno ; then
1337
if pkg-config --atleast-pkgconfig-version 0.7 ; then
1340
echo "*** pkg-config too old; version 0.7 or better required."
1348
min_gtk_version=ifelse([$1], ,2.0.0,$1)
1349
AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
1351
if test x$PKG_CONFIG != xno ; then
1352
## don't try to run the test against uninstalled libtool libs
1353
if $PKG_CONFIG --uninstalled $pkg_config_args; then
1354
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
1358
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
1365
if test x"$no_gtk" = x ; then
1366
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
1367
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
1368
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1369
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
1370
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1371
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
1372
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1373
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
1374
if test "x$enable_gtktest" = "xyes" ; then
1375
ac_save_CFLAGS="$CFLAGS"
1376
ac_save_LIBS="$LIBS"
1377
CFLAGS="$CFLAGS $GTK_CFLAGS"
1378
LIBS="$GTK_LIBS $LIBS"
1380
dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
1381
dnl checks the results of pkg-config to some extent)
1385
#include <gtk/gtk.h>
1392
int major, minor, micro;
1395
system ("touch conf.gtktest");
1397
/* HP/UX 9 (%@#!) writes to sscanf strings */
1398
tmp_version = g_strdup("$min_gtk_version");
1399
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1400
printf("%s, bad version string\n", "$min_gtk_version");
1404
if ((gtk_major_version != $gtk_config_major_version) ||
1405
(gtk_minor_version != $gtk_config_minor_version) ||
1406
(gtk_micro_version != $gtk_config_micro_version))
1408
printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1409
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1410
gtk_major_version, gtk_minor_version, gtk_micro_version);
1411
printf ("*** was found! If pkg-config was correct, then it is best\n");
1412
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1413
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1414
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1415
printf("*** required on your system.\n");
1416
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
1417
printf("*** to point to the correct configuration files\n");
1419
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1420
(gtk_minor_version != GTK_MINOR_VERSION) ||
1421
(gtk_micro_version != GTK_MICRO_VERSION))
1423
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1424
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1425
printf("*** library (version %d.%d.%d)\n",
1426
gtk_major_version, gtk_minor_version, gtk_micro_version);
1430
if ((gtk_major_version > major) ||
1431
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1432
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1438
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1439
gtk_major_version, gtk_minor_version, gtk_micro_version);
1440
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1441
major, minor, micro);
1442
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1444
printf("*** If you have already installed a sufficiently new version, this error\n");
1445
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
1446
printf("*** being found. The easiest way to fix this is to remove the old version\n");
1447
printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
1448
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
1449
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1450
printf("*** so that the correct libraries are found at run-time))\n");
1455
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
1456
CFLAGS="$ac_save_CFLAGS"
1457
LIBS="$ac_save_LIBS"
1460
if test "x$no_gtk" = x ; then
1461
AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
1462
ifelse([$2], , :, [$2])
1465
if test "$PKG_CONFIG" = "no" ; then
1466
echo "*** A new enough version of pkg-config was not found."
1467
echo "*** See http://pkgconfig.sourceforge.net"
1469
if test -f conf.gtktest ; then
1472
echo "*** Could not run GTK+ test program, checking why..."
1473
ac_save_CFLAGS="$CFLAGS"
1474
ac_save_LIBS="$LIBS"
1475
CFLAGS="$CFLAGS $GTK_CFLAGS"
1476
LIBS="$LIBS $GTK_LIBS"
1478
#include <gtk/gtk.h>
1480
], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
1481
[ echo "*** The test program compiled, but did not run. This usually means"
1482
echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
1483
echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
1484
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1485
echo "*** to the installed location Also, make sure you have run ldconfig if that"
1486
echo "*** is required on your system"
1488
echo "*** If you have an old version installed, it is best to remove it, although"
1489
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
1490
[ echo "*** The test program failed to compile or link. See the file config.log for the"
1491
echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
1492
CFLAGS="$ac_save_CFLAGS"
1493
LIBS="$ac_save_LIBS"
1498
ifelse([$3], , :, [$3])
1500
AC_SUBST(GTK_CFLAGS)
1505
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1507
# serial 47 AC_PROG_LIBTOOL
1510
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1511
# -----------------------------------------------------------
1512
# If this macro is not defined by Autoconf, define it here.
1513
m4_ifdef([AC_PROVIDE_IFELSE],
1515
[m4_define([AC_PROVIDE_IFELSE],
1516
[m4_ifdef([AC_PROVIDE_$1],
1522
AC_DEFUN([AC_PROG_LIBTOOL],
1523
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1524
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1525
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1526
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1528
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1530
dnl And a similar setup for Fortran 77 support
1531
AC_PROVIDE_IFELSE([AC_PROG_F77],
1533
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1536
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1537
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1538
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1539
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1541
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1543
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1545
[ifdef([AC_PROG_GCJ],
1546
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1547
ifdef([A][M_PROG_GCJ],
1548
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1549
ifdef([LT_AC_PROG_GCJ],
1550
[define([LT_AC_PROG_GCJ],
1551
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1552
])])# AC_PROG_LIBTOOL
1557
AC_DEFUN([_AC_PROG_LIBTOOL],
1558
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1559
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1560
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1561
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1563
# This can be used to rebuild libtool when needed
1564
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1566
# Always use our own libtool.
1567
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1568
AC_SUBST(LIBTOOL)dnl
1570
# Prevent multiple expansion
1571
define([AC_PROG_LIBTOOL], [])
1572
])# _AC_PROG_LIBTOOL
1577
AC_DEFUN([AC_LIBTOOL_SETUP],
1579
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1580
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1581
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1582
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1583
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1584
AC_REQUIRE([AC_PROG_CC])dnl
1585
AC_REQUIRE([AC_PROG_LD])dnl
1586
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1587
AC_REQUIRE([AC_PROG_NM])dnl
1589
AC_REQUIRE([AC_PROG_LN_S])dnl
1590
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1591
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1592
AC_REQUIRE([AC_OBJEXT])dnl
1593
AC_REQUIRE([AC_EXEEXT])dnl
1596
AC_LIBTOOL_SYS_MAX_CMD_LEN
1597
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1600
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1601
_LT_AC_PROG_ECHO_BACKSLASH
1605
# AIX sometimes has problems with the GCC collect2 program. For some
1606
# reason, if we set the COLLECT_NAMES environment variable, the problems
1607
# vanish in a puff of smoke.
1608
if test "X${COLLECT_NAMES+set}" != Xset; then
1610
export COLLECT_NAMES
1615
# Sed substitution that helps us do robust quoting. It backslashifies
1616
# metacharacters that are still active within double-quoted strings.
1617
Xsed='sed -e 1s/^X//'
1618
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1620
# Same as above, but do not quote variable references.
1621
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1623
# Sed substitution to delay expansion of an escaped shell variable in a
1624
# double_quote_subst'ed string.
1625
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1627
# Sed substitution to avoid accidental globbing in evaled expressions
1628
no_glob_subst='s/\*/\\\*/g'
1634
default_ofile=libtool
1635
can_build_shared=yes
1637
# All known linkers require a `.a' archive for static linking (except M$VC,
1638
# which needs '.lib').
1640
ltmain="$ac_aux_dir/ltmain.sh"
1641
ofile="$default_ofile"
1642
with_gnu_ld="$lt_cv_prog_gnu_ld"
1644
AC_CHECK_TOOL(AR, ar, false)
1645
AC_CHECK_TOOL(RANLIB, ranlib, :)
1646
AC_CHECK_TOOL(STRIP, strip, :)
1649
old_CFLAGS="$CFLAGS"
1651
# Set sane defaults for various variables
1652
test -z "$AR" && AR=ar
1653
test -z "$AR_FLAGS" && AR_FLAGS=cru
1654
test -z "$AS" && AS=as
1655
test -z "$CC" && CC=cc
1656
test -z "$LTCC" && LTCC=$CC
1657
test -z "$DLLTOOL" && DLLTOOL=dlltool
1658
test -z "$LD" && LD=ld
1659
test -z "$LN_S" && LN_S="ln -s"
1660
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1661
test -z "$NM" && NM=nm
1662
test -z "$SED" && SED=sed
1663
test -z "$OBJDUMP" && OBJDUMP=objdump
1664
test -z "$RANLIB" && RANLIB=:
1665
test -z "$STRIP" && STRIP=:
1666
test -z "$ac_objext" && ac_objext=o
1668
# Determine commands to create old-style static archives.
1669
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1670
old_postinstall_cmds='chmod 644 $oldlib'
1671
old_postuninstall_cmds=
1673
if test -n "$RANLIB"; then
1676
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1679
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1682
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1685
_LT_CC_BASENAME([$compiler])
1687
# Only perform the check for file, if the check method requires it
1688
case $deplibs_check_method in
1690
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1696
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1697
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1698
enable_win32_dll=yes, enable_win32_dll=no)
1700
AC_ARG_ENABLE([libtool-lock],
1701
[AC_HELP_STRING([--disable-libtool-lock],
1702
[avoid locking (might break parallel builds)])])
1703
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1706
[AC_HELP_STRING([--with-pic],
1707
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1708
[pic_mode="$withval"],
1710
test -z "$pic_mode" && pic_mode=default
1712
# Use C for the default configuration in the libtool script
1714
AC_LIBTOOL_LANG_C_CONFIG
1716
])# AC_LIBTOOL_SETUP
1719
# _LT_AC_SYS_COMPILER
1720
# -------------------
1721
AC_DEFUN([_LT_AC_SYS_COMPILER],
1722
[AC_REQUIRE([AC_PROG_CC])dnl
1724
# If no C compiler was specified, use CC.
1727
# Allow CC to be a program name with arguments.
1729
])# _LT_AC_SYS_COMPILER
1732
# _LT_CC_BASENAME(CC)
1733
# -------------------
1734
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1735
AC_DEFUN([_LT_CC_BASENAME],
1736
[for cc_temp in $1""; do
1738
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1739
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1744
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1748
# _LT_COMPILER_BOILERPLATE
1749
# ------------------------
1750
# Check for compiler boilerplate output or warnings with
1751
# the simple compiler test code.
1752
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1753
[ac_outfile=conftest.$ac_objext
1754
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1755
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1756
_lt_compiler_boilerplate=`cat conftest.err`
1758
])# _LT_COMPILER_BOILERPLATE
1761
# _LT_LINKER_BOILERPLATE
1762
# ----------------------
1763
# Check for linker boilerplate output or warnings with
1764
# the simple link test code.
1765
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1766
[ac_outfile=conftest.$ac_objext
1767
printf "$lt_simple_link_test_code" >conftest.$ac_ext
1768
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1769
_lt_linker_boilerplate=`cat conftest.err`
1771
])# _LT_LINKER_BOILERPLATE
1774
# _LT_AC_SYS_LIBPATH_AIX
1775
# ----------------------
1776
# Links a minimal program and checks the executable
1777
# for the system default hardcoded library path. In most cases,
1778
# this is /usr/lib:/lib, but when the MPI compilers are used
1779
# the location of the communication and MPI libs are included too.
1780
# If we don't find anything, use the default library path according
1781
# to the aix ld manual.
1782
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1783
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1784
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1786
# Check for a 64-bit object if we didn't find anything.
1787
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; }
1789
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1790
])# _LT_AC_SYS_LIBPATH_AIX
1793
# _LT_AC_SHELL_INIT(ARG)
1794
# ----------------------
1795
AC_DEFUN([_LT_AC_SHELL_INIT],
1796
[ifdef([AC_DIVERSION_NOTICE],
1797
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1798
[AC_DIVERT_PUSH(NOTICE)])
1801
])# _LT_AC_SHELL_INIT
1804
# _LT_AC_PROG_ECHO_BACKSLASH
1805
# --------------------------
1806
# Add some code to the start of the generated configure script which
1807
# will find an echo command which doesn't interpret backslashes.
1808
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1809
[_LT_AC_SHELL_INIT([
1810
# Check that we are running under the correct shell.
1811
SHELL=${CONFIG_SHELL-/bin/sh}
1815
# Remove one level of quotation (which was required for Make).
1816
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1821
if test "X[$]1" = X--no-reexec; then
1822
# Discard the --no-reexec flag, and continue.
1824
elif test "X[$]1" = X--fallback-echo; then
1825
# Avoid inline document here, it may be left over
1827
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1828
# Yippee, $echo works!
1831
# Restart under the correct shell.
1832
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1835
if test "X[$]1" = X--fallback-echo; then
1836
# used as fallback echo
1844
# The HP-UX ksh and POSIX shell print the target directory to stdout
1846
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1848
if test -z "$ECHO"; then
1849
if test "X${echo_test_string+set}" != Xset; then
1850
# find a string as large as possible, as long as the shell can cope with it
1851
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1852
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1853
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1854
echo_test_string="`eval $cmd`" &&
1855
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1862
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1863
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1864
test "X$echo_testing_string" = "X$echo_test_string"; then
1867
# The Solaris, AIX, and Digital Unix default echo programs unquote
1868
# backslashes. This makes it impossible to quote backslashes using
1869
# echo "$something" | sed 's/\\/\\\\/g'
1871
# So, first we look for a working echo in the user's PATH.
1873
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1874
for dir in $PATH /usr/ucb; do
1876
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1877
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1878
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1879
test "X$echo_testing_string" = "X$echo_test_string"; then
1886
if test "X$echo" = Xecho; then
1887
# We didn't find a better echo, so look for alternatives.
1888
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1889
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1890
test "X$echo_testing_string" = "X$echo_test_string"; then
1891
# This shell has a builtin print -r that does the trick.
1893
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1894
test "X$CONFIG_SHELL" != X/bin/ksh; then
1895
# If we have ksh, try running configure again with it.
1896
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1897
export ORIGINAL_CONFIG_SHELL
1898
CONFIG_SHELL=/bin/ksh
1900
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1904
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1905
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1906
test "X$echo_testing_string" = "X$echo_test_string"; then
1907
# Cool, printf works
1909
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1910
test "X$echo_testing_string" = 'X\t' &&
1911
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1912
test "X$echo_testing_string" = "X$echo_test_string"; then
1913
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1915
SHELL="$CONFIG_SHELL"
1917
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1918
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1919
test "X$echo_testing_string" = 'X\t' &&
1920
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1921
test "X$echo_testing_string" = "X$echo_test_string"; then
1922
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1924
# maybe with a smaller string...
1927
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1928
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1935
if test "$prev" != 'sed 50q "[$]0"'; then
1936
echo_test_string=`eval $prev`
1937
export echo_test_string
1938
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1940
# Oops. We lost completely, so just stick with echo.
1949
# Copy echo and quote the copy suitably for passing to libtool from
1950
# the Makefile, instead of quoting the original, which is used later.
1952
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1953
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1957
])])# _LT_AC_PROG_ECHO_BACKSLASH
1962
AC_DEFUN([_LT_AC_LOCK],
1963
[AC_ARG_ENABLE([libtool-lock],
1964
[AC_HELP_STRING([--disable-libtool-lock],
1965
[avoid locking (might break parallel builds)])])
1966
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1968
# Some flags need to be propagated to the compiler or linker for good
1972
# Find out which ABI we are using.
1973
echo 'int i;' > conftest.$ac_ext
1974
if AC_TRY_EVAL(ac_compile); then
1975
case `/usr/bin/file conftest.$ac_objext` in
1987
# Find out which ABI we are using.
1988
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1989
if AC_TRY_EVAL(ac_compile); then
1990
if test "$lt_cv_prog_gnu_ld" = yes; then
1991
case `/usr/bin/file conftest.$ac_objext` in
1993
LD="${LD-ld} -melf32bsmip"
1996
LD="${LD-ld} -melf32bmipn32"
1999
LD="${LD-ld} -melf64bmip"
2003
case `/usr/bin/file conftest.$ac_objext` in
2019
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2020
# Find out which ABI we are using.
2021
echo 'int i;' > conftest.$ac_ext
2022
if AC_TRY_EVAL(ac_compile); then
2023
case "`/usr/bin/file conftest.o`" in
2027
LD="${LD-ld} -m elf_i386"
2029
ppc64-*linux*|powerpc64-*linux*)
2030
LD="${LD-ld} -m elf32ppclinux"
2033
LD="${LD-ld} -m elf_s390"
2036
LD="${LD-ld} -m elf32_sparc"
2043
LD="${LD-ld} -m elf_x86_64"
2045
ppc*-*linux*|powerpc*-*linux*)
2046
LD="${LD-ld} -m elf64ppc"
2049
LD="${LD-ld} -m elf64_s390"
2052
LD="${LD-ld} -m elf64_sparc"
2062
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2063
SAVE_CFLAGS="$CFLAGS"
2064
CFLAGS="$CFLAGS -belf"
2065
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2067
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2069
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2070
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2071
CFLAGS="$SAVE_CFLAGS"
2074
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2075
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2076
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2077
AC_CHECK_TOOL(AS, as, false)
2078
AC_CHECK_TOOL(OBJDUMP, objdump, false)
2083
need_locks="$enable_libtool_lock"
2088
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2089
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2090
# ----------------------------------------------------------------
2091
# Check whether the given compiler option works
2092
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2093
[AC_REQUIRE([LT_AC_PROG_SED])
2094
AC_CACHE_CHECK([$1], [$2],
2096
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2097
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2098
lt_compiler_flag="$3"
2099
# Insert the option either (1) after the last *FLAGS variable, or
2100
# (2) before a word containing "conftest.", or (3) at the end.
2101
# Note that $ac_compile itself does not contain backslashes and begins
2102
# with a dollar sign (not a hyphen), so the echo should work correctly.
2103
# The option is referenced via a variable to avoid confusing sed.
2104
lt_compile=`echo "$ac_compile" | $SED \
2105
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2106
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2107
-e 's:$: $lt_compiler_flag:'`
2108
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2109
(eval "$lt_compile" 2>conftest.err)
2111
cat conftest.err >&AS_MESSAGE_LOG_FD
2112
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2113
if (exit $ac_status) && test -s "$ac_outfile"; then
2114
# The compiler can only warn and ignore the option if not recognized
2115
# So say no if there are warnings other than the usual output.
2116
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
2117
$SED '/^$/d' conftest.err >conftest.er2
2118
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
2125
if test x"[$]$2" = xyes; then
2126
ifelse([$5], , :, [$5])
2128
ifelse([$6], , :, [$6])
2130
])# AC_LIBTOOL_COMPILER_OPTION
2133
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2134
# [ACTION-SUCCESS], [ACTION-FAILURE])
2135
# ------------------------------------------------------------
2136
# Check whether the given compiler option works
2137
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2138
[AC_CACHE_CHECK([$1], [$2],
2140
save_LDFLAGS="$LDFLAGS"
2141
LDFLAGS="$LDFLAGS $3"
2142
printf "$lt_simple_link_test_code" > conftest.$ac_ext
2143
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2144
# The compiler can only warn and ignore the option if not recognized
2145
# So say no if there are warnings
2146
if test -s conftest.err; then
2147
# Append any errors to the config.log.
2148
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2149
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
2150
$SED '/^$/d' conftest.err >conftest.er2
2151
if diff conftest.exp conftest.er2 >/dev/null; then
2159
LDFLAGS="$save_LDFLAGS"
2162
if test x"[$]$2" = xyes; then
2163
ifelse([$4], , :, [$4])
2165
ifelse([$5], , :, [$5])
2167
])# AC_LIBTOOL_LINKER_OPTION
2170
# AC_LIBTOOL_SYS_MAX_CMD_LEN
2171
# --------------------------
2172
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2173
[# find the maximum length of command line arguments
2174
AC_MSG_CHECKING([the maximum length of command line arguments])
2175
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2181
# On DJGPP, this test can blow up pretty badly due to problems in libc
2182
# (any single argument exceeding 2000 bytes causes a buffer overrun
2183
# during glob expansion). Even if it were fixed, the result of this
2184
# check would be larger than it should be.
2185
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2189
# Under GNU Hurd, this test is not required because there is
2190
# no limit to the length of command line arguments.
2191
# Libtool will interpret -1 as no limit whatsoever
2192
lt_cv_sys_max_cmd_len=-1;
2196
# On Win9x/ME, this test blows up -- it succeeds, but takes
2197
# about 5 minutes as the teststring grows exponentially.
2198
# Worse, since 9x/ME are not pre-emptively multitasking,
2199
# you end up with a "frozen" computer, even though with patience
2200
# the test eventually succeeds (with a max line length of 256k).
2201
# Instead, let's just punt: use the minimum linelength reported by
2202
# all of the supported platforms: 8192 (on NT/2K/XP).
2203
lt_cv_sys_max_cmd_len=8192;
2207
# On AmigaOS with pdksh, this test takes hours, literally.
2208
# So we just punt and use a minimum line length of 8192.
2209
lt_cv_sys_max_cmd_len=8192;
2212
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2213
# This has been around since 386BSD, at least. Likely further.
2214
if test -x /sbin/sysctl; then
2215
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2216
elif test -x /usr/sbin/sysctl; then
2217
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2219
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
2221
# And add a safety zone
2222
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2223
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2226
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2227
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2228
# nice to cause kernel panics so lets avoid the loop below.
2229
# First set a reasonable default.
2230
lt_cv_sys_max_cmd_len=16384
2232
if test -x /sbin/sysconfig; then
2233
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2234
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2239
# If test is not a shell built-in, we'll probably end up computing a
2240
# maximum length that is only half of the actual maximum length, but
2242
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2243
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2244
= "XX$teststring") >/dev/null 2>&1 &&
2245
new_result=`expr "X$teststring" : ".*" 2>&1` &&
2246
lt_cv_sys_max_cmd_len=$new_result &&
2247
test $i != 17 # 1/2 MB should be enough
2250
teststring=$teststring$teststring
2253
# Add a significant safety factor because C++ compilers can tack on massive
2254
# amounts of additional arguments before passing them to the linker.
2255
# It appears as though 1/2 is a usable value.
2256
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2260
if test -n $lt_cv_sys_max_cmd_len ; then
2261
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2265
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2268
# _LT_AC_CHECK_DLFCN
2269
# --------------------
2270
AC_DEFUN([_LT_AC_CHECK_DLFCN],
2271
[AC_CHECK_HEADERS(dlfcn.h)dnl
2272
])# _LT_AC_CHECK_DLFCN
2275
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2276
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2277
# ------------------------------------------------------------------
2278
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2279
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2280
if test "$cross_compiling" = yes; then :
2283
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2284
lt_status=$lt_dlunknown
2285
cat > conftest.$ac_ext <<EOF
2286
[#line __oline__ "configure"
2287
#include "confdefs.h"
2296
# define LT_DLGLOBAL RTLD_GLOBAL
2299
# define LT_DLGLOBAL DL_GLOBAL
2301
# define LT_DLGLOBAL 0
2305
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2306
find out it does not work in some platform. */
2307
#ifndef LT_DLLAZY_OR_NOW
2309
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2312
# define LT_DLLAZY_OR_NOW DL_LAZY
2315
# define LT_DLLAZY_OR_NOW RTLD_NOW
2318
# define LT_DLLAZY_OR_NOW DL_NOW
2320
# define LT_DLLAZY_OR_NOW 0
2328
extern "C" void exit (int);
2331
void fnord() { int i=42;}
2334
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2335
int status = $lt_dlunknown;
2339
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2340
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2341
/* dlclose (self); */
2347
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2348
(./conftest; exit; ) 2>/dev/null
2351
x$lt_dlno_uscore) $1 ;;
2352
x$lt_dlneed_uscore) $2 ;;
2353
x$lt_unknown|x*) $3 ;;
2356
# compilation failed
2361
])# _LT_AC_TRY_DLOPEN_SELF
2364
# AC_LIBTOOL_DLOPEN_SELF
2365
# -------------------
2366
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2367
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2368
if test "x$enable_dlopen" != xyes; then
2369
enable_dlopen=unknown
2370
enable_dlopen_self=unknown
2371
enable_dlopen_self_static=unknown
2378
lt_cv_dlopen="load_add_on"
2380
lt_cv_dlopen_self=yes
2384
lt_cv_dlopen="LoadLibrary"
2389
lt_cv_dlopen="dlopen"
2394
# if libdl is installed we need to link against it
2395
AC_CHECK_LIB([dl], [dlopen],
2396
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2399
lt_cv_dlopen_self=yes
2404
AC_CHECK_FUNC([shl_load],
2405
[lt_cv_dlopen="shl_load"],
2406
[AC_CHECK_LIB([dld], [shl_load],
2407
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2408
[AC_CHECK_FUNC([dlopen],
2409
[lt_cv_dlopen="dlopen"],
2410
[AC_CHECK_LIB([dl], [dlopen],
2411
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2412
[AC_CHECK_LIB([svld], [dlopen],
2413
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2414
[AC_CHECK_LIB([dld], [dld_link],
2415
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2424
if test "x$lt_cv_dlopen" != xno; then
2430
case $lt_cv_dlopen in
2432
save_CPPFLAGS="$CPPFLAGS"
2433
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2435
save_LDFLAGS="$LDFLAGS"
2436
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2439
LIBS="$lt_cv_dlopen_libs $LIBS"
2441
AC_CACHE_CHECK([whether a program can dlopen itself],
2442
lt_cv_dlopen_self, [dnl
2443
_LT_AC_TRY_DLOPEN_SELF(
2444
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2445
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2448
if test "x$lt_cv_dlopen_self" = xyes; then
2449
LDFLAGS="$LDFLAGS $link_static_flag"
2450
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2451
lt_cv_dlopen_self_static, [dnl
2452
_LT_AC_TRY_DLOPEN_SELF(
2453
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2454
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2458
CPPFLAGS="$save_CPPFLAGS"
2459
LDFLAGS="$save_LDFLAGS"
2464
case $lt_cv_dlopen_self in
2465
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2466
*) enable_dlopen_self=unknown ;;
2469
case $lt_cv_dlopen_self_static in
2470
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2471
*) enable_dlopen_self_static=unknown ;;
2474
])# AC_LIBTOOL_DLOPEN_SELF
2477
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2478
# ---------------------------------
2479
# Check to see if options -c and -o are simultaneously supported by compiler
2480
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2481
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2482
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2483
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2484
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2485
$rm -r conftest 2>/dev/null
2489
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2491
lt_compiler_flag="-o out/conftest2.$ac_objext"
2492
# Insert the option either (1) after the last *FLAGS variable, or
2493
# (2) before a word containing "conftest.", or (3) at the end.
2494
# Note that $ac_compile itself does not contain backslashes and begins
2495
# with a dollar sign (not a hyphen), so the echo should work correctly.
2496
lt_compile=`echo "$ac_compile" | $SED \
2497
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2498
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2499
-e 's:$: $lt_compiler_flag:'`
2500
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2501
(eval "$lt_compile" 2>out/conftest.err)
2503
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2504
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2505
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2507
# The compiler can only warn and ignore the option if not recognized
2508
# So say no if there are warnings
2509
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
2510
$SED '/^$/d' out/conftest.err >out/conftest.er2
2511
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2512
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2517
# SGI C++ compiler will create directory out/ii_files/ for
2518
# template instantiation
2519
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2520
$rm out/* && rmdir out
2525
])# AC_LIBTOOL_PROG_CC_C_O
2528
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2529
# -----------------------------------------
2530
# Check to see if we can do hard links to lock some files if needed
2531
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2532
[AC_REQUIRE([_LT_AC_LOCK])dnl
2534
hard_links="nottested"
2535
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2536
# do not overwrite the value of need_locks provided by the user
2537
AC_MSG_CHECKING([if we can lock with hard links])
2540
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2542
ln conftest.a conftest.b 2>&5 || hard_links=no
2543
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2544
AC_MSG_RESULT([$hard_links])
2545
if test "$hard_links" = no; then
2546
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2552
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2557
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2558
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2559
[rm -f .libs 2>/dev/null
2560
mkdir .libs 2>/dev/null
2561
if test -d .libs; then
2564
# MS-DOS does not allow filenames that begin with a dot.
2567
rmdir .libs 2>/dev/null])
2568
objdir=$lt_cv_objdir
2569
])# AC_LIBTOOL_OBJDIR
2572
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2573
# ----------------------------------------------
2574
# Check hardcoding attributes.
2575
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2576
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2577
_LT_AC_TAGVAR(hardcode_action, $1)=
2578
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2579
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2580
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2582
# We can hardcode non-existant directories.
2583
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2584
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2585
# have to relink, otherwise we might link with an installed library
2586
# when we should be linking with a yet-to-be-installed one
2587
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2588
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2589
# Linking always hardcodes the temporary library directory.
2590
_LT_AC_TAGVAR(hardcode_action, $1)=relink
2592
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2593
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
2596
# We cannot hardcode anything, or else we can only hardcode existing
2598
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2600
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2602
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2603
# Fast installation is not supported
2604
enable_fast_install=no
2605
elif test "$shlibpath_overrides_runpath" = yes ||
2606
test "$enable_shared" = no; then
2607
# Fast installation is not necessary
2608
enable_fast_install=needless
2610
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2613
# AC_LIBTOOL_SYS_LIB_STRIP
2614
# ------------------------
2615
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2618
AC_MSG_CHECKING([whether stripping libraries is possible])
2619
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2620
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2621
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2622
AC_MSG_RESULT([yes])
2624
# FIXME - insert some real tests, host_os isn't really good enough
2627
if test -n "$STRIP" ; then
2628
striplib="$STRIP -x"
2629
AC_MSG_RESULT([yes])
2639
])# AC_LIBTOOL_SYS_LIB_STRIP
2642
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2643
# -----------------------------
2644
# PORTME Fill in your ld.so characteristics
2645
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2646
[AC_MSG_CHECKING([dynamic linker characteristics])
2648
libname_spec='lib$name'
2656
shlibpath_overrides_runpath=unknown
2658
dynamic_linker="$host_os ld.so"
2659
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2660
if test "$GCC" = yes; then
2661
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2662
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2663
# if the path contains ";" then we assume it to be the separator
2664
# otherwise default to the standard path separator (i.e. ":") - it is
2665
# assumed that no part of a normal pathname contains ";" but that should
2666
# okay in the real world where ";" in dirpaths is itself problematic.
2667
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2669
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2672
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2674
need_lib_prefix=unknown
2675
hardcode_into_libs=no
2677
# when you set need_version to no, make sure it does not cause -set_version
2678
# flags to be left without arguments
2679
need_version=unknown
2684
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2685
shlibpath_var=LIBPATH
2687
# AIX 3 has no versioning support, so we append a major version to the name.
2688
soname_spec='${libname}${release}${shared_ext}$major'
2695
hardcode_into_libs=yes
2696
if test "$host_cpu" = ia64; then
2697
# AIX 5 supports IA64
2698
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2699
shlibpath_var=LD_LIBRARY_PATH
2701
# With GCC up to 2.95.x, collect2 would create an import file
2702
# for dependence libraries. The import file would start with
2703
# the line `#! .'. This would cause the generated library to
2704
# depend on `.', always an invalid library. This was fixed in
2705
# development snapshots of GCC prior to 3.0.
2707
aix4 | aix4.[[01]] | aix4.[[01]].*)
2708
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2710
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2717
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2718
# soname into executable. Probably we can add versioning support to
2719
# collect2, so additional links can be useful in future.
2720
if test "$aix_use_runtimelinking" = yes; then
2721
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2722
# instead of lib<name>.a to let people know that these are not
2723
# typical AIX shared libraries.
2724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2726
# We preserve .a as extension for shared libraries through AIX4.2
2727
# and later when we are not doing run time linking.
2728
library_names_spec='${libname}${release}.a $libname.a'
2729
soname_spec='${libname}${release}${shared_ext}$major'
2731
shlibpath_var=LIBPATH
2736
library_names_spec='$libname.ixlibrary $libname.a'
2737
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2738
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'
2742
library_names_spec='${libname}${shared_ext}'
2743
dynamic_linker="$host_os ld.so"
2744
shlibpath_var=LIBRARY_PATH
2750
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2751
soname_spec='${libname}${release}${shared_ext}$major'
2752
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2753
shlibpath_var=LD_LIBRARY_PATH
2754
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2755
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2756
# the default ld.so.conf also contains /usr/contrib/lib and
2757
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2758
# libtool to hard-code these into programs
2761
cygwin* | mingw* | pw32*)
2762
version_type=windows
2767
case $GCC,$host_os in
2768
yes,cygwin* | yes,mingw* | yes,pw32*)
2769
library_names_spec='$libname.dll.a'
2770
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2771
postinstall_cmds='base_file=`basename \${file}`~
2772
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2773
dldir=$destdir/`dirname \$dlpath`~
2774
test -d \$dldir || mkdir -p \$dldir~
2775
$install_prog $dir/$dlname \$dldir/$dlname'
2776
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2777
dlpath=$dir/\$dldll~
2779
shlibpath_overrides_runpath=yes
2783
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2784
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2785
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2788
# MinGW DLLs use traditional 'lib' prefix
2789
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2790
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2791
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2792
# It is most probably a Windows format PATH printed by
2793
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2794
# path with ; separators, and with drive letters. We can handle the
2795
# drive letters (cygwin fileutils understands them), so leave them,
2796
# especially as we might pass files found there to a mingw objdump,
2797
# which wouldn't understand a cygwinified path. Ahh.
2798
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2800
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2804
# pw32 DLLs use 'pw' prefix rather than 'lib'
2805
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2811
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2814
dynamic_linker='Win32 ld.exe'
2815
# FIXME: first we should search . and the directory the executable is in
2819
darwin* | rhapsody*)
2820
dynamic_linker="$host_os dyld"
2824
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2825
soname_spec='${libname}${release}${major}$shared_ext'
2826
shlibpath_overrides_runpath=yes
2827
shlibpath_var=DYLD_LIBRARY_PATH
2828
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2829
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2830
if test "$GCC" = yes; then
2831
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"`
2833
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2835
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2843
soname_spec='${libname}${release}${shared_ext}$major'
2844
shlibpath_var=LD_LIBRARY_PATH
2855
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2856
soname_spec='${libname}${release}${shared_ext}$major'
2857
shlibpath_var=LD_LIBRARY_PATH
2858
shlibpath_overrides_runpath=no
2859
hardcode_into_libs=yes
2860
dynamic_linker='GNU ld.so'
2863
freebsd* | dragonfly*)
2864
# DragonFly does not have aout. When/if they implement a new
2865
# versioning mechanism, adjust this.
2866
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2867
version_type=freebsd-$objformat
2868
case $version_type in
2870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2875
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2879
shlibpath_var=LD_LIBRARY_PATH
2882
shlibpath_overrides_runpath=yes
2884
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2885
shlibpath_overrides_runpath=yes
2886
hardcode_into_libs=yes
2889
shlibpath_overrides_runpath=no
2890
hardcode_into_libs=yes
2899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2900
soname_spec='${libname}${release}${shared_ext}$major'
2901
shlibpath_var=LD_LIBRARY_PATH
2902
hardcode_into_libs=yes
2905
hpux9* | hpux10* | hpux11*)
2906
# Give a soname corresponding to the major version so that dld.sl refuses to
2907
# link against other versions.
2914
hardcode_into_libs=yes
2915
dynamic_linker="$host_os dld.so"
2916
shlibpath_var=LD_LIBRARY_PATH
2917
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2919
soname_spec='${libname}${release}${shared_ext}$major'
2920
if test "X$HPUX_IA64_MODE" = X32; then
2921
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2923
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2925
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2929
hardcode_into_libs=yes
2930
dynamic_linker="$host_os dld.sl"
2931
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2932
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2934
soname_spec='${libname}${release}${shared_ext}$major'
2935
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2936
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2940
dynamic_linker="$host_os dld.sl"
2941
shlibpath_var=SHLIB_PATH
2942
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2944
soname_spec='${libname}${release}${shared_ext}$major'
2947
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2948
postinstall_cmds='chmod 555 $lib'
2951
irix5* | irix6* | nonstopux*)
2953
nonstopux*) version_type=nonstopux ;;
2955
if test "$lt_cv_prog_gnu_ld" = yes; then
2963
soname_spec='${libname}${release}${shared_ext}$major'
2964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2966
irix5* | nonstopux*)
2970
case $LD in # libtool.m4 will add one of these switches to LD
2971
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2972
libsuff= shlibsuff= libmagic=32-bit;;
2973
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2974
libsuff=32 shlibsuff=N32 libmagic=N32;;
2975
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2976
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2977
*) libsuff= shlibsuff= libmagic=never-match;;
2981
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2982
shlibpath_overrides_runpath=no
2983
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2984
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2985
hardcode_into_libs=yes
2988
# No shared lib support for Linux oldld, aout, or coff.
2989
linux*oldld* | linux*aout* | linux*coff*)
2993
# This must be Linux ELF.
2998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2999
soname_spec='${libname}${release}${shared_ext}$major'
3000
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3001
shlibpath_var=LD_LIBRARY_PATH
3002
shlibpath_overrides_runpath=no
3003
# This implies no fast_install, which is unacceptable.
3004
# Some rework will be needed to allow for fast_install
3005
# before this can be enabled.
3006
hardcode_into_libs=yes
3008
# find out which ABI we are using
3011
x86_64*|s390x*|powerpc64*)
3012
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3013
if AC_TRY_EVAL(ac_compile); then
3014
case `/usr/bin/file conftest.$ac_objext` in
3017
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
3025
# Append ld.so.conf contents to the search path
3026
if test -f /etc/ld.so.conf; then
3027
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' ' '`
3028
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
3031
# We used to test for /lib/ld.so.1 and disable shared libraries on
3032
# powerpc, because MkLinux only supported shared libraries with the
3033
# GNU dynamic linker. Since this was broken with cross compilers,
3034
# most powerpc-linux boxes support dynamic linking these days and
3035
# people can always --disable-shared, the test was removed, and we
3036
# assume the GNU/Linux dynamic linker is in use.
3037
dynamic_linker='GNU/Linux ld.so'
3044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3045
soname_spec='${libname}${release}${shared_ext}$major'
3046
shlibpath_var=LD_LIBRARY_PATH
3047
shlibpath_overrides_runpath=no
3048
hardcode_into_libs=yes
3049
dynamic_linker='GNU ld.so'
3056
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3058
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3059
dynamic_linker='NetBSD (a.out) ld.so'
3061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3062
soname_spec='${libname}${release}${shared_ext}$major'
3063
dynamic_linker='NetBSD ld.elf_so'
3065
shlibpath_var=LD_LIBRARY_PATH
3066
shlibpath_overrides_runpath=yes
3067
hardcode_into_libs=yes
3072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3073
shlibpath_var=LD_LIBRARY_PATH
3074
shlibpath_overrides_runpath=yes
3081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3082
soname_spec='${libname}${release}${shared_ext}$major'
3083
shlibpath_var=LD_LIBRARY_PATH
3084
shlibpath_overrides_runpath=yes
3090
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3092
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3093
*) need_version=no ;;
3095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3096
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3097
shlibpath_var=LD_LIBRARY_PATH
3098
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3100
openbsd2.[[89]] | openbsd2.[[89]].*)
3101
shlibpath_overrides_runpath=no
3104
shlibpath_overrides_runpath=yes
3108
shlibpath_overrides_runpath=yes
3113
libname_spec='$name'
3116
library_names_spec='$libname${shared_ext} $libname.a'
3117
dynamic_linker='OS/2 ld.exe'
3118
shlibpath_var=LIBPATH
3121
osf3* | osf4* | osf5*)
3125
soname_spec='${libname}${release}${shared_ext}$major'
3126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3127
shlibpath_var=LD_LIBRARY_PATH
3128
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3129
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3134
soname_spec='${libname}${release}${shared_ext}$major'
3135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3136
shlibpath_var=LD_LIBRARY_PATH
3143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3144
soname_spec='${libname}${release}${shared_ext}$major'
3145
shlibpath_var=LD_LIBRARY_PATH
3146
shlibpath_overrides_runpath=yes
3147
hardcode_into_libs=yes
3148
# ldd complains unless libraries are executable
3149
postinstall_cmds='chmod +x $lib'
3154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3155
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3156
shlibpath_var=LD_LIBRARY_PATH
3157
shlibpath_overrides_runpath=yes
3158
if test "$with_gnu_ld" = yes; then
3164
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3167
soname_spec='${libname}${release}${shared_ext}$major'
3168
shlibpath_var=LD_LIBRARY_PATH
3169
case $host_vendor in
3171
shlibpath_overrides_runpath=no
3173
export_dynamic_flag_spec='${wl}-Blargedynsym'
3174
runpath_var=LD_RUN_PATH
3182
shlibpath_overrides_runpath=no
3183
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3189
if test -d /usr/nec ;then
3191
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3192
soname_spec='$libname${shared_ext}.$major'
3193
shlibpath_var=LD_LIBRARY_PATH
3199
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3200
soname_spec='${libname}${release}${shared_ext}$major'
3201
shlibpath_var=LD_LIBRARY_PATH
3208
AC_MSG_RESULT([$dynamic_linker])
3209
test "$dynamic_linker" = no && can_build_shared=no
3210
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3215
AC_DEFUN([_LT_AC_TAGCONFIG],
3216
[AC_ARG_WITH([tags],
3217
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3218
[include additional configurations @<:@automatic@:>@])],
3219
[tagnames="$withval"])
3221
if test -f "$ltmain" && test -n "$tagnames"; then
3222
if test ! -f "${ofile}"; then
3223
AC_MSG_WARN([output file `$ofile' does not exist])
3226
if test -z "$LTCC"; then
3227
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3228
if test -z "$LTCC"; then
3229
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3231
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3235
# Extract list of available tagged configurations in $ofile.
3236
# Note that this assumes the entire list is on one line.
3237
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3239
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3240
for tagname in $tagnames; do
3242
# Check whether tagname contains only valid characters
3243
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3245
*) AC_MSG_ERROR([invalid tag name: $tagname])
3249
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3251
AC_MSG_ERROR([tag name \"$tagname\" already exists])
3254
# Update the list of available tags.
3255
if test -n "$tagname"; then
3256
echo appending configuration tag \"$tagname\" to $ofile
3260
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3261
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3262
(test "X$CXX" != "Xg++"))) ; then
3263
AC_LIBTOOL_LANG_CXX_CONFIG
3270
if test -n "$F77" && test "X$F77" != "Xno"; then
3271
AC_LIBTOOL_LANG_F77_CONFIG
3278
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3279
AC_LIBTOOL_LANG_GCJ_CONFIG
3286
AC_LIBTOOL_LANG_RC_CONFIG
3290
AC_MSG_ERROR([Unsupported tag name: $tagname])
3294
# Append the new tag name to the list of available tags.
3295
if test -n "$tagname" ; then
3296
available_tags="$available_tags $tagname"
3302
# Now substitute the updated list of available tags.
3303
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3304
mv "${ofile}T" "$ofile"
3308
AC_MSG_ERROR([unable to update list of available tagged configurations.])
3311
])# _LT_AC_TAGCONFIG
3316
# enable checks for dlopen support
3317
AC_DEFUN([AC_LIBTOOL_DLOPEN],
3318
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3319
])# AC_LIBTOOL_DLOPEN
3322
# AC_LIBTOOL_WIN32_DLL
3323
# --------------------
3324
# declare package support for building win32 dll's
3325
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3326
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3327
])# AC_LIBTOOL_WIN32_DLL
3330
# AC_ENABLE_SHARED([DEFAULT])
3331
# ---------------------------
3332
# implement the --enable-shared flag
3333
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3334
AC_DEFUN([AC_ENABLE_SHARED],
3335
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3336
AC_ARG_ENABLE([shared],
3337
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3338
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3339
[p=${PACKAGE-default}
3341
yes) enable_shared=yes ;;
3342
no) enable_shared=no ;;
3345
# Look at the argument we got. We use all the common list separators.
3346
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3347
for pkg in $enableval; do
3349
if test "X$pkg" = "X$p"; then
3356
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3357
])# AC_ENABLE_SHARED
3362
#- set the default shared flag to --disable-shared
3363
AC_DEFUN([AC_DISABLE_SHARED],
3364
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3365
AC_ENABLE_SHARED(no)
3366
])# AC_DISABLE_SHARED
3369
# AC_ENABLE_STATIC([DEFAULT])
3370
# ---------------------------
3371
# implement the --enable-static flag
3372
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3373
AC_DEFUN([AC_ENABLE_STATIC],
3374
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3375
AC_ARG_ENABLE([static],
3376
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3377
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3378
[p=${PACKAGE-default}
3380
yes) enable_static=yes ;;
3381
no) enable_static=no ;;
3384
# Look at the argument we got. We use all the common list separators.
3385
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3386
for pkg in $enableval; do
3388
if test "X$pkg" = "X$p"; then
3395
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
3396
])# AC_ENABLE_STATIC
3401
# set the default static flag to --disable-static
3402
AC_DEFUN([AC_DISABLE_STATIC],
3403
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3404
AC_ENABLE_STATIC(no)
3405
])# AC_DISABLE_STATIC
3408
# AC_ENABLE_FAST_INSTALL([DEFAULT])
3409
# ---------------------------------
3410
# implement the --enable-fast-install flag
3411
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3412
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3413
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3414
AC_ARG_ENABLE([fast-install],
3415
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3416
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3417
[p=${PACKAGE-default}
3419
yes) enable_fast_install=yes ;;
3420
no) enable_fast_install=no ;;
3422
enable_fast_install=no
3423
# Look at the argument we got. We use all the common list separators.
3424
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3425
for pkg in $enableval; do
3427
if test "X$pkg" = "X$p"; then
3428
enable_fast_install=yes
3434
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3435
])# AC_ENABLE_FAST_INSTALL
3438
# AC_DISABLE_FAST_INSTALL
3439
# -----------------------
3440
# set the default to --disable-fast-install
3441
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3442
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3443
AC_ENABLE_FAST_INSTALL(no)
3444
])# AC_DISABLE_FAST_INSTALL
3447
# AC_LIBTOOL_PICMODE([MODE])
3448
# --------------------------
3449
# implement the --with-pic flag
3450
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3451
AC_DEFUN([AC_LIBTOOL_PICMODE],
3452
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3453
pic_mode=ifelse($#,1,$1,default)
3454
])# AC_LIBTOOL_PICMODE
3459
# This is predefined starting with Autoconf 2.54, so this conditional
3460
# definition can be removed once we require Autoconf 2.54 or later.
3461
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3462
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3463
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3464
then ac_cv_prog_egrep='grep -E'
3465
else ac_cv_prog_egrep='egrep'
3467
EGREP=$ac_cv_prog_egrep
3472
# AC_PATH_TOOL_PREFIX
3473
# -------------------
3474
# find a file program which can recognise shared library
3475
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3476
[AC_REQUIRE([AC_PROG_EGREP])dnl
3477
AC_MSG_CHECKING([for $1])
3478
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3480
[[\\/*] | ?:[\\/]*])
3481
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3484
lt_save_MAGIC_CMD="$MAGIC_CMD"
3485
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3486
dnl $ac_dummy forces splitting on constant user-supplied paths.
3487
dnl POSIX.2 word splitting is done only on the output of word expansions,
3488
dnl not every word. This closes a longstanding sh security hole.
3489
ac_dummy="ifelse([$2], , $PATH, [$2])"
3490
for ac_dir in $ac_dummy; do
3492
test -z "$ac_dir" && ac_dir=.
3493
if test -f $ac_dir/$1; then
3494
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3495
if test -n "$file_magic_test_file"; then
3496
case $deplibs_check_method in
3498
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3499
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3500
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3501
$EGREP "$file_magic_regex" > /dev/null; then
3506
*** Warning: the command libtool uses to detect shared libraries,
3507
*** $file_magic_cmd, produces output that libtool cannot recognize.
3508
*** The result is that libtool may fail to recognize shared libraries
3509
*** as such. This will affect the creation of libtool libraries that
3510
*** depend on shared libraries, but programs linked with such libtool
3511
*** libraries will work regardless of this problem. Nevertheless, you
3512
*** may want to report the problem to your system manager and/or to
3513
*** bug-libtool@gnu.org
3523
MAGIC_CMD="$lt_save_MAGIC_CMD"
3526
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3527
if test -n "$MAGIC_CMD"; then
3528
AC_MSG_RESULT($MAGIC_CMD)
3532
])# AC_PATH_TOOL_PREFIX
3537
# find a file program which can recognise a shared library
3538
AC_DEFUN([AC_PATH_MAGIC],
3539
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3540
if test -z "$lt_cv_path_MAGIC_CMD"; then
3541
if test -n "$ac_tool_prefix"; then
3542
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3552
# find the pathname to the GNU or non-GNU linker
3553
AC_DEFUN([AC_PROG_LD],
3554
[AC_ARG_WITH([gnu-ld],
3555
[AC_HELP_STRING([--with-gnu-ld],
3556
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3557
[test "$withval" = no || with_gnu_ld=yes],
3559
AC_REQUIRE([LT_AC_PROG_SED])dnl
3560
AC_REQUIRE([AC_PROG_CC])dnl
3561
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3562
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3564
if test "$GCC" = yes; then
3565
# Check if gcc -print-prog-name=ld gives a path.
3566
AC_MSG_CHECKING([for ld used by $CC])
3569
# gcc leaves a trailing carriage return which upsets mingw
3570
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3572
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3575
# Accept absolute paths.
3576
[[\\/]]* | ?:[[\\/]]*)
3577
re_direlt='/[[^/]][[^/]]*/\.\./'
3578
# Canonicalize the pathname of ld
3579
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3580
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3581
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3583
test -z "$LD" && LD="$ac_prog"
3586
# If it fails, then pretend we aren't using GCC.
3590
# If it is relative, then search for the first ld in PATH.
3594
elif test "$with_gnu_ld" = yes; then
3595
AC_MSG_CHECKING([for GNU ld])
3597
AC_MSG_CHECKING([for non-GNU ld])
3599
AC_CACHE_VAL(lt_cv_path_LD,
3600
[if test -z "$LD"; then
3601
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3602
for ac_dir in $PATH; do
3604
test -z "$ac_dir" && ac_dir=.
3605
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3606
lt_cv_path_LD="$ac_dir/$ac_prog"
3607
# Check to see if the program is GNU ld. I'd rather use --version,
3608
# but apparently some GNU ld's only accept -v.
3609
# Break only if it was the GNU/non-GNU ld that we prefer.
3610
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3611
*GNU* | *'with BFD'*)
3612
test "$with_gnu_ld" != no && break
3615
test "$with_gnu_ld" != yes && break
3622
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3625
if test -n "$LD"; then
3630
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3637
AC_DEFUN([AC_PROG_LD_GNU],
3638
[AC_REQUIRE([AC_PROG_EGREP])dnl
3639
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3640
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3641
case `$LD -v 2>&1 </dev/null` in
3642
*GNU* | *'with BFD'*)
3643
lt_cv_prog_gnu_ld=yes
3646
lt_cv_prog_gnu_ld=no
3649
with_gnu_ld=$lt_cv_prog_gnu_ld
3653
# AC_PROG_LD_RELOAD_FLAG
3654
# ----------------------
3655
# find reload flag for linker
3656
# -- PORTME Some linkers may need a different reload flag.
3657
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3658
[AC_CACHE_CHECK([for $LD option to reload object files],
3659
lt_cv_ld_reload_flag,
3660
[lt_cv_ld_reload_flag='-r'])
3661
reload_flag=$lt_cv_ld_reload_flag
3662
case $reload_flag in
3664
*) reload_flag=" $reload_flag" ;;
3666
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3669
if test "$GCC" = yes; then
3670
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3672
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3676
])# AC_PROG_LD_RELOAD_FLAG
3679
# AC_DEPLIBS_CHECK_METHOD
3680
# -----------------------
3681
# how to check for library dependencies
3682
# -- PORTME fill in with the dynamic library characteristics
3683
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3684
[AC_CACHE_CHECK([how to recognise dependent libraries],
3685
lt_cv_deplibs_check_method,
3686
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3687
lt_cv_file_magic_test_file=
3688
lt_cv_deplibs_check_method='unknown'
3689
# Need to set the preceding variable on all platforms that support
3690
# interlibrary dependencies.
3691
# 'none' -- dependencies not supported.
3692
# `unknown' -- same as none, but documents that we really don't know.
3693
# 'pass_all' -- all dependencies passed with no checks.
3694
# 'test_compile' -- check by making test program.
3695
# 'file_magic [[regex]]' -- check by looking for files in library path
3696
# which responds to the $file_magic_cmd with a given extended regex.
3697
# If you have `file' or equivalent on your system and you're not sure
3698
# whether `pass_all' will *always* work, you probably want this one.
3702
lt_cv_deplibs_check_method=pass_all
3706
lt_cv_deplibs_check_method=pass_all
3710
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3711
lt_cv_file_magic_cmd='/usr/bin/file -L'
3712
lt_cv_file_magic_test_file=/shlib/libc.so
3716
# func_win32_libid is a shell function defined in ltmain.sh
3717
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3718
lt_cv_file_magic_cmd='func_win32_libid'
3722
# Base MSYS/MinGW do not provide the 'file' command needed by
3723
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3724
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3725
lt_cv_file_magic_cmd='$OBJDUMP -f'
3728
darwin* | rhapsody*)
3729
lt_cv_deplibs_check_method=pass_all
3732
freebsd* | kfreebsd*-gnu | dragonfly*)
3733
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3736
# Not sure whether the presence of OpenBSD here was a mistake.
3737
# Let's accept both of them until this is cleared up.
3738
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3739
lt_cv_file_magic_cmd=/usr/bin/file
3740
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3744
lt_cv_deplibs_check_method=pass_all
3749
lt_cv_deplibs_check_method=pass_all
3752
hpux10.20* | hpux11*)
3753
lt_cv_file_magic_cmd=/usr/bin/file
3756
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3757
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3760
[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]']
3761
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3764
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3765
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3770
irix5* | irix6* | nonstopux*)
3772
*-32|*"-32 ") libmagic=32-bit;;
3773
*-n32|*"-n32 ") libmagic=N32;;
3774
*-64|*"-64 ") libmagic=64-bit;;
3775
*) libmagic=never-match;;
3777
lt_cv_deplibs_check_method=pass_all
3780
# This must be Linux ELF.
3782
lt_cv_deplibs_check_method=pass_all
3786
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3787
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3789
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3794
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3795
lt_cv_file_magic_cmd=/usr/bin/file
3796
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3800
lt_cv_deplibs_check_method=unknown
3804
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3805
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3807
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3811
osf3* | osf4* | osf5*)
3812
lt_cv_deplibs_check_method=pass_all
3816
lt_cv_deplibs_check_method=pass_all
3820
lt_cv_deplibs_check_method=pass_all
3823
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3824
case $host_vendor in
3826
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]]'
3827
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3830
lt_cv_deplibs_check_method=pass_all
3833
lt_cv_file_magic_cmd='/bin/file'
3834
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3837
lt_cv_file_magic_cmd='/bin/file'
3838
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3839
lt_cv_file_magic_test_file=/lib/libc.so
3842
lt_cv_deplibs_check_method=pass_all
3847
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3848
lt_cv_deplibs_check_method=pass_all
3852
file_magic_cmd=$lt_cv_file_magic_cmd
3853
deplibs_check_method=$lt_cv_deplibs_check_method
3854
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3855
])# AC_DEPLIBS_CHECK_METHOD
3860
# find the pathname to a BSD-compatible name lister
3861
AC_DEFUN([AC_PROG_NM],
3862
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3863
[if test -n "$NM"; then
3864
# Let the user override the test.
3867
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3868
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3870
test -z "$ac_dir" && ac_dir=.
3871
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3872
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3873
# Check to see if the nm accepts a BSD-compat flag.
3874
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3875
# nm: unknown option "B" ignored
3876
# Tru64's nm complains that /dev/null is an invalid object file
3877
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3878
*/dev/null* | *'Invalid file or object type'*)
3879
lt_cv_path_NM="$tmp_nm -B"
3883
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3885
lt_cv_path_NM="$tmp_nm -p"
3889
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3890
continue # so that we can try to find one that supports BSD flags
3897
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3905
# check for math library
3906
AC_DEFUN([AC_CHECK_LIBM],
3907
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3910
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3911
# These system don't have libm, or don't need it
3914
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3915
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3918
AC_CHECK_LIB(m, cos, LIBM="-lm")
3924
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3925
# -----------------------------------
3926
# sets LIBLTDL to the link flags for the libltdl convenience library and
3927
# LTDLINCL to the include flags for the libltdl header and adds
3928
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3929
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3930
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3931
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3932
# '${top_srcdir}/' (note the single quotes!). If your package is not
3933
# flat and you're not using automake, define top_builddir and
3934
# top_srcdir appropriately in the Makefiles.
3935
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3936
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3937
case $enable_ltdl_convenience in
3938
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3939
"") enable_ltdl_convenience=yes
3940
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3942
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3943
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3944
# For backwards non-gettext consistent compatibility...
3946
])# AC_LIBLTDL_CONVENIENCE
3949
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3950
# -----------------------------------
3951
# sets LIBLTDL to the link flags for the libltdl installable library and
3952
# LTDLINCL to the include flags for the libltdl header and adds
3953
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3954
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3955
# DIRECTORY is not provided and an installed libltdl is not found, it is
3956
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3957
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3958
# quotes!). If your package is not flat and you're not using automake,
3959
# define top_builddir and top_srcdir appropriately in the Makefiles.
3960
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3961
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3962
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3963
AC_CHECK_LIB(ltdl, lt_dlinit,
3964
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3965
[if test x"$enable_ltdl_install" = xno; then
3966
AC_MSG_WARN([libltdl not installed, but installation disabled])
3968
enable_ltdl_install=yes
3971
if test x"$enable_ltdl_install" = x"yes"; then
3972
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3973
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3974
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3976
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3980
# For backwards non-gettext consistent compatibility...
3982
])# AC_LIBLTDL_INSTALLABLE
3987
# enable support for C++ libraries
3988
AC_DEFUN([AC_LIBTOOL_CXX],
3989
[AC_REQUIRE([_LT_AC_LANG_CXX])
3995
AC_DEFUN([_LT_AC_LANG_CXX],
3996
[AC_REQUIRE([AC_PROG_CXX])
3997
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3998
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4001
# _LT_AC_PROG_CXXCPP
4003
AC_DEFUN([_LT_AC_PROG_CXXCPP],
4005
AC_REQUIRE([AC_PROG_CXX])
4006
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4007
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4008
(test "X$CXX" != "Xg++"))) ; then
4011
])# _LT_AC_PROG_CXXCPP
4015
# enable support for Fortran 77 libraries
4016
AC_DEFUN([AC_LIBTOOL_F77],
4017
[AC_REQUIRE([_LT_AC_LANG_F77])
4023
AC_DEFUN([_LT_AC_LANG_F77],
4024
[AC_REQUIRE([AC_PROG_F77])
4025
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4031
# enable support for GCJ libraries
4032
AC_DEFUN([AC_LIBTOOL_GCJ],
4033
[AC_REQUIRE([_LT_AC_LANG_GCJ])
4039
AC_DEFUN([_LT_AC_LANG_GCJ],
4040
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4041
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4042
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4043
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4044
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4045
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4046
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4052
# enable support for Windows resource files
4053
AC_DEFUN([AC_LIBTOOL_RC],
4054
[AC_REQUIRE([LT_AC_PROG_RC])
4055
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4059
# AC_LIBTOOL_LANG_C_CONFIG
4060
# ------------------------
4061
# Ensure that the configuration vars for the C compiler are
4062
# suitably defined. Those variables are subsequently used by
4063
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4064
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4065
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4069
# Source file extension for C test sources.
4072
# Object file extension for compiled C test sources.
4074
_LT_AC_TAGVAR(objext, $1)=$objext
4076
# Code to be used in simple compile tests
4077
lt_simple_compile_test_code="int some_variable = 0;\n"
4079
# Code to be used in simple link tests
4080
lt_simple_link_test_code='int main(){return(0);}\n'
4084
# save warnings/boilerplate of simple test code
4085
_LT_COMPILER_BOILERPLATE
4086
_LT_LINKER_BOILERPLATE
4089
# Check for any special shared library compilation flags.
4091
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
4092
if test "$GCC" = no; then
4095
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
4099
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
4100
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
4101
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
4103
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
4104
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
4110
# Check to make sure the static flag actually works.
4112
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
4113
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4114
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
4116
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4119
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4120
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4121
AC_LIBTOOL_PROG_CC_C_O($1)
4122
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4123
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4124
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4125
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4126
AC_LIBTOOL_SYS_LIB_STRIP
4127
AC_LIBTOOL_DLOPEN_SELF($1)
4129
# Report which librarie types wil actually be built
4130
AC_MSG_CHECKING([if libtool supports shared libraries])
4131
AC_MSG_RESULT([$can_build_shared])
4133
AC_MSG_CHECKING([whether to build shared libraries])
4134
test "$can_build_shared" = "no" && enable_shared=no
4136
# On AIX, shared libraries and static libraries use the same namespace, and
4137
# are all built from PIC.
4140
test "$enable_shared" = yes && enable_static=no
4141
if test -n "$RANLIB"; then
4142
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4143
postinstall_cmds='$RANLIB $lib'
4148
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4149
test "$enable_shared" = yes && enable_static=no
4153
AC_MSG_RESULT([$enable_shared])
4155
AC_MSG_CHECKING([whether to build static libraries])
4156
# Make sure either enable_shared or enable_static is yes.
4157
test "$enable_shared" = yes || enable_static=yes
4158
AC_MSG_RESULT([$enable_static])
4160
AC_LIBTOOL_CONFIG($1)
4164
])# AC_LIBTOOL_LANG_C_CONFIG
4167
# AC_LIBTOOL_LANG_CXX_CONFIG
4168
# --------------------------
4169
# Ensure that the configuration vars for the C compiler are
4170
# suitably defined. Those variables are subsequently used by
4171
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4172
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4173
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4175
AC_REQUIRE([AC_PROG_CXX])
4176
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4178
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4179
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4180
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4181
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4182
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4183
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4184
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4185
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4186
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4187
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4188
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4189
_LT_AC_TAGVAR(module_cmds, $1)=
4190
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4191
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4192
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4193
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4194
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4195
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4197
# Dependencies to place before and after the object being linked:
4198
_LT_AC_TAGVAR(predep_objects, $1)=
4199
_LT_AC_TAGVAR(postdep_objects, $1)=
4200
_LT_AC_TAGVAR(predeps, $1)=
4201
_LT_AC_TAGVAR(postdeps, $1)=
4202
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4204
# Source file extension for C++ test sources.
4207
# Object file extension for compiled C++ test sources.
4209
_LT_AC_TAGVAR(objext, $1)=$objext
4211
# Code to be used in simple compile tests
4212
lt_simple_compile_test_code="int some_variable = 0;\n"
4214
# Code to be used in simple link tests
4215
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
4217
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4220
# save warnings/boilerplate of simple test code
4221
_LT_COMPILER_BOILERPLATE
4222
_LT_LINKER_BOILERPLATE
4224
# Allow CC to be a program name with arguments.
4229
lt_save_with_gnu_ld=$with_gnu_ld
4230
lt_save_path_LD=$lt_cv_path_LD
4231
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4232
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4234
unset lt_cv_prog_gnu_ld
4236
if test -n "${lt_cv_path_LDCXX+set}"; then
4237
lt_cv_path_LD=$lt_cv_path_LDCXX
4241
test -z "${LDCXX+set}" || LD=$LDCXX
4244
_LT_AC_TAGVAR(compiler, $1)=$CC
4245
_LT_CC_BASENAME([$compiler])
4247
# We don't want -fno-exception wen compiling C++ code, so set the
4248
# no_builtin_flag separately
4249
if test "$GXX" = yes; then
4250
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4252
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4255
if test "$GXX" = yes; then
4256
# Set up default GNU C++ configuration
4260
# Check if GNU C++ uses GNU ld as the underlying linker, since the
4261
# archiving commands below assume that GNU ld is being used.
4262
if test "$with_gnu_ld" = yes; then
4263
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4264
_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'
4266
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4267
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4269
# If archive_cmds runs LD, not CC, wlarc should be empty
4270
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4271
# investigate it a little bit more. (MM)
4274
# ancient GNU ld didn't support --whole-archive et. al.
4275
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4276
grep 'no-whole-archive' > /dev/null; then
4277
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4279
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4285
# A generic and very simple default shared library creation
4286
# command for GNU C++ for the case where it uses the native
4287
# linker, instead of GNU ld. If possible, this setting should
4288
# overridden to take advantage of the native linker features on
4289
# the platform it is being used on.
4290
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4293
# Commands to make compiler produce verbose output that lists
4294
# what "hidden" libraries, object files and flags are used when
4295
# linking a shared library.
4296
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4304
# PORTME: fill in a description of your system's C++ link characteristics
4305
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4306
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4309
# FIXME: insert proper C++ library support
4310
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4313
if test "$host_cpu" = ia64; then
4314
# On IA64, the linker does run time linking by default, so we don't
4315
# have to do anything special.
4316
aix_use_runtimelinking=no
4317
exp_sym_flag='-Bexport'
4320
aix_use_runtimelinking=no
4322
# Test if we are trying to use run time linking or normal
4323
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4324
# need to do runtime linking.
4325
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4326
for ld_flag in $LDFLAGS; do
4329
aix_use_runtimelinking=yes
4336
exp_sym_flag='-bexport'
4337
no_entry_flag='-bnoentry'
4340
# When large executables or shared objects are built, AIX ld can
4341
# have problems creating the table of contents. If linking a library
4342
# or program results in "error TOC overflow" add -mminimal-toc to
4343
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4344
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4346
_LT_AC_TAGVAR(archive_cmds, $1)=''
4347
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4348
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4349
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4351
if test "$GXX" = yes; then
4352
case $host_os in aix4.[[012]]|aix4.[[012]].*)
4353
# We only want to do this on AIX 4.2 and lower, the check
4354
# below for broken collect2 doesn't work under 4.3+
4355
collect2name=`${CC} -print-prog-name=collect2`
4356
if test -f "$collect2name" && \
4357
strings "$collect2name" | grep resolve_lib_name >/dev/null
4359
# We have reworked collect2
4360
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4362
# We have old collect2
4363
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4364
# It fails to find uninstalled libraries when the uninstalled
4365
# path is not listed in the libpath. Setting hardcode_minus_L
4366
# to unsupported forces relinking
4367
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4368
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4369
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4372
shared_flag='-shared'
4373
if test "$aix_use_runtimelinking" = yes; then
4374
shared_flag="$shared_flag "'${wl}-G'
4378
if test "$host_cpu" = ia64; then
4379
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4380
# chokes on -Wl,-G. The following line is correct:
4383
if test "$aix_use_runtimelinking" = yes; then
4384
shared_flag='${wl}-G'
4386
shared_flag='${wl}-bM:SRE'
4391
# It seems that -bexpall does not export symbols beginning with
4392
# underscore (_), so it is better to generate a list of symbols to export.
4393
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4394
if test "$aix_use_runtimelinking" = yes; then
4395
# Warning - without using the other runtime loading flags (-brtl),
4396
# -berok will link without error, but may produce a broken library.
4397
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4398
# Determine the default libpath from the value encoded in an empty executable.
4399
_LT_AC_SYS_LIBPATH_AIX
4400
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4402
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4404
if test "$host_cpu" = ia64; then
4405
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4406
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4407
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4409
# Determine the default libpath from the value encoded in an empty executable.
4410
_LT_AC_SYS_LIBPATH_AIX
4411
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4412
# Warning - without using the other run time loading flags,
4413
# -berok will link without error, but may produce a broken library.
4414
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4415
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4416
# -bexpall does not export symbols beginning with underscore (_)
4417
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4418
# Exported symbols can be pulled into shared objects from archives
4419
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
4420
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4421
# This is similar to how AIX traditionally builds it's shared libraries.
4422
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4427
case $cc_basename in
4429
# FIXME: insert proper C++ library support
4430
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4436
cygwin* | mingw* | pw32*)
4437
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4438
# as there is no search path for DLLs.
4439
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4440
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4441
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4442
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4444
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4445
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4446
# If the export-symbols file already is a .def file (1st line
4447
# is EXPORTS), use it as is; otherwise, prepend...
4448
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4449
cp $export_symbols $output_objdir/$soname.def;
4451
echo EXPORTS > $output_objdir/$soname.def;
4452
cat $export_symbols >> $output_objdir/$soname.def;
4454
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4456
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4459
darwin* | rhapsody*)
4461
rhapsody* | darwin1.[[012]])
4462
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4465
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4466
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4468
case ${MACOSX_DEPLOYMENT_TARGET} in
4470
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4473
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4479
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4480
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4481
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4482
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4483
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4484
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4486
if test "$GXX" = yes ; then
4487
lt_int_apple_cc_single_mod=no
4488
output_verbose_link_cmd='echo'
4489
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4490
lt_int_apple_cc_single_mod=yes
4492
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4493
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4495
_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'
4497
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4498
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4499
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4500
_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}'
4502
_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}'
4504
_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}'
4506
case $cc_basename in
4508
output_verbose_link_cmd='echo'
4509
_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'
4510
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4511
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4512
_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}'
4513
_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}'
4516
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4523
case $cc_basename in
4525
# FIXME: insert proper C++ library support
4526
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4529
# Green Hills C++ Compiler
4530
# FIXME: insert proper C++ library support
4531
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4534
# FIXME: insert proper C++ library support
4535
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4540
# C++ shared libraries reported to be fairly broken before switch to ELF
4541
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4544
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4546
freebsd* | kfreebsd*-gnu | dragonfly*)
4547
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4549
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4554
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4555
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4556
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4557
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4558
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4559
# but as the default
4560
# location of the library.
4562
case $cc_basename in
4564
# FIXME: insert proper C++ library support
4565
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4568
_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'
4569
# Commands to make compiler produce verbose output that lists
4570
# what "hidden" libraries, object files and flags are used when
4571
# linking a shared library.
4573
# There doesn't appear to be a way to prevent this compiler from
4574
# explicitly linking system object files so we need to strip them
4575
# from the output so that they don't get included in the library
4577
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'
4580
if test "$GXX" = yes; then
4581
_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'
4583
# FIXME: insert proper C++ library support
4584
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4590
if test $with_gnu_ld = no; then
4593
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4594
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4595
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4598
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4601
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4602
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4603
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4609
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4610
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4613
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4614
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4615
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4616
# but as the default
4617
# location of the library.
4620
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4621
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4622
# but as the default
4623
# location of the library.
4627
case $cc_basename in
4629
# FIXME: insert proper C++ library support
4630
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4635
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
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)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4659
_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'
4664
# FIXME: insert proper C++ library support
4665
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4671
case $cc_basename in
4674
_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'
4676
# Archives containing C++ object files must be created using
4677
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4678
# necessary to make sure instantiated templates are included
4680
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4683
if test "$GXX" = yes; then
4684
if test "$with_gnu_ld" = no; then
4685
_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'
4687
_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'
4690
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4693
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4694
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4697
case $cc_basename in
4699
# Kuck and Associates, Inc. (KAI) C++ Compiler
4701
# KCC will only create a shared library if the output file
4702
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4703
# to its proper name (with version) after linking.
4704
_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'
4705
_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'
4706
# Commands to make compiler produce verbose output that lists
4707
# what "hidden" libraries, object files and flags are used when
4708
# linking a shared library.
4710
# There doesn't appear to be a way to prevent this compiler from
4711
# explicitly linking system object files so we need to strip them
4712
# from the output so that they don't get included in the library
4714
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'
4716
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4717
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4719
# Archives containing C++ object files must be created using
4720
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4721
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4726
# version 8.0 and above of icpc choke on multiply defined symbols
4727
# if we add $predep_objects and $postdep_objects, however 7.1 and
4728
# earlier do not add the objects themselves.
4729
case `$CC -V 2>&1` in
4731
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4732
_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'
4734
*) # Version 8.0 or newer
4737
ia64*) tmp_idyn=' -i_dynamic';;
4739
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4740
_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'
4743
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4744
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4745
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4746
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4749
# Portland Group C++ compiler
4750
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4751
_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'
4753
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4754
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4755
_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'
4759
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4760
_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'
4762
runpath_var=LD_RUN_PATH
4763
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4764
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4766
# Commands to make compiler produce verbose output that lists
4767
# what "hidden" libraries, object files and flags are used when
4768
# linking a shared library.
4770
# There doesn't appear to be a way to prevent this compiler from
4771
# explicitly linking system object files so we need to strip them
4772
# from the output so that they don't get included in the library
4774
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'
4779
# FIXME: insert proper C++ library support
4780
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4783
# FIXME: insert proper C++ library support
4784
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4787
case $cc_basename in
4789
# FIXME: insert proper C++ library support
4790
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4793
# FIXME: insert proper C++ library support
4794
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4799
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4800
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4802
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4803
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4804
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4806
# Workaround some broken pre-1.5 toolchains
4807
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4810
# C++ shared libraries are fairly broken
4811
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4814
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4815
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4816
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4817
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4818
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4819
_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'
4820
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4821
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4823
output_verbose_link_cmd='echo'
4826
case $cc_basename in
4828
# Kuck and Associates, Inc. (KAI) C++ Compiler
4830
# KCC will only create a shared library if the output file
4831
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4832
# to its proper name (with version) after linking.
4833
_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'
4835
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4836
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4838
# Archives containing C++ object files must be created using
4839
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4840
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4844
# Rational C++ 2.4.1
4845
# FIXME: insert proper C++ library support
4846
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4849
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4850
_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'
4852
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4853
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4855
# Commands to make compiler produce verbose output that lists
4856
# what "hidden" libraries, object files and flags are used when
4857
# linking a shared library.
4859
# There doesn't appear to be a way to prevent this compiler from
4860
# explicitly linking system object files so we need to strip them
4861
# from the output so that they don't get included in the library
4863
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'
4866
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4867
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4868
_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'
4870
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4871
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4873
# Commands to make compiler produce verbose output that lists
4874
# what "hidden" libraries, object files and flags are used when
4875
# linking a shared library.
4876
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4879
# FIXME: insert proper C++ library support
4880
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4886
case $cc_basename in
4888
# Kuck and Associates, Inc. (KAI) C++ Compiler
4890
# KCC will only create a shared library if the output file
4891
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4892
# to its proper name (with version) after linking.
4893
_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'
4895
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4896
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4898
# Archives containing C++ object files must be created using
4899
# the KAI C++ compiler.
4900
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4903
# Rational C++ 2.4.1
4904
# FIXME: insert proper C++ library support
4905
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4908
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4909
_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'
4910
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4911
echo "-hidden">> $lib.exp~
4912
$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~
4915
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4916
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4918
# Commands to make compiler produce verbose output that lists
4919
# what "hidden" libraries, object files and flags are used when
4920
# linking a shared library.
4922
# There doesn't appear to be a way to prevent this compiler from
4923
# explicitly linking system object files so we need to strip them
4924
# from the output so that they don't get included in the library
4926
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'
4929
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4930
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4931
_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'
4933
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4934
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4936
# Commands to make compiler produce verbose output that lists
4937
# what "hidden" libraries, object files and flags are used when
4938
# linking a shared library.
4939
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4942
# FIXME: insert proper C++ library support
4943
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4949
# FIXME: insert proper C++ library support
4950
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4953
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4954
case $cc_basename in
4956
# FIXME: insert proper C++ library support
4957
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4960
# FIXME: insert proper C++ library support
4961
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4966
case $cc_basename in
4969
# FIXME: insert proper C++ library support
4970
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4974
# FIXME: insert proper C++ library support
4975
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4978
# FIXME: insert proper C++ library support
4979
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4984
case $cc_basename in
4986
# Sun C++ 4.2, 5.x and Centerline C++
4987
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4988
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4989
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4990
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4992
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4993
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4995
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4997
# The C++ compiler is used as linker so we must use $wl
4998
# flag to pass the commands to the underlying system
4999
# linker. We must also pass each convience library through
5000
# to the system linker between allextract/defaultextract.
5001
# The C++ compiler will combine linker options so we
5002
# cannot just pass the convience library names through
5004
# Supported since Solaris 2.6 (maybe 2.5.1?)
5005
_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'
5008
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5010
# Commands to make compiler produce verbose output that lists
5011
# what "hidden" libraries, object files and flags are used when
5012
# linking a shared library.
5014
# There doesn't appear to be a way to prevent this compiler from
5015
# explicitly linking system object files so we need to strip them
5016
# from the output so that they don't get included in the library
5018
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5020
# Archives containing C++ object files must be created using
5021
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5022
# necessary to make sure instantiated templates are included
5024
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5027
# Green Hills C++ Compiler
5028
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5030
# The C++ compiler must be used to create the archive.
5031
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5034
# GNU C++ compiler with Solaris linker
5035
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5036
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5037
if $CC --version | grep -v '^2\.7' > /dev/null; then
5038
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5039
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5040
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5042
# Commands to make compiler produce verbose output that lists
5043
# what "hidden" libraries, object files and flags are used when
5044
# linking a shared library.
5045
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5047
# g++ 2.7 appears to require `-G' NOT `-shared' on this
5049
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5050
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5051
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5053
# Commands to make compiler produce verbose output that lists
5054
# what "hidden" libraries, object files and flags are used when
5055
# linking a shared library.
5056
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5059
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5064
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5065
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5068
case $cc_basename in
5070
# NonStop-UX NCC 3.20
5071
# FIXME: insert proper C++ library support
5072
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5075
# FIXME: insert proper C++ library support
5076
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5081
# FIXME: insert proper C++ library support
5082
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5085
# FIXME: insert proper C++ library support
5086
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5089
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5090
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5092
_LT_AC_TAGVAR(GCC, $1)="$GXX"
5093
_LT_AC_TAGVAR(LD, $1)="$LD"
5095
AC_LIBTOOL_POSTDEP_PREDEP($1)
5096
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5097
AC_LIBTOOL_PROG_CC_C_O($1)
5098
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5099
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5100
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5101
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5102
AC_LIBTOOL_SYS_LIB_STRIP
5103
AC_LIBTOOL_DLOPEN_SELF($1)
5105
AC_LIBTOOL_CONFIG($1)
5112
with_gnu_ldcxx=$with_gnu_ld
5113
with_gnu_ld=$lt_save_with_gnu_ld
5114
lt_cv_path_LDCXX=$lt_cv_path_LD
5115
lt_cv_path_LD=$lt_save_path_LD
5116
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5117
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5118
])# AC_LIBTOOL_LANG_CXX_CONFIG
5120
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5121
# ------------------------
5122
# Figure out "hidden" library dependencies from verbose
5123
# compiler output when linking a shared library.
5124
# Parse the compiler output and extract the necessary
5125
# objects, libraries and library flags.
5126
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5127
dnl we can't use the lt_simple_compile_test_code here,
5128
dnl because it contains code intended for an executable,
5129
dnl not a library. It's possible we should let each
5130
dnl tag define a new lt_????_link_test_code variable,
5131
dnl but it's only used here...
5132
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5134
void foo (void) { a = 0; }
5136
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5140
Foo (void) { a = 0; }
5145
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5153
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5156
public void bar (void) {
5162
dnl Parse the compiler output and extract the necessary
5163
dnl objects, libraries and library flags.
5164
if AC_TRY_EVAL(ac_compile); then
5165
# Parse the compiler output and extract the necessary
5166
# objects, libraries and library flags.
5168
# Sentinel used to keep track of whether or not we are before
5169
# the conftest object file.
5170
pre_test_object_deps_done=no
5172
# The `*' in the case matches for architectures that use `case' in
5173
# $output_verbose_cmd can trigger glob expansion during the loop
5174
# eval without this substitution.
5175
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
5177
for p in `eval $output_verbose_link_cmd`; do
5181
# Some compilers place space between "-{L,R}" and the path.
5184
|| test $p = "-R"; then
5191
if test "$pre_test_object_deps_done" = no; then
5194
# Internal compiler library paths should come after those
5195
# provided the user. The postdeps already come after the
5196
# user supplied libs so there is no need to process them.
5197
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5198
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5200
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5203
# The "-l" case would never come before the object being
5204
# linked, so don't bother handling this case.
5207
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5208
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5210
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5216
# This assumes that the test object file only shows up
5217
# once in the compiler output.
5218
if test "$p" = "conftest.$objext"; then
5219
pre_test_object_deps_done=yes
5223
if test "$pre_test_object_deps_done" = no; then
5224
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5225
_LT_AC_TAGVAR(predep_objects, $1)="$p"
5227
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5230
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5231
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
5233
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5238
*) ;; # Ignore the rest.
5246
echo "libtool.m4: error: problem compiling $1 test program"
5249
$rm -f confest.$objext
5251
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5252
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5254
])# AC_LIBTOOL_POSTDEP_PREDEP
5256
# AC_LIBTOOL_LANG_F77_CONFIG
5257
# ------------------------
5258
# Ensure that the configuration vars for the C compiler are
5259
# suitably defined. Those variables are subsequently used by
5260
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5261
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5262
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5263
[AC_REQUIRE([AC_PROG_F77])
5264
AC_LANG_PUSH(Fortran 77)
5266
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5267
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5268
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5269
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5270
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5271
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5272
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5273
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5274
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5275
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5276
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5277
_LT_AC_TAGVAR(module_cmds, $1)=
5278
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5279
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5280
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5281
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5282
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5283
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5285
# Source file extension for f77 test sources.
5288
# Object file extension for compiled f77 test sources.
5290
_LT_AC_TAGVAR(objext, $1)=$objext
5292
# Code to be used in simple compile tests
5293
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5295
# Code to be used in simple link tests
5296
lt_simple_link_test_code=" program t\n end\n"
5298
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5301
# save warnings/boilerplate of simple test code
5302
_LT_COMPILER_BOILERPLATE
5303
_LT_LINKER_BOILERPLATE
5305
# Allow CC to be a program name with arguments.
5309
_LT_AC_TAGVAR(compiler, $1)=$CC
5310
_LT_CC_BASENAME([$compiler])
5312
AC_MSG_CHECKING([if libtool supports shared libraries])
5313
AC_MSG_RESULT([$can_build_shared])
5315
AC_MSG_CHECKING([whether to build shared libraries])
5316
test "$can_build_shared" = "no" && enable_shared=no
5318
# On AIX, shared libraries and static libraries use the same namespace, and
5319
# are all built from PIC.
5322
test "$enable_shared" = yes && enable_static=no
5323
if test -n "$RANLIB"; then
5324
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5325
postinstall_cmds='$RANLIB $lib'
5329
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5330
test "$enable_shared" = yes && enable_static=no
5334
AC_MSG_RESULT([$enable_shared])
5336
AC_MSG_CHECKING([whether to build static libraries])
5337
# Make sure either enable_shared or enable_static is yes.
5338
test "$enable_shared" = yes || enable_static=yes
5339
AC_MSG_RESULT([$enable_static])
5341
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5343
_LT_AC_TAGVAR(GCC, $1)="$G77"
5344
_LT_AC_TAGVAR(LD, $1)="$LD"
5346
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5347
AC_LIBTOOL_PROG_CC_C_O($1)
5348
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5349
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5350
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5351
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5352
AC_LIBTOOL_SYS_LIB_STRIP
5355
AC_LIBTOOL_CONFIG($1)
5359
])# AC_LIBTOOL_LANG_F77_CONFIG
5362
# AC_LIBTOOL_LANG_GCJ_CONFIG
5363
# --------------------------
5364
# Ensure that the configuration vars for the C compiler are
5365
# suitably defined. Those variables are subsequently used by
5366
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5367
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5368
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5371
# Source file extension for Java test sources.
5374
# Object file extension for compiled Java test sources.
5376
_LT_AC_TAGVAR(objext, $1)=$objext
5378
# Code to be used in simple compile tests
5379
lt_simple_compile_test_code="class foo {}\n"
5381
# Code to be used in simple link tests
5382
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5384
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5387
# save warnings/boilerplate of simple test code
5388
_LT_COMPILER_BOILERPLATE
5389
_LT_LINKER_BOILERPLATE
5391
# Allow CC to be a program name with arguments.
5395
_LT_AC_TAGVAR(compiler, $1)=$CC
5396
_LT_CC_BASENAME([$compiler])
5398
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5399
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5401
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5403
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5404
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5405
AC_LIBTOOL_PROG_CC_C_O($1)
5406
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5407
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5408
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5409
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5410
AC_LIBTOOL_SYS_LIB_STRIP
5411
AC_LIBTOOL_DLOPEN_SELF($1)
5413
AC_LIBTOOL_CONFIG($1)
5417
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5420
# AC_LIBTOOL_LANG_RC_CONFIG
5421
# --------------------------
5422
# Ensure that the configuration vars for the Windows resource compiler are
5423
# suitably defined. Those variables are subsequently used by
5424
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5425
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5426
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5429
# Source file extension for RC test sources.
5432
# Object file extension for compiled RC test sources.
5434
_LT_AC_TAGVAR(objext, $1)=$objext
5436
# Code to be used in simple compile tests
5437
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5439
# Code to be used in simple link tests
5440
lt_simple_link_test_code="$lt_simple_compile_test_code"
5442
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5445
# save warnings/boilerplate of simple test code
5446
_LT_COMPILER_BOILERPLATE
5447
_LT_LINKER_BOILERPLATE
5449
# Allow CC to be a program name with arguments.
5453
_LT_AC_TAGVAR(compiler, $1)=$CC
5454
_LT_CC_BASENAME([$compiler])
5455
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5457
AC_LIBTOOL_CONFIG($1)
5461
])# AC_LIBTOOL_LANG_RC_CONFIG
5464
# AC_LIBTOOL_CONFIG([TAGNAME])
5465
# ----------------------------
5466
# If TAGNAME is not passed, then create an initial libtool script
5467
# with a default configuration from the untagged config vars. Otherwise
5468
# add code to config.status for appending the configuration named by
5469
# TAGNAME from the matching tagged config vars.
5470
AC_DEFUN([AC_LIBTOOL_CONFIG],
5471
[# The else clause should only fire when bootstrapping the
5472
# libtool distribution, otherwise you forgot to ship ltmain.sh
5473
# with your package, and you will get complaints that there are
5474
# no rules to generate ltmain.sh.
5475
if test -f "$ltmain"; then
5476
# See if we are running on zsh, and set the options which allow our commands through
5477
# without removal of \ escapes.
5478
if test -n "${ZSH_VERSION+set}" ; then
5479
setopt NO_GLOB_SUBST
5481
# Now quote all the things that may contain metacharacters while being
5482
# careful not to overquote the AC_SUBSTed values. We take copies of the
5483
# variables and quote the copies for generation of the libtool script.
5484
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
5486
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5487
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5488
deplibs_check_method reload_flag reload_cmds need_locks \
5489
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5490
lt_cv_sys_global_symbol_to_c_name_address \
5491
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5492
old_postinstall_cmds old_postuninstall_cmds \
5493
_LT_AC_TAGVAR(compiler, $1) \
5494
_LT_AC_TAGVAR(CC, $1) \
5495
_LT_AC_TAGVAR(LD, $1) \
5496
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5497
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5498
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5499
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5500
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5501
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5502
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5503
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5504
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5505
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5506
_LT_AC_TAGVAR(predep_objects, $1) \
5507
_LT_AC_TAGVAR(postdep_objects, $1) \
5508
_LT_AC_TAGVAR(predeps, $1) \
5509
_LT_AC_TAGVAR(postdeps, $1) \
5510
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5511
_LT_AC_TAGVAR(archive_cmds, $1) \
5512
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5513
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5514
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5515
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5516
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5517
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5518
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5519
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5520
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5521
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5522
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5523
_LT_AC_TAGVAR(module_cmds, $1) \
5524
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5525
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5526
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5527
_LT_AC_TAGVAR(include_expsyms, $1); do
5530
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5531
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5532
_LT_AC_TAGVAR(archive_cmds, $1) | \
5533
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5534
_LT_AC_TAGVAR(module_cmds, $1) | \
5535
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5536
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5537
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5538
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5539
postinstall_cmds | postuninstall_cmds | \
5540
old_postinstall_cmds | old_postuninstall_cmds | \
5541
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5542
# Double-quote double-evaled strings.
5543
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5546
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5552
*'\[$]0 --fallback-echo"')
5553
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5558
[cfgfile="${ofile}T"
5559
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5561
AC_MSG_NOTICE([creating $ofile])],
5564
cat <<__EOF__ >> "$cfgfile"
5568
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5569
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5570
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5572
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5573
# Free Software Foundation, Inc.
5575
# This file is part of GNU Libtool:
5576
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5578
# This program is free software; you can redistribute it and/or modify
5579
# it under the terms of the GNU General Public License as published by
5580
# the Free Software Foundation; either version 2 of the License, or
5581
# (at your option) any later version.
5583
# This program is distributed in the hope that it will be useful, but
5584
# WITHOUT ANY WARRANTY; without even the implied warranty of
5585
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5586
# General Public License for more details.
5588
# You should have received a copy of the GNU General Public License
5589
# along with this program; if not, write to the Free Software
5590
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5592
# As a special exception to the GNU General Public License, if you
5593
# distribute this file as part of a program that contains a
5594
# configuration script generated by Autoconf, you may include it under
5595
# the same distribution terms that you use for the rest of that program.
5597
# A sed program that does not truncate output.
5600
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5601
Xsed="$SED -e 1s/^X//"
5603
# The HP-UX ksh and POSIX shell print the target directory to stdout
5605
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5607
# The names of the tagged configurations supported by this script.
5610
# ### BEGIN LIBTOOL CONFIG],
5611
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5613
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5615
# Shell to use when invoking shell scripts.
5618
# Whether or not to build shared libraries.
5619
build_libtool_libs=$enable_shared
5621
# Whether or not to build static libraries.
5622
build_old_libs=$enable_static
5624
# Whether or not to add -lc for building shared libraries.
5625
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5627
# Whether or not to disallow shared libs when runtime libs are static
5628
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5630
# Whether or not to optimize for fast installation.
5631
fast_install=$enable_fast_install
5634
host_alias=$host_alias
5639
build_alias=$build_alias
5643
# An echo program that does not interpret backslashes.
5648
AR_FLAGS=$lt_AR_FLAGS
5653
# A language-specific compiler.
5654
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5656
# Is the compiler the GNU C compiler?
5657
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5662
# The linker used to build libraries.
5663
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5665
# Whether we need hard or soft links.
5668
# A BSD-compatible nm program.
5671
# A symbol stripping program
5674
# Used to examine libraries when file_magic_cmd begins "file"
5675
MAGIC_CMD=$MAGIC_CMD
5677
# Used on cygwin: DLL creation program.
5680
# Used on cygwin: object dumper.
5683
# Used on cygwin: assembler.
5686
# The name of the directory that contains temporary libtool files.
5689
# How to create reloadable object files.
5690
reload_flag=$lt_reload_flag
5691
reload_cmds=$lt_reload_cmds
5693
# How to pass a linker flag through the compiler.
5694
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5696
# Object file suffix (normally "o").
5699
# Old archive suffix (normally "a").
5702
# Shared library suffix (normally ".so").
5703
shrext_cmds='$shrext_cmds'
5705
# Executable file suffix (normally "").
5708
# Additional compiler flags for building library objects.
5709
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5712
# What is the maximum length of a command?
5713
max_cmd_len=$lt_cv_sys_max_cmd_len
5715
# Does compiler simultaneously support -c and -o options?
5716
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5718
# Must we lock files when doing compilation?
5719
need_locks=$lt_need_locks
5721
# Do we need the lib prefix for modules?
5722
need_lib_prefix=$need_lib_prefix
5724
# Do we need a version for libraries?
5725
need_version=$need_version
5727
# Whether dlopen is supported.
5728
dlopen_support=$enable_dlopen
5730
# Whether dlopen of programs is supported.
5731
dlopen_self=$enable_dlopen_self
5733
# Whether dlopen of statically linked programs is supported.
5734
dlopen_self_static=$enable_dlopen_self_static
5736
# Compiler flag to prevent dynamic linking.
5737
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5739
# Compiler flag to turn off builtin functions.
5740
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5742
# Compiler flag to allow reflexive dlopens.
5743
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5745
# Compiler flag to generate shared objects directly from archives.
5746
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5748
# Compiler flag to generate thread-safe objects.
5749
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5751
# Library versioning type.
5752
version_type=$version_type
5754
# Format of library name prefix.
5755
libname_spec=$lt_libname_spec
5757
# List of archive names. First name is the real one, the rest are links.
5758
# The last name is the one that the linker finds with -lNAME.
5759
library_names_spec=$lt_library_names_spec
5761
# The coded name of the library, if different from the real name.
5762
soname_spec=$lt_soname_spec
5764
# Commands used to build and install an old-style archive.
5766
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5767
old_postinstall_cmds=$lt_old_postinstall_cmds
5768
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5770
# Create an old-style archive from a shared archive.
5771
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5773
# Create a temporary old-style archive to link instead of a shared archive.
5774
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5776
# Commands used to build and install a shared archive.
5777
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5778
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5779
postinstall_cmds=$lt_postinstall_cmds
5780
postuninstall_cmds=$lt_postuninstall_cmds
5782
# Commands used to build a loadable module (assumed same as above if empty)
5783
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5784
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5786
# Commands to strip libraries.
5787
old_striplib=$lt_old_striplib
5788
striplib=$lt_striplib
5790
# Dependencies to place before the objects being linked to create a
5792
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5794
# Dependencies to place after the objects being linked to create a
5796
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5798
# Dependencies to place before the objects being linked to create a
5800
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5802
# Dependencies to place after the objects being linked to create a
5804
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5806
# The library search path used internally by the compiler when linking
5808
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5810
# Method to check whether dependent libraries are shared objects.
5811
deplibs_check_method=$lt_deplibs_check_method
5813
# Command to use when deplibs_check_method == file_magic.
5814
file_magic_cmd=$lt_file_magic_cmd
5816
# Flag that allows shared libraries with undefined symbols to be built.
5817
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5819
# Flag that forces no undefined symbols.
5820
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5822
# Commands used to finish a libtool library installation in a directory.
5823
finish_cmds=$lt_finish_cmds
5825
# Same as above, but a single script fragment to be evaled but not shown.
5826
finish_eval=$lt_finish_eval
5828
# Take the output of nm and produce a listing of raw symbols and C names.
5829
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5831
# Transform the output of nm in a proper C declaration
5832
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5834
# Transform the output of nm in a C name address pair
5835
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5837
# This is the shared library runtime path variable.
5838
runpath_var=$runpath_var
5840
# This is the shared library path variable.
5841
shlibpath_var=$shlibpath_var
5843
# Is shlibpath searched before the hard-coded library search path?
5844
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5846
# How to hardcode a shared library path into an executable.
5847
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5849
# Whether we should hardcode library paths into libraries.
5850
hardcode_into_libs=$hardcode_into_libs
5852
# Flag to hardcode \$libdir into a binary during linking.
5853
# This must work even if \$libdir does not exist.
5854
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5856
# If ld is used when linking, flag to hardcode \$libdir into
5857
# a binary during linking. This must work even if \$libdir does
5859
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5861
# Whether we need a single -rpath flag with a separated argument.
5862
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5864
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5866
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5868
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5870
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5872
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5873
# the resulting binary.
5874
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5876
# Set to yes if building a shared library automatically hardcodes DIR into the library
5877
# and all subsequent libraries and executables linked against it.
5878
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5880
# Variables whose values should be saved in libtool wrapper scripts and
5881
# restored at relink time.
5882
variables_saved_for_relink="$variables_saved_for_relink"
5884
# Whether libtool must link a program against all its dependency libraries.
5885
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5887
# Compile-time system search path for libraries
5888
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5890
# Run-time system search path for libraries
5891
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5893
# Fix the shell variable \$srcfile for the compiler.
5894
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5896
# Set to yes if exported symbols are required.
5897
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5899
# The commands to list exported symbols.
5900
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5902
# The commands to extract the exported symbol list from a shared archive.
5903
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5905
# Symbols that should not be listed in the preloaded symbols.
5906
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5908
# Symbols that must always be exported.
5909
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5912
[# ### END LIBTOOL CONFIG],
5913
[# ### END LIBTOOL TAG CONFIG: $tagname])
5920
cat <<\EOF >> "$cfgfile"
5922
# AIX sometimes has problems with the GCC collect2 program. For some
5923
# reason, if we set the COLLECT_NAMES environment variable, the problems
5924
# vanish in a puff of smoke.
5925
if test "X${COLLECT_NAMES+set}" != Xset; then
5927
export COLLECT_NAMES
5933
# We use sed instead of cat because bash on DJGPP gets confused if
5934
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5935
# text mode, it properly converts lines to CR/LF. This bash problem
5936
# is reportedly fixed, but why not run on old versions too?
5937
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5939
mv -f "$cfgfile" "$ofile" || \
5940
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5944
# If there is no Makefile yet, we rely on a make rule to execute
5945
# `config.status --recheck' to rerun these tests and create the
5946
# libtool script then.
5947
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5948
if test -f "$ltmain_in"; then
5949
test -f Makefile && make "$ltmain"
5952
])# AC_LIBTOOL_CONFIG
5955
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5956
# -------------------------------------------
5957
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5958
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5960
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5962
if test "$GCC" = yes; then
5963
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5965
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5966
lt_cv_prog_compiler_rtti_exceptions,
5967
[-fno-rtti -fno-exceptions], [],
5968
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5970
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5973
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5974
# ---------------------------------
5975
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5976
[AC_REQUIRE([AC_CANONICAL_HOST])
5977
AC_REQUIRE([AC_PROG_NM])
5978
AC_REQUIRE([AC_OBJEXT])
5979
# Check for command to grab the raw symbol name followed by C symbol from nm.
5980
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5981
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5983
# These are sane defaults that work on at least a few old systems.
5984
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5986
# Character class describing NM global symbol codes.
5987
symcode='[[BCDEGRST]]'
5989
# Regexp to match symbols that can be accessed directly from C.
5990
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5992
# Transform an extracted symbol line into a proper C declaration
5993
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5995
# Transform an extracted symbol line into symbol name and symbol address
5996
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'"
5998
# Define system-specific variables.
6003
cygwin* | mingw* | pw32*)
6004
symcode='[[ABCDGISTW]]'
6006
hpux*) # Its linker distinguishes data from code symbols
6007
if test "$host_cpu" = ia64; then
6008
symcode='[[ABCDEGRST]]'
6010
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6011
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'"
6014
if test "$host_cpu" = ia64; then
6015
symcode='[[ABCDGIRSTW]]'
6016
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6017
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'"
6021
symcode='[[BCDEGRST]]'
6024
symcode='[[BCDEGQRST]]'
6030
symcode='[[DFNSTU]]'
6034
# Handle CRLF in mingw tool chain
6038
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6042
# If we're using GNU nm, then use its standard symbol codes.
6043
case `$NM -V 2>&1` in
6044
*GNU* | *'with BFD'*)
6045
symcode='[[ABCDGIRSTW]]' ;;
6048
# Try without a prefix undercore, then with it.
6049
for ac_symprfx in "" "_"; do
6051
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6052
symxfrm="\\1 $ac_symprfx\\2 \\2"
6054
# Write the raw and C identifiers.
6055
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6057
# Check to see that the pipe works correctly.
6061
cat > conftest.$ac_ext <<EOF
6066
void nm_test_func(){}
6070
int main(){nm_test_var='a';nm_test_func();return(0);}
6073
if AC_TRY_EVAL(ac_compile); then
6074
# Now try to grab the symbols.
6076
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6077
# Try sorting and uniquifying the output.
6078
if sort "$nlist" | uniq > "$nlist"T; then
6079
mv -f "$nlist"T "$nlist"
6084
# Make sure that we snagged all the symbols we need.
6085
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6086
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6087
cat <<EOF > conftest.$ac_ext
6093
# Now generate the symbol file.
6094
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6096
cat <<EOF >> conftest.$ac_ext
6097
#if defined (__STDC__) && __STDC__
6098
# define lt_ptr_t void *
6100
# define lt_ptr_t char *
6104
/* The mapping between symbol names and symbols. */
6109
lt_preloaded_symbols[[]] =
6112
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6113
cat <<\EOF >> conftest.$ac_ext
6121
# Now try linking the two files.
6122
mv conftest.$ac_objext conftstm.$ac_objext
6123
lt_save_LIBS="$LIBS"
6124
lt_save_CFLAGS="$CFLAGS"
6125
LIBS="conftstm.$ac_objext"
6126
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6127
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6130
LIBS="$lt_save_LIBS"
6131
CFLAGS="$lt_save_CFLAGS"
6133
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6136
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6139
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6142
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6143
cat conftest.$ac_ext >&5
6145
rm -f conftest* conftst*
6147
# Do not use the global_symbol_pipe unless it works.
6148
if test "$pipe_works" = yes; then
6151
lt_cv_sys_global_symbol_pipe=
6155
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6156
lt_cv_sys_global_symbol_to_cdecl=
6158
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6159
AC_MSG_RESULT(failed)
6163
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6166
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6167
# ---------------------------------------
6168
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6169
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6170
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6171
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6173
AC_MSG_CHECKING([for $compiler option to produce PIC])
6175
# C++ specific cases for pic, static, wl, etc.
6176
if test "$GXX" = yes; then
6177
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6178
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6182
# All AIX code is PIC.
6183
if test "$host_cpu" = ia64; then
6184
# AIX 5 now supports IA64 processor
6185
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6189
# FIXME: we need at least 68020 code to build shared libraries, but
6190
# adding the `-m68020' flag to GCC prevents building anything better,
6192
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6194
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6195
# PIC is the default for these OSes.
6197
mingw* | os2* | pw32*)
6198
# This hack is so that the source file can tell whether it is being
6199
# built for inclusion in a dll (and should export symbols for example).
6200
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6202
darwin* | rhapsody*)
6203
# PIC is the default on this platform
6204
# Common symbols not allowed in MH_DYLIB files
6205
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6208
# DJGPP does not support shared libraries at all
6209
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6212
if test -d /usr/nec; then
6213
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6217
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6223
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6228
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6234
# All AIX code is PIC.
6235
if test "$host_cpu" = ia64; then
6236
# AIX 5 now supports IA64 processor
6237
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6239
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6243
case $cc_basename in
6245
# Green Hills C++ Compiler
6246
# _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"
6251
# PIC is the default on this platform
6252
# Common symbols not allowed in MH_DYLIB files
6253
case $cc_basename in
6255
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6256
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6261
case $cc_basename in
6263
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6266
# Green Hills C++ Compiler
6267
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6273
freebsd* | kfreebsd*-gnu | dragonfly*)
6274
# FreeBSD uses GNU C++
6276
hpux9* | hpux10* | hpux11*)
6277
case $cc_basename in
6279
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6280
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
6281
if test "$host_cpu" != ia64; then
6282
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6286
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6287
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
6293
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6301
irix5* | irix6* | nonstopux*)
6302
case $cc_basename in
6304
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6305
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6306
# CC pic flag -KPIC is the default.
6313
case $cc_basename in
6316
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6317
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6321
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6322
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6323
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6326
# Portland Group C++ compiler.
6327
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6328
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6329
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6333
# Make sure the PIC flag is empty. It appears that all Alpha
6334
# Linux and Compaq Tru64 Unix objects are PIC.
6335
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6336
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6347
case $cc_basename in
6349
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6357
osf3* | osf4* | osf5*)
6358
case $cc_basename in
6360
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6363
# Rational C++ 2.4.1
6364
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6367
# Digital/Compaq C++
6368
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6369
# Make sure the PIC flag is empty. It appears that all Alpha
6370
# Linux and Compaq Tru64 Unix objects are PIC.
6371
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6372
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6381
case $cc_basename in
6383
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6390
case $cc_basename in
6392
# Sun C++ 4.2, 5.x and Centerline C++
6393
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6394
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6395
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6398
# Green Hills C++ Compiler
6399
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6406
case $cc_basename in
6409
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6410
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6414
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6421
case $cc_basename in
6423
# NonStop-UX NCC 3.20
6424
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6435
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6441
if test "$GCC" = yes; then
6442
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6443
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6447
# All AIX code is PIC.
6448
if test "$host_cpu" = ia64; then
6449
# AIX 5 now supports IA64 processor
6450
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6455
# FIXME: we need at least 68020 code to build shared libraries, but
6456
# adding the `-m68020' flag to GCC prevents building anything better,
6458
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6461
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6462
# PIC is the default for these OSes.
6465
mingw* | pw32* | os2*)
6466
# This hack is so that the source file can tell whether it is being
6467
# built for inclusion in a dll (and should export symbols for example).
6468
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6471
darwin* | rhapsody*)
6472
# PIC is the default on this platform
6473
# Common symbols not allowed in MH_DYLIB files
6474
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6478
# Just because we use GCC doesn't mean we suddenly get shared libraries
6479
# on systems that don't support them.
6480
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6485
if test -d /usr/nec; then
6486
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6491
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6498
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6504
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6508
# PORTME Check for flag to pass linker flags through the system compiler.
6511
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6512
if test "$host_cpu" = ia64; then
6513
# AIX 5 now supports IA64 processor
6514
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6516
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6520
# PIC is the default on this platform
6521
# Common symbols not allowed in MH_DYLIB files
6522
case $cc_basename in
6524
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6525
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6530
mingw* | pw32* | os2*)
6531
# This hack is so that the source file can tell whether it is being
6532
# built for inclusion in a dll (and should export symbols for example).
6533
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6536
hpux9* | hpux10* | hpux11*)
6537
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6538
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6545
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6548
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6549
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6552
irix5* | irix6* | nonstopux*)
6553
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6554
# PIC (with -KPIC) is the default.
6555
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6559
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6560
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6564
case $cc_basename in
6566
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6567
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6568
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6570
pgcc* | pgf77* | pgf90*)
6571
# Portland Group compilers (*not* the Pentium gcc compiler,
6572
# which looks to be a dead project)
6573
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6574
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6575
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6578
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6579
# All Alpha code is PIC.
6580
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6585
osf3* | osf4* | osf5*)
6586
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6587
# All OSF/1 code is PIC.
6588
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6592
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
6593
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
6597
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6598
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6599
case $cc_basename in
6601
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6603
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6608
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6609
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6610
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6613
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6614
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6615
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6616
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6620
if test -d /usr/nec ;then
6621
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6622
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6627
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6628
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6632
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6633
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6637
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6642
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6645
# Check to make sure the PIC flag actually works.
6647
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6648
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6649
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6650
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6651
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6653
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6655
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6656
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6659
# For platforms which do not support PIC, -DPIC is meaningless:
6661
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6664
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6670
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6671
# ------------------------------------
6672
# See if the linker supports building shared libraries.
6673
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6674
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6676
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6679
# If we're using GNU nm, then we don't want the "-C" option.
6680
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6681
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6682
_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'
6684
_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'
6688
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6691
_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'
6694
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6699
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6700
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6701
_LT_AC_TAGVAR(archive_cmds, $1)=
6702
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6703
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6704
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6705
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6706
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6707
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6708
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6709
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6710
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6711
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6712
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6713
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6714
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6715
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6716
_LT_AC_TAGVAR(module_cmds, $1)=
6717
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6718
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6719
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6720
# include_expsyms should be a list of space-separated symbols to be *always*
6721
# included in the symbol list
6722
_LT_AC_TAGVAR(include_expsyms, $1)=
6723
# exclude_expsyms can be an extended regexp of symbols to exclude
6724
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6725
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6726
# as well as any symbol that contains `d'.
6727
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6728
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6729
# platforms (ab)use it in PIC code, but their linkers get confused if
6730
# the symbol is explicitly referenced. Since portable code cannot
6731
# rely on this symbol name, it's probably fine to never include it in
6732
# preloaded symbol tables.
6733
extract_expsyms_cmds=
6734
# Just being paranoid about ensuring that cc_basename is set.
6735
_LT_CC_BASENAME([$compiler])
6737
cygwin* | mingw* | pw32*)
6738
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6739
# When not using gcc, we currently assume that we are using
6740
# Microsoft Visual C++.
6741
if test "$GCC" != yes; then
6750
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6751
if test "$with_gnu_ld" = yes; then
6752
# If archive_cmds runs LD, not CC, wlarc should be empty
6755
# Set some defaults for GNU ld with shared library support. These
6756
# are reset later if shared libraries are not supported. Putting them
6757
# here allows them to be overridden if necessary.
6758
runpath_var=LD_RUN_PATH
6759
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6760
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6761
# ancient GNU ld didn't support --whole-archive et. al.
6762
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6763
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6765
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6767
supports_anon_versioning=no
6768
case `$LD -v 2>/dev/null` in
6769
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6770
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6771
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6772
*\ 2.11.*) ;; # other 2.11 versions
6773
*) supports_anon_versioning=yes ;;
6776
# See if GNU ld supports shared libraries.
6778
aix3* | aix4* | aix5*)
6779
# On AIX/PPC, the GNU linker is very broken
6780
if test "$host_cpu" != ia64; then
6781
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6784
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6785
*** to be unable to reliably create shared libraries on AIX.
6786
*** Therefore, libtool is disabling shared libraries support. If you
6787
*** really care for shared libraries, you may want to modify your PATH
6788
*** so that a non-GNU linker is found, and then restart.
6795
_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)'
6796
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6797
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6799
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6800
# that the semantics of dynamic libraries on AmigaOS, at least up
6801
# to version 4, is to share data among multiple programs linked
6802
# with the same dynamic library. Since this doesn't match the
6803
# behavior of shared libraries on other platforms, we can't use
6805
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6809
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6810
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6811
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6812
# support --undefined. This deserves some investigation. FIXME
6813
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6815
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6819
cygwin* | mingw* | pw32*)
6820
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6821
# as there is no search path for DLLs.
6822
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6823
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6824
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6825
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6826
_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'
6828
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6829
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6830
# If the export-symbols file already is a .def file (1st line
6831
# is EXPORTS), use it as is; otherwise, prepend...
6832
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6833
cp $export_symbols $output_objdir/$soname.def;
6835
echo EXPORTS > $output_objdir/$soname.def;
6836
cat $export_symbols >> $output_objdir/$soname.def;
6838
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6840
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6845
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847
case $cc_basename,$host_cpu in
6848
pgcc*) # Portland Group C compiler
6849
_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'
6850
tmp_addflag=' $pic_flag'
6852
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6853
_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'
6854
tmp_addflag=' $pic_flag -Mnomain' ;;
6855
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6856
tmp_addflag=' -i_dynamic' ;;
6857
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6858
tmp_addflag=' -i_dynamic -nofor_main' ;;
6859
ifc* | ifort*) # Intel Fortran compiler
6860
tmp_addflag=' -nofor_main' ;;
6862
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6864
if test $supports_anon_versioning = yes; then
6865
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6866
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6867
$echo "local: *; };" >> $output_objdir/$libname.ver~
6868
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6871
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6876
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6877
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6880
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6881
_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'
6886
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6887
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6890
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6891
*** create shared libraries on Solaris systems. Therefore, libtool
6892
*** is disabling shared libraries support. We urge you to upgrade GNU
6893
*** binutils to release 2.9.1 or newer. Another option is to modify
6894
*** your PATH or compiler configuration so that the native linker is
6895
*** used, and then restart.
6898
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6899
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6900
_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'
6902
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6907
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6909
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6910
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6914
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6915
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6916
_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'
6918
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6923
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6925
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6926
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6927
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6930
# PORTME fill in a description of your system's linker (not GNU ld)
6933
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6934
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6935
_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'
6936
# Note: this linker hardcodes the directories in LIBPATH if there
6937
# are no directories specified by -L.
6938
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6939
if test "$GCC" = yes && test -z "$link_static_flag"; then
6940
# Neither direct hardcoding nor static linking is supported with a
6942
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6947
if test "$host_cpu" = ia64; then
6948
# On IA64, the linker does run time linking by default, so we don't
6949
# have to do anything special.
6950
aix_use_runtimelinking=no
6951
exp_sym_flag='-Bexport'
6954
# If we're using GNU nm, then we don't want the "-C" option.
6955
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6956
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6957
_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'
6959
_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'
6961
aix_use_runtimelinking=no
6963
# Test if we are trying to use run time linking or normal
6964
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6965
# need to do runtime linking.
6966
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6967
for ld_flag in $LDFLAGS; do
6968
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6969
aix_use_runtimelinking=yes
6975
exp_sym_flag='-bexport'
6976
no_entry_flag='-bnoentry'
6979
# When large executables or shared objects are built, AIX ld can
6980
# have problems creating the table of contents. If linking a library
6981
# or program results in "error TOC overflow" add -mminimal-toc to
6982
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6983
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6985
_LT_AC_TAGVAR(archive_cmds, $1)=''
6986
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6987
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6988
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6990
if test "$GCC" = yes; then
6991
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6992
# We only want to do this on AIX 4.2 and lower, the check
6993
# below for broken collect2 doesn't work under 4.3+
6994
collect2name=`${CC} -print-prog-name=collect2`
6995
if test -f "$collect2name" && \
6996
strings "$collect2name" | grep resolve_lib_name >/dev/null
6998
# We have reworked collect2
6999
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7001
# We have old collect2
7002
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7003
# It fails to find uninstalled libraries when the uninstalled
7004
# path is not listed in the libpath. Setting hardcode_minus_L
7005
# to unsupported forces relinking
7006
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7007
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7008
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7011
shared_flag='-shared'
7012
if test "$aix_use_runtimelinking" = yes; then
7013
shared_flag="$shared_flag "'${wl}-G'
7017
if test "$host_cpu" = ia64; then
7018
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7019
# chokes on -Wl,-G. The following line is correct:
7022
if test "$aix_use_runtimelinking" = yes; then
7023
shared_flag='${wl}-G'
7025
shared_flag='${wl}-bM:SRE'
7030
# It seems that -bexpall does not export symbols beginning with
7031
# underscore (_), so it is better to generate a list of symbols to export.
7032
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
7033
if test "$aix_use_runtimelinking" = yes; then
7034
# Warning - without using the other runtime loading flags (-brtl),
7035
# -berok will link without error, but may produce a broken library.
7036
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7037
# Determine the default libpath from the value encoded in an empty executable.
7038
_LT_AC_SYS_LIBPATH_AIX
7039
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7040
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7042
if test "$host_cpu" = ia64; then
7043
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7044
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7045
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7047
# Determine the default libpath from the value encoded in an empty executable.
7048
_LT_AC_SYS_LIBPATH_AIX
7049
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7050
# Warning - without using the other run time loading flags,
7051
# -berok will link without error, but may produce a broken library.
7052
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7053
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7054
# -bexpall does not export symbols beginning with underscore (_)
7055
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
7056
# Exported symbols can be pulled into shared objects from archives
7057
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
7058
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7059
# This is similar to how AIX traditionally builds it's shared libraries.
7060
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7066
_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)'
7067
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7068
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7069
# see comment about different semantics on the GNU ld section
7070
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7074
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7077
cygwin* | mingw* | pw32*)
7078
# When not using gcc, we currently assume that we are using
7079
# Microsoft Visual C++.
7080
# hardcode_libdir_flag_spec is actually meaningless, as there is
7081
# no search path for DLLs.
7082
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7083
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7084
# Tell ltmain to make .lib files, not .a files.
7086
# Tell ltmain to make .dll files, not .so files.
7088
# FIXME: Setting linknames here is a bad hack.
7089
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7090
# The linker will automatically build a .lib file if we build a DLL.
7091
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7092
# FIXME: Should let the user specify the lib program.
7093
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7094
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7095
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7098
darwin* | rhapsody*)
7100
rhapsody* | darwin1.[[012]])
7101
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7104
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7105
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7107
case ${MACOSX_DEPLOYMENT_TARGET} in
7109
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7112
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7118
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7119
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7120
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7121
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7122
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7123
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7124
if test "$GCC" = yes ; then
7125
output_verbose_link_cmd='echo'
7126
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7127
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7128
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7129
_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}'
7130
_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}'
7132
case $cc_basename in
7134
output_verbose_link_cmd='echo'
7135
_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'
7136
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7137
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7138
_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}'
7139
_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}'
7142
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7149
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7150
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7151
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7155
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7158
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7159
# support. Future versions do this automatically, but an explicit c++rt0.o
7160
# does not break anything, and helps significantly (at the cost of a little
7163
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7164
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7165
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7166
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7169
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7171
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7172
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7173
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7174
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7177
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7178
freebsd* | kfreebsd*-gnu | dragonfly*)
7179
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7180
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7181
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7182
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7186
if test "$GCC" = yes; then
7187
_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'
7189
_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'
7191
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7192
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7193
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7195
# hardcode_minus_L: Not really in the search PATH,
7196
# but as the default location of the library.
7197
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7198
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7202
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7205
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7208
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7214
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7217
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7221
if test "$with_gnu_ld" = no; then
7224
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7225
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7226
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7227
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7228
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7231
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7232
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7233
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7235
# hardcode_minus_L: Not really in the search PATH,
7236
# but as the default location of the library.
7237
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7240
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7241
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7242
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7243
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7245
# hardcode_minus_L: Not really in the search PATH,
7246
# but as the default location of the library.
7247
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7253
irix5* | irix6* | nonstopux*)
7254
if test "$GCC" = yes; then
7255
_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'
7257
_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'
7258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7260
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7261
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7262
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7266
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7269
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7271
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7272
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7273
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7277
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7280
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7281
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7285
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7286
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7287
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7288
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7289
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7290
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7291
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7294
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7295
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7296
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7299
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7300
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7307
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7308
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7309
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7310
_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'
7311
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7315
if test "$GCC" = yes; then
7316
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7317
_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'
7319
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7320
_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'
7322
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7323
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7326
osf4* | osf5*) # as osf3* with the addition of -msym flag
7327
if test "$GCC" = yes; then
7328
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7329
_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'
7330
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7332
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7333
_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'
7334
_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~
7335
$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'
7337
# Both c and cxx compiler support -rpath directly
7338
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7340
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7344
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7345
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7346
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7347
runpath_var=LD_RUN_PATH
7348
hardcode_runpath_var=yes
7352
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7353
if test "$GCC" = yes; then
7355
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7356
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7360
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7361
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7362
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7364
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7365
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7367
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7369
# The compiler driver will combine linker options so we
7370
# cannot just pass the convience library names through
7371
# without $wl, iff we do not link with $LD.
7372
# Luckily, gcc supports the same syntax we need for Sun Studio.
7373
# Supported since Solaris 2.6 (maybe 2.5.1?)
7376
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7378
_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' ;;
7381
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7385
if test "x$host_vendor" = xsequent; then
7386
# Use $CC to link under sequent, because it throws in some extra .o
7387
# files that make .init and .fini sections work.
7388
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7390
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7392
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7393
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7394
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7395
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7399
case $host_vendor in
7401
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7405
## LD is ld it makes a PLAMLIB
7406
## CC just makes a GrossModule.
7407
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7408
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7409
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7412
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7416
runpath_var='LD_RUN_PATH'
7417
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7421
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7423
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7427
if test -d /usr/nec; then
7428
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7429
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7430
runpath_var=LD_RUN_PATH
7431
hardcode_runpath_var=yes
7432
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7437
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7438
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7439
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7440
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7441
hardcode_runpath_var=yes
7442
runpath_var=LD_RUN_PATH
7445
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
7446
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
7447
if test "$GCC" = yes; then
7448
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7450
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7452
runpath_var='LD_RUN_PATH'
7453
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7457
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7458
# $CC -shared without GNU ld will not create a library from C++
7459
# object files and a static libstdc++, better avoid it by now
7460
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7461
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7462
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7463
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7464
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7465
runpath_var='LD_RUN_PATH'
7469
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7471
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7475
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7480
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7481
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7483
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7484
if test "$GCC" = yes; then
7485
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7489
# Do we need to explicitly link libc?
7491
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7493
# Assume -lc should be added
7494
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7496
if test "$enable_shared" = yes && test "$GCC" = yes; then
7497
case $_LT_AC_TAGVAR(archive_cmds, $1) in
7499
# FIXME: we may have to deal with multi-command sequences.
7502
# Test whether the compiler implicitly links with -lc since on some
7503
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7504
# to ld, don't add -lc before -lgcc.
7505
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7507
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7509
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7512
libobjs=conftest.$ac_objext
7514
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7520
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7521
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7522
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7524
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7526
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7528
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7530
cat conftest.err 1>&5
7533
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7539
])# AC_LIBTOOL_PROG_LD_SHLIBS
7542
# _LT_AC_FILE_LTDLL_C
7543
# -------------------
7544
# Be careful that the start marker always follows a newline.
7545
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7546
# /* ltdll.c starts here */
7547
# #define WIN32_LEAN_AND_MEAN
7548
# #include <windows.h>
7549
# #undef WIN32_LEAN_AND_MEAN
7550
# #include <stdio.h>
7552
# #ifndef __CYGWIN__
7553
# # ifdef __CYGWIN32__
7554
# # define __CYGWIN__ __CYGWIN32__
7558
# #ifdef __cplusplus
7561
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7562
# #ifdef __cplusplus
7567
# #include <cygwin/cygwin_dll.h>
7568
# DECLARE_CYGWIN_DLL( DllMain );
7570
# HINSTANCE __hDllInstance_base;
7573
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7575
# __hDllInstance_base = hInst;
7578
# /* ltdll.c ends here */
7579
])# _LT_AC_FILE_LTDLL_C
7582
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7583
# ---------------------------------
7584
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7588
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7589
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7590
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7591
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7592
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7593
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7594
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7596
# This is just to silence aclocal about the macro not being used
7597
ifelse([AC_DISABLE_FAST_INSTALL])
7599
AC_DEFUN([LT_AC_PROG_GCJ],
7600
[AC_CHECK_TOOL(GCJ, gcj, no)
7601
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7605
AC_DEFUN([LT_AC_PROG_RC],
7606
[AC_CHECK_TOOL(RC, windres, no)
7609
# NOTE: This macro has been submitted for inclusion into #
7610
# GNU Autoconf as AC_PROG_SED. When it is available in #
7611
# a released version of Autoconf we should remove this #
7612
# macro and use it instead. #
7615
# Check for a fully-functional sed program, that truncates
7616
# as few characters as possible. Prefer GNU sed if found.
7617
AC_DEFUN([LT_AC_PROG_SED],
7618
[AC_MSG_CHECKING([for a sed that does not truncate output])
7619
AC_CACHE_VAL(lt_cv_path_SED,
7620
[# Loop through the user's path and test for sed and gsed.
7621
# Then use that list of sed's as ones to test for truncation.
7622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626
test -z "$as_dir" && as_dir=.
7627
for lt_ac_prog in sed gsed; do
7628
for ac_exec_ext in '' $ac_executable_extensions; do
7629
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7630
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7637
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7638
# along with /bin/sed that truncates output.
7639
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7640
test ! -f $lt_ac_sed && continue
7641
cat /dev/null > conftest.in
7643
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7644
# Check for GNU sed and select it if it is found.
7645
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7646
lt_cv_path_SED=$lt_ac_sed
7650
cat conftest.in conftest.in >conftest.tmp
7651
mv conftest.tmp conftest.in
7652
cp conftest.in conftest.nl
7654
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7655
cmp -s conftest.out conftest.nl || break
7656
# 10000 chars as input seems more than enough
7657
test $lt_ac_count -gt 10 && break
7658
lt_ac_count=`expr $lt_ac_count + 1`
7659
if test $lt_ac_count -gt $lt_ac_max; then
7660
lt_ac_max=$lt_ac_count
7661
lt_cv_path_SED=$lt_ac_sed
7667
AC_MSG_RESULT([$SED])
7670
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7672
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
7674
# This program is free software; you can redistribute it and/or modify
7675
# it under the terms of the GNU General Public License as published by
7676
# the Free Software Foundation; either version 2 of the License, or
7677
# (at your option) any later version.
7679
# This program is distributed in the hope that it will be useful, but
7680
# WITHOUT ANY WARRANTY; without even the implied warranty of
7681
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7682
# General Public License for more details.
7684
# You should have received a copy of the GNU General Public License
7685
# along with this program; if not, write to the Free Software
7686
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7688
# As a special exception to the GNU General Public License, if you
7689
# distribute this file as part of a program that contains a
7690
# configuration script generated by Autoconf, you may include it under
7691
# the same distribution terms that you use for the rest of that program.
7693
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
7694
# ----------------------------------
7695
AC_DEFUN([PKG_PROG_PKG_CONFIG],
7696
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7697
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7698
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7699
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7700
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7702
if test -n "$PKG_CONFIG"; then
7703
_pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
7704
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7705
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7706
AC_MSG_RESULT([yes])
7713
])# PKG_PROG_PKG_CONFIG
7715
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7717
# Check to see whether a particular set of modules exists. Similar
7718
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
7721
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
7722
# this or PKG_CHECK_MODULES is called, or make sure to call
7723
# PKG_CHECK_EXISTS manually
7724
# --------------------------------------------------------------
7725
AC_DEFUN([PKG_CHECK_EXISTS],
7726
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7727
if test -n "$PKG_CONFIG" && \
7728
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7729
m4_ifval([$2], [$2], [:])
7730
m4_ifvaln([$3], [else
7735
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7736
# ---------------------------------------------
7737
m4_define([_PKG_CONFIG],
7738
[if test -n "$PKG_CONFIG"; then
7739
PKG_CHECK_EXISTS([$3],
7740
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7747
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7748
# [ACTION-IF-NOT-FOUND])
7751
# Note that if there is a possibility the first call to
7752
# PKG_CHECK_MODULES might not happen, you should be sure to include an
7753
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7756
# --------------------------------------------------------------
7757
AC_DEFUN([PKG_CHECK_MODULES],
7758
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7759
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7760
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7763
AC_MSG_CHECKING([for $1])
7765
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7766
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7768
if test $pkg_failed = yes; then
7769
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7770
# Put the nasty error message in config.log where it belongs
7771
echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
7773
ifelse([$4], , [AC_MSG_ERROR(dnl
7774
[Package requirements ($2) were not met.
7775
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7776
installed software in a non-standard prefix.
7778
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
7779
to avoid the need to call pkg-config. See the pkg-config man page for
7782
elif test $pkg_failed = untried; then
7783
ifelse([$4], , [AC_MSG_FAILURE(dnl
7784
[The pkg-config script could not be found or is too old. Make sure it
7785
is in your PATH or set the PKG_CONFIG environment variable to the full
7788
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
7789
to avoid the need to call pkg-config. See the pkg-config man page for
7792
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
7795
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7796
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7797
AC_MSG_RESULT([yes])
7798
ifelse([$3], , :, [$3])
7800
])# PKG_CHECK_MODULES
7802
m4_include([acinclude.m4])