132
# Sed substitution that helps us do robust quoting. It backslashifies
133
# metacharacters that are still active within double-quoted strings.
134
Xsed='sed -e 1s/^X//'
135
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
137
# Same as above, but do not quote variable references.
138
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
140
# Sed substitution to delay expansion of an escaped shell variable in a
141
# double_quote_subst'ed string.
142
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
144
# Sed substitution to avoid accidental globbing in evaled expressions
145
no_glob_subst='s/\*/\\\*/g'
150
229
# Global variables:
151
default_ofile=libtool
152
231
can_build_shared=yes
154
233
# All known linkers require a `.a' archive for static linking (except MSVC,
155
234
# which needs '.lib').
157
ltmain="$ac_aux_dir/ltmain.sh"
158
ofile="$default_ofile"
159
237
with_gnu_ld="$lt_cv_prog_gnu_ld"
161
AC_CHECK_TOOL(AR, ar, false)
162
AC_CHECK_TOOL(RANLIB, ranlib, :)
163
AC_CHECK_TOOL(STRIP, strip, :)
166
240
old_CFLAGS="$CFLAGS"
168
242
# Set sane defaults for various variables
169
test -z "$AR" && AR=ar
170
test -z "$AR_FLAGS" && AR_FLAGS=cru
171
test -z "$AS" && AS=as
172
243
test -z "$CC" && CC=cc
173
244
test -z "$LTCC" && LTCC=$CC
174
245
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
175
test -z "$DLLTOOL" && DLLTOOL=dlltool
176
246
test -z "$LD" && LD=ld
177
test -z "$LN_S" && LN_S="ln -s"
178
test -z "$MAGIC_CMD" && MAGIC_CMD=file
179
test -z "$NM" && NM=nm
180
test -z "$SED" && SED=sed
181
test -z "$OBJDUMP" && OBJDUMP=objdump
182
test -z "$RANLIB" && RANLIB=:
183
test -z "$STRIP" && STRIP=:
184
247
test -z "$ac_objext" && ac_objext=o
186
# Determine commands to create old-style static archives.
187
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
188
old_postinstall_cmds='chmod 644 $oldlib'
189
old_postuninstall_cmds=
191
if test -n "$RANLIB"; then
194
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
197
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
200
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
203
249
_LT_CC_BASENAME([$compiler])
205
251
# Only perform the check for file, if the check method requires it
252
test -z "$MAGIC_CMD" && MAGIC_CMD=file
206
253
case $deplibs_check_method in
208
255
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
214
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
215
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
216
enable_win32_dll=yes, enable_win32_dll=no)
218
AC_ARG_ENABLE([libtool-lock],
219
[AC_HELP_STRING([--disable-libtool-lock],
220
[avoid locking (might break parallel builds)])])
221
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
224
[AC_HELP_STRING([--with-pic],
225
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
226
[pic_mode="$withval"],
228
test -z "$pic_mode" && pic_mode=default
230
261
# Use C for the default configuration in the libtool script
232
AC_LIBTOOL_LANG_C_CONFIG
237
# _LT_AC_SYS_COMPILER
262
LT_SUPPORTED_TAG([CC])
264
_LT_LANG_DEFAULT_CONFIG
269
# _LT_PREPARE_SED_QUOTE_VARS
270
# --------------------------
271
# Define a few sed substitution that help us do robust quoting.
272
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
273
[# Backslashify metacharacters that are still active within
274
# double-quoted strings.
275
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
277
# Same as above, but do not quote variable references.
278
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
280
# Sed substitution to delay expansion of an escaped shell variable in a
281
# double_quote_subst'ed string.
282
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
284
# Sed substitution to delay expansion of an escaped single quote.
285
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
287
# Sed substitution to avoid accidental globbing in evaled expressions
288
no_glob_subst='s/\*/\\\*/g'
293
# Note that this code is called both from `configure', and `config.status'
294
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
295
# `config.status' has no value for ac_aux_dir unless we are using Automake,
296
# so we pass a copy along to make sure it has a sensible value anyway.
297
m4_defun([_LT_PROG_LTMAIN],
298
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
299
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
300
ltmain="$ac_aux_dir/ltmain.sh"
305
# So that we can recreate a full libtool script including additional
306
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
307
# in macros and then make a single call at the end using the `libtool'
311
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
312
# ----------------------------------------
313
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
314
m4_define([_LT_CONFIG_LIBTOOL_INIT],
316
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
321
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
324
# _LT_CONFIG_LIBTOOL([COMMANDS])
325
# ------------------------------
326
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
327
m4_define([_LT_CONFIG_LIBTOOL],
329
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
334
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
337
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
338
# -----------------------------------------------------
339
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
340
[_LT_CONFIG_LIBTOOL([$1])
341
_LT_CONFIG_LIBTOOL_INIT([$2])
345
# _LT_FORMAT_COMMENT([COMMENT])
346
# -----------------------------
347
# Add leading comment marks to the start of each line, and a trailing
348
# full-stop to the whole comment if one is not present already.
349
m4_define([_LT_FORMAT_COMMENT],
351
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
352
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
359
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
360
# -------------------------------------------------------------------
361
# CONFIGNAME is the name given to the value in the libtool script.
362
# VARNAME is the (base) name used in the configure script.
363
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
364
# VARNAME. Any other value will be used directly.
365
m4_define([_LT_DECL],
366
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
367
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
368
[m4_ifval([$1], [$1], [$2])])
369
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
371
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
372
lt_dict_add_subkey([lt_decl_dict], [$2],
373
[tagged?], [m4_ifval([$5], [yes], [no])])])
377
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
378
# --------------------------------------------------------
379
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
382
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
383
# ------------------------------------------------
384
m4_define([lt_decl_tag_varnames],
385
[_lt_decl_filter([tagged?], [yes], $@)])
388
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
389
# ---------------------------------------------------------
390
m4_define([_lt_decl_filter],
392
[0], [m4_fatal([$0: too few arguments: $#])],
393
[1], [m4_fatal([$0: too few arguments: $#: $1])],
394
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
395
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
396
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
400
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
401
# --------------------------------------------------
402
m4_define([lt_decl_quote_varnames],
403
[_lt_decl_filter([value], [1], $@)])
406
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
407
# ---------------------------------------------------
408
m4_define([lt_decl_dquote_varnames],
409
[_lt_decl_filter([value], [2], $@)])
412
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
413
# ---------------------------------------------------
414
m4_define([lt_decl_varnames_tagged],
415
[m4_assert([$# <= 2])dnl
416
_$0(m4_quote(m4_default([$1], [[, ]])),
417
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
418
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
419
m4_define([_lt_decl_varnames_tagged],
420
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
423
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
424
# ------------------------------------------------
425
m4_define([lt_decl_all_varnames],
426
[_$0(m4_quote(m4_default([$1], [[, ]])),
428
m4_quote(lt_decl_varnames),
429
m4_quote(m4_shift($@))))[]dnl
431
m4_define([_lt_decl_all_varnames],
432
[lt_join($@, lt_decl_varnames_tagged([$1],
433
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
437
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
438
# ------------------------------------
439
# Quote a variable value, and forward it to `config.status' so that its
440
# declaration there will have the same value as in `configure'. VARNAME
441
# must have a single quote delimited value for this to work.
442
m4_define([_LT_CONFIG_STATUS_DECLARE],
443
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
446
# _LT_CONFIG_STATUS_DECLARATIONS
447
# ------------------------------
448
# We delimit libtool config variables with single quotes, so when
449
# we write them to config.status, we have to be sure to quote all
450
# embedded single quotes properly. In configure, this macro expands
451
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
453
# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
454
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
455
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
456
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
461
# Output comment and list of tags supported by the script
462
m4_defun([_LT_LIBTOOL_TAGS],
463
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
464
available_tags="_LT_TAGS"dnl
468
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
469
# -----------------------------------
470
# Extract the dictionary values for VARNAME (optionally with TAG) and
471
# expand to a commented shell variable setting:
473
# # Some comment about what VAR is for.
474
# visible_name=$lt_internal_name
475
m4_define([_LT_LIBTOOL_DECLARE],
476
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
477
[description])))[]dnl
478
m4_pushdef([_libtool_name],
479
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
480
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
481
[0], [_libtool_name=[$]$1],
482
[1], [_libtool_name=$lt_[]$1],
483
[2], [_libtool_name=$lt_[]$1],
484
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
485
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
489
# _LT_LIBTOOL_CONFIG_VARS
490
# -----------------------
491
# Produce commented declarations of non-tagged libtool config variables
492
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
493
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
494
# section) are produced by _LT_LIBTOOL_TAG_VARS.
495
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
496
[m4_foreach([_lt_var],
497
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
498
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
501
# _LT_LIBTOOL_TAG_VARS(TAG)
502
# -------------------------
503
m4_define([_LT_LIBTOOL_TAG_VARS],
504
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
505
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
508
# _LT_TAGVAR(VARNAME, [TAGNAME])
509
# ------------------------------
510
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
513
# _LT_CONFIG_COMMANDS
238
514
# -------------------
239
AC_DEFUN([_LT_AC_SYS_COMPILER],
515
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
516
# variables for single and double quote escaping we saved from calls
517
# to _LT_DECL, we can put quote escaped variables declarations
518
# into `config.status', and then the shell code to quote escape them in
519
# for loops in `config.status'. Finally, any additional code accumulated
520
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
521
m4_defun([_LT_CONFIG_COMMANDS],
522
[AC_PROVIDE_IFELSE([LT_OUTPUT],
523
dnl If the libtool generation code has been placed in $CONFIG_LT,
524
dnl instead of duplicating it all over again into config.status,
525
dnl then we will have config.status run $CONFIG_LT later, so it
526
dnl needs to know what name is stored there:
527
[AC_CONFIG_COMMANDS([libtool],
528
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
529
dnl If the libtool generation code is destined for config.status,
530
dnl expand the accumulated commands and init code now:
531
[AC_CONFIG_COMMANDS([libtool],
532
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
533
])#_LT_CONFIG_COMMANDS
537
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
540
# The HP-UX ksh and POSIX shell print the target directory to stdout
542
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
544
sed_quote_subst='$sed_quote_subst'
545
double_quote_subst='$double_quote_subst'
546
delay_variable_subst='$delay_variable_subst'
547
_LT_CONFIG_STATUS_DECLARATIONS
550
compiler='$compiler_DEFAULT'
552
# A function that is used when there is no print builtin or printf.
553
func_fallback_echo ()
555
eval 'cat <<_LTECHO_EOF
560
# Quote evaled strings.
561
for var in lt_decl_all_varnames([[ \
562
]], lt_decl_quote_varnames); do
563
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
564
*[[\\\\\\\`\\"\\\$]]*)
565
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
568
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
573
# Double-quote double-evaled strings.
574
for var in lt_decl_all_varnames([[ \
575
]], lt_decl_dquote_varnames); do
576
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
577
*[[\\\\\\\`\\"\\\$]]*)
578
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
581
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
586
_LT_OUTPUT_LIBTOOL_INIT
589
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
590
# ------------------------------------
591
# Generate a child script FILE with all initialization necessary to
592
# reuse the environment learned by the parent script, and make the
593
# file executable. If COMMENT is supplied, it is inserted after the
594
# `#!' sequence but before initialization text begins. After this
595
# macro, additional text can be appended to FILE to form the body of
596
# the child script. The macro ends with non-zero status if the
597
# file could not be fully written (such as if the disk is full).
598
m4_ifdef([AS_INIT_GENERATED],
599
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
600
[m4_defun([_LT_GENERATED_FILE_INIT],
601
[m4_require([AS_PREPARE])]dnl
602
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
604
cat >$1 <<_ASEOF || lt_write_fail=1
606
# Generated by $as_me.
608
SHELL=\${CONFIG_SHELL-$SHELL}
611
cat >>$1 <<\_ASEOF || lt_write_fail=1
614
exec AS_MESSAGE_FD>&1
616
test $lt_write_fail = 0 && chmod +x $1[]dnl
617
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
621
# This macro allows early generation of the libtool script (before
622
# AC_OUTPUT is called), incase it is used in configure for compilation
624
AC_DEFUN([LT_OUTPUT],
625
[: ${CONFIG_LT=./config.lt}
626
AC_MSG_NOTICE([creating $CONFIG_LT])
627
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
628
[# Run this file to recreate a libtool stub with the current configuration.])
630
cat >>"$CONFIG_LT" <<\_LTEOF
632
exec AS_MESSAGE_LOG_FD>>config.log
635
AS_BOX([Running $as_me.])
636
} >&AS_MESSAGE_LOG_FD
639
\`$as_me' creates a local libtool stub from the current configuration,
640
for use in further configure time tests before the real libtool is
643
Usage: $[0] [[OPTIONS]]
645
-h, --help print this help, then exit
646
-V, --version print version number, then exit
647
-q, --quiet do not print progress messages
648
-d, --debug don't remove temporary files
650
Report bugs to <bug-libtool@gnu.org>."
653
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
654
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
655
configured by $[0], generated by m4_PACKAGE_STRING.
657
Copyright (C) 2011 Free Software Foundation, Inc.
658
This config.lt script is free software; the Free Software Foundation
659
gives unlimited permision to copy, distribute and modify it."
664
--version | --v* | -V )
665
echo "$lt_cl_version"; exit 0 ;;
667
echo "$lt_cl_help"; exit 0 ;;
668
--debug | --d* | -d )
670
--quiet | --q* | --silent | --s* | -q )
673
-*) AC_MSG_ERROR([unrecognized option: $[1]
674
Try \`$[0] --help' for more information.]) ;;
676
*) AC_MSG_ERROR([unrecognized argument: $[1]
677
Try \`$[0] --help' for more information.]) ;;
682
if $lt_cl_silent; then
683
exec AS_MESSAGE_FD>/dev/null
687
cat >>"$CONFIG_LT" <<_LTEOF
688
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
691
cat >>"$CONFIG_LT" <<\_LTEOF
692
AC_MSG_NOTICE([creating $ofile])
693
_LT_OUTPUT_LIBTOOL_COMMANDS
696
chmod +x "$CONFIG_LT"
698
# configure is writing to config.log, but config.lt does its own redirection,
699
# appending to config.log, which fails on DOS, as config.log is still kept
700
# open by configure. Here we exec the FD to /dev/null, effectively closing
701
# config.log, so it can be properly (re)opened and appended to by config.lt.
703
test "$silent" = yes &&
704
lt_config_lt_args="$lt_config_lt_args --quiet"
705
exec AS_MESSAGE_LOG_FD>/dev/null
706
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
707
exec AS_MESSAGE_LOG_FD>>config.log
708
$lt_cl_success || AS_EXIT(1)
714
# If TAG is the built-in tag, create an initial libtool script with a
715
# default configuration from the untagged config vars. Otherwise add code
716
# to config.status for appending the configuration named by TAG from the
717
# matching tagged config vars.
718
m4_defun([_LT_CONFIG],
719
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
720
_LT_CONFIG_SAVE_COMMANDS([
721
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
722
m4_if(_LT_TAG, [C], [
723
# See if we are running on zsh, and set the options which allow our
724
# commands through without removal of \ escapes.
725
if test -n "${ZSH_VERSION+set}" ; then
730
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
733
cat <<_LT_EOF >> "$cfgfile"
736
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
737
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
738
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
739
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
744
# ### BEGIN LIBTOOL CONFIG
745
_LT_LIBTOOL_CONFIG_VARS
747
# ### END LIBTOOL CONFIG
753
cat <<\_LT_EOF >> "$cfgfile"
754
# AIX sometimes has problems with the GCC collect2 program. For some
755
# reason, if we set the COLLECT_NAMES environment variable, the problems
756
# vanish in a puff of smoke.
757
if test "X${COLLECT_NAMES+set}" != Xset; then
767
# We use sed instead of cat because bash on DJGPP gets confused if
768
# if finds mixed CR/LF and LF-only lines. Since sed operates in
769
# text mode, it properly converts lines to CR/LF. This bash problem
770
# is reportedly fixed, but why not run on old versions too?
771
sed '$q' "$ltmain" >> "$cfgfile" \
772
|| (rm -f "$cfgfile"; exit 1)
774
_LT_PROG_REPLACE_SHELLFNS
776
mv -f "$cfgfile" "$ofile" ||
777
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
780
[cat <<_LT_EOF >> "$ofile"
782
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
783
dnl in a comment (ie after a #).
784
# ### BEGIN LIBTOOL TAG CONFIG: $1
785
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
786
# ### END LIBTOOL TAG CONFIG: $1
793
TIMESTAMP='$TIMESTAMP'
796
])dnl /_LT_CONFIG_SAVE_COMMANDS
800
# LT_SUPPORTED_TAG(TAG)
801
# ---------------------
802
# Trace this macro to discover what tags are supported by the libtool
803
# --tag option, using:
804
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
805
AC_DEFUN([LT_SUPPORTED_TAG], [])
808
# C support is built-in for now
809
m4_define([_LT_LANG_C_enabled], [])
810
m4_define([_LT_TAGS], [])
815
# Enable libtool support for the given language if not already enabled.
817
[AC_BEFORE([$0], [LT_OUTPUT])dnl
820
[C++], [_LT_LANG(CXX)],
821
[Go], [_LT_LANG(GO)],
822
[Java], [_LT_LANG(GCJ)],
823
[Fortran 77], [_LT_LANG(F77)],
824
[Fortran], [_LT_LANG(FC)],
825
[Windows Resource], [_LT_LANG(RC)],
826
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
828
[m4_fatal([$0: unsupported language: "$1"])])])dnl
835
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
836
[LT_SUPPORTED_TAG([$1])dnl
837
m4_append([_LT_TAGS], [$1 ])dnl
838
m4_define([_LT_LANG_]$1[_enabled], [])dnl
839
_LT_LANG_$1_CONFIG($1)])dnl
843
m4_ifndef([AC_PROG_GO], [
844
# NOTE: This macro has been submitted for inclusion into #
845
# GNU Autoconf as AC_PROG_GO. When it is available in #
846
# a released version of Autoconf we should remove this #
847
# macro and use it instead. #
848
m4_defun([AC_PROG_GO],
850
AC_ARG_VAR([GOC], [Go compiler command])dnl
851
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
852
_AC_ARG_VAR_LDFLAGS()dnl
853
AC_CHECK_TOOL(GOC, gccgo)
854
if test -z "$GOC"; then
855
if test -n "$ac_tool_prefix"; then
856
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
859
if test -z "$GOC"; then
860
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
866
# _LT_LANG_DEFAULT_CONFIG
867
# -----------------------
868
m4_defun([_LT_LANG_DEFAULT_CONFIG],
869
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
871
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
873
AC_PROVIDE_IFELSE([AC_PROG_F77],
875
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
877
AC_PROVIDE_IFELSE([AC_PROG_FC],
879
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
881
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
882
dnl pulling things in needlessly.
883
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
885
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
887
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
889
[m4_ifdef([AC_PROG_GCJ],
890
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
891
m4_ifdef([A][M_PROG_GCJ],
892
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
893
m4_ifdef([LT_PROG_GCJ],
894
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
896
AC_PROVIDE_IFELSE([AC_PROG_GO],
898
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
900
AC_PROVIDE_IFELSE([LT_PROG_RC],
902
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
903
])# _LT_LANG_DEFAULT_CONFIG
906
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
907
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
908
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
909
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
910
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
911
dnl aclocal-1.4 backwards compatibility:
912
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
913
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
914
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
915
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
916
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
921
m4_defun([_LT_TAG_COMPILER],
240
922
[AC_REQUIRE([AC_PROG_CC])dnl
924
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
925
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
926
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
927
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
242
929
# If no C compiler was specified, use CC.
243
930
LTCC=${LTCC-"$CC"}
283
955
# ----------------------
284
956
# Check for linker boilerplate output or warnings with
285
957
# the simple link test code.
286
AC_DEFUN([_LT_LINKER_BOILERPLATE],
287
[ac_outfile=conftest.$ac_objext
288
printf "$lt_simple_link_test_code" >conftest.$ac_ext
958
m4_defun([_LT_LINKER_BOILERPLATE],
959
[m4_require([_LT_DECL_SED])dnl
960
ac_outfile=conftest.$ac_objext
961
echo "$lt_simple_link_test_code" >conftest.$ac_ext
289
962
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
290
963
_lt_linker_boilerplate=`cat conftest.err`
292
965
])# _LT_LINKER_BOILERPLATE
295
# _LT_AC_SYS_LIBPATH_AIX
296
# ----------------------
967
# _LT_REQUIRED_DARWIN_CHECKS
968
# -------------------------
969
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
972
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
973
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
974
AC_CHECK_TOOL([LIPO], [lipo], [:])
975
AC_CHECK_TOOL([OTOOL], [otool], [:])
976
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
977
_LT_DECL([], [DSYMUTIL], [1],
978
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
979
_LT_DECL([], [NMEDIT], [1],
980
[Tool to change global to local symbols on Mac OS X])
981
_LT_DECL([], [LIPO], [1],
982
[Tool to manipulate fat objects and archives on Mac OS X])
983
_LT_DECL([], [OTOOL], [1],
984
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
985
_LT_DECL([], [OTOOL64], [1],
986
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
988
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
989
[lt_cv_apple_cc_single_mod=no
990
if test -z "${LT_MULTI_MODULE}"; then
991
# By default we will add the -single_module flag. You can override
992
# by either setting the environment variable LT_MULTI_MODULE
993
# non-empty at configure time, or by adding -multi_module to the
995
rm -rf libconftest.dylib*
996
echo "int foo(void){return 1;}" > conftest.c
997
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
998
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
999
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1000
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1002
# If there is a non-empty error log, and "single_module"
1003
# appears in it, assume the flag caused a linker warning
1004
if test -s conftest.err && $GREP single_module conftest.err; then
1005
cat conftest.err >&AS_MESSAGE_LOG_FD
1006
# Otherwise, if the output was created with a 0 exit code from
1007
# the compiler, it worked.
1008
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1009
lt_cv_apple_cc_single_mod=yes
1011
cat conftest.err >&AS_MESSAGE_LOG_FD
1013
rm -rf libconftest.dylib*
1017
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1018
[lt_cv_ld_exported_symbols_list],
1019
[lt_cv_ld_exported_symbols_list=no
1020
save_LDFLAGS=$LDFLAGS
1021
echo "_main" > conftest.sym
1022
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1023
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1024
[lt_cv_ld_exported_symbols_list=yes],
1025
[lt_cv_ld_exported_symbols_list=no])
1026
LDFLAGS="$save_LDFLAGS"
1029
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1030
[lt_cv_ld_force_load=no
1031
cat > conftest.c << _LT_EOF
1032
int forced_loaded() { return 2;}
1034
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1035
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1036
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1037
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1038
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1039
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1040
cat > conftest.c << _LT_EOF
1041
int main() { return 0;}
1043
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1044
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1046
if test -s conftest.err && $GREP force_load conftest.err; then
1047
cat conftest.err >&AS_MESSAGE_LOG_FD
1048
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1049
lt_cv_ld_force_load=yes
1051
cat conftest.err >&AS_MESSAGE_LOG_FD
1053
rm -f conftest.err libconftest.a conftest conftest.c
1054
rm -rf conftest.dSYM
1057
rhapsody* | darwin1.[[012]])
1058
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1060
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1061
darwin*) # darwin 5.x on
1062
# if running on 10.5 or later, the deployment target defaults
1063
# to the OS version, if on x86, and 10.4, the deployment
1064
# target defaults to 10.4. Don't you love it?
1065
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1066
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1067
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1069
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1071
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1075
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1076
_lt_dar_single_mod='$single_module'
1078
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1079
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1081
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1083
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1084
_lt_dsymutil='~$DSYMUTIL $lib || :'
1093
# _LT_DARWIN_LINKER_FEATURES([TAG])
1094
# ---------------------------------
1095
# Checks for linker and compiler features on darwin
1096
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1098
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1099
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
1100
_LT_TAGVAR(hardcode_direct, $1)=no
1101
_LT_TAGVAR(hardcode_automatic, $1)=yes
1102
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1103
if test "$lt_cv_ld_force_load" = "yes"; then
1104
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1105
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1106
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1108
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1110
_LT_TAGVAR(link_all_deplibs, $1)=yes
1111
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1112
case $cc_basename in
1113
ifort*) _lt_dar_can_shared=yes ;;
1114
*) _lt_dar_can_shared=$GCC ;;
1116
if test "$_lt_dar_can_shared" = "yes"; then
1117
output_verbose_link_cmd=func_echo_all
1118
_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1119
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1120
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1121
_LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1123
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1124
_LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1125
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1129
_LT_TAGVAR(ld_shlibs, $1)=no
1133
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1134
# ----------------------------------
297
1135
# Links a minimal program and checks the executable
298
1136
# for the system default hardcoded library path. In most cases,
299
1137
# this is /usr/lib:/lib, but when the MPI compilers are used
300
1138
# the location of the communication and MPI libs are included too.
301
1139
# If we don't find anything, use the default library path according
302
1140
# to the aix ld manual.
303
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
304
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
305
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
307
# Check for a 64-bit object if we didn't find anything.
308
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; }
310
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
311
])# _LT_AC_SYS_LIBPATH_AIX
314
# _LT_AC_SHELL_INIT(ARG)
315
# ----------------------
316
AC_DEFUN([_LT_AC_SHELL_INIT],
317
[ifdef([AC_DIVERSION_NOTICE],
318
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
319
[AC_DIVERT_PUSH(NOTICE)])
322
])# _LT_AC_SHELL_INIT
325
# _LT_AC_PROG_ECHO_BACKSLASH
326
# --------------------------
327
# Add some code to the start of the generated configure script which
328
# will find an echo command which doesn't interpret backslashes.
329
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
331
# Check that we are running under the correct shell.
332
SHELL=${CONFIG_SHELL-/bin/sh}
336
# Remove one level of quotation (which was required for Make).
337
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
342
if test "X[$]1" = X--no-reexec; then
343
# Discard the --no-reexec flag, and continue.
345
elif test "X[$]1" = X--fallback-echo; then
346
# Avoid inline document here, it may be left over
348
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
349
# Yippee, $echo works!
352
# Restart under the correct shell.
353
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
356
if test "X[$]1" = X--fallback-echo; then
357
# used as fallback echo
365
# The HP-UX ksh and POSIX shell print the target directory to stdout
367
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
369
if test -z "$ECHO"; then
370
if test "X${echo_test_string+set}" != Xset; then
371
# find a string as large as possible, as long as the shell can cope with it
372
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
373
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
374
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
375
echo_test_string=`eval $cmd` &&
376
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
383
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
384
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
385
test "X$echo_testing_string" = "X$echo_test_string"; then
388
# The Solaris, AIX, and Digital Unix default echo programs unquote
389
# backslashes. This makes it impossible to quote backslashes using
390
# echo "$something" | sed 's/\\/\\\\/g'
392
# So, first we look for a working echo in the user's PATH.
394
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
395
for dir in $PATH /usr/ucb; do
397
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
398
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
399
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
400
test "X$echo_testing_string" = "X$echo_test_string"; then
407
if test "X$echo" = Xecho; then
408
# We didn't find a better echo, so look for alternatives.
409
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
410
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
411
test "X$echo_testing_string" = "X$echo_test_string"; then
412
# This shell has a builtin print -r that does the trick.
414
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
415
test "X$CONFIG_SHELL" != X/bin/ksh; then
416
# If we have ksh, try running configure again with it.
417
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
418
export ORIGINAL_CONFIG_SHELL
419
CONFIG_SHELL=/bin/ksh
421
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
425
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
426
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
427
test "X$echo_testing_string" = "X$echo_test_string"; then
430
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
431
test "X$echo_testing_string" = 'X\t' &&
432
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
433
test "X$echo_testing_string" = "X$echo_test_string"; then
434
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
436
SHELL="$CONFIG_SHELL"
438
echo="$CONFIG_SHELL [$]0 --fallback-echo"
439
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
440
test "X$echo_testing_string" = 'X\t' &&
441
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
442
test "X$echo_testing_string" = "X$echo_test_string"; then
443
echo="$CONFIG_SHELL [$]0 --fallback-echo"
445
# maybe with a smaller string...
448
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
449
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
456
if test "$prev" != 'sed 50q "[$]0"'; then
457
echo_test_string=`eval $prev`
458
export echo_test_string
459
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
461
# Oops. We lost completely, so just stick with echo.
1141
# Store the results from the different compilers for each TAGNAME.
1142
# Allow to override them for all tags through lt_cv_aix_libpath.
1143
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1144
[m4_require([_LT_DECL_SED])dnl
1145
if test "${lt_cv_aix_libpath+set}" = set; then
1146
aix_libpath=$lt_cv_aix_libpath
1148
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1149
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1150
lt_aix_libpath_sed='[
1151
/Import File Strings/,/^$/ {
1153
s/^0 *\([^ ]*\) *$/\1/
1157
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1158
# Check for a 64-bit object if we didn't find anything.
1159
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1160
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1162
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1163
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
470
# Copy echo and quote the copy suitably for passing to libtool from
471
# the Makefile, instead of quoting the original, which is used later.
473
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
474
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
478
])])# _LT_AC_PROG_ECHO_BACKSLASH
483
AC_DEFUN([_LT_AC_LOCK],
1166
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1168
])# _LT_SYS_MODULE_PATH_AIX
1171
# _LT_SHELL_INIT(ARG)
1172
# -------------------
1173
m4_define([_LT_SHELL_INIT],
1174
[m4_divert_text([M4SH-INIT], [$1
1175
])])# _LT_SHELL_INIT
1179
# _LT_PROG_ECHO_BACKSLASH
1180
# -----------------------
1181
# Find how we can fake an echo command that does not interpret backslash.
1182
# In particular, with Autoconf 2.60 or later we add some code to the start
1183
# of the generated configure script which will find a shell with a builtin
1184
# printf (which we can use as an echo command).
1185
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1186
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1187
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1188
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1190
AC_MSG_CHECKING([how to print strings])
1191
# Test print first, because it will be a builtin if present.
1192
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1193
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1195
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1198
# Use this function as a fallback that always works.
1199
func_fallback_echo ()
1201
eval 'cat <<_LTECHO_EOF
1205
ECHO='func_fallback_echo'
1208
# func_echo_all arg...
1209
# Invoke $ECHO with all args, space-separated.
1216
printf*) AC_MSG_RESULT([printf]) ;;
1217
print*) AC_MSG_RESULT([print -r]) ;;
1218
*) AC_MSG_RESULT([cat]) ;;
1221
m4_ifdef([_AS_DETECT_SUGGESTED],
1222
[_AS_DETECT_SUGGESTED([
1223
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1224
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1225
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1226
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1227
PATH=/empty FPATH=/empty; export PATH FPATH
1228
test "X`printf %s $ECHO`" = "X$ECHO" \
1229
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1231
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1232
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1233
])# _LT_PROG_ECHO_BACKSLASH
1238
AC_DEFUN([_LT_WITH_SYSROOT],
1239
[AC_MSG_CHECKING([for sysroot])
1240
AC_ARG_WITH([sysroot],
1241
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1242
(or the compiler's sysroot if not specified).],
1243
[], [with_sysroot=no])
1245
dnl lt_sysroot will always be passed unquoted. We quote it here
1246
dnl in case the user passed a directory name.
1248
case ${with_sysroot} in #(
1250
if test "$GCC" = yes; then
1251
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1255
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1260
AC_MSG_RESULT([${with_sysroot}])
1261
AC_MSG_ERROR([The sysroot must be an absolute path.])
1265
AC_MSG_RESULT([${lt_sysroot:-no}])
1266
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1267
[dependent libraries, and in which our libraries should be installed.])])
1271
m4_defun([_LT_ENABLE_LOCK],
484
1272
[AC_ARG_ENABLE([libtool-lock],
485
[AC_HELP_STRING([--disable-libtool-lock],
486
[avoid locking (might break parallel builds)])])
1273
[AS_HELP_STRING([--disable-libtool-lock],
1274
[avoid locking (might break parallel builds)])])
487
1275
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
489
1277
# Some flags need to be propagated to the compiler or linker for good
2518
3589
AC_CHECK_LIB(m, cos, LIBM="-lm")
2524
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2525
# -----------------------------------
2526
# sets LIBLTDL to the link flags for the libltdl convenience library and
2527
# LTDLINCL to the include flags for the libltdl header and adds
2528
# --enable-ltdl-convenience to the configure arguments. Note that
2529
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2530
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2531
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2532
# (note the single quotes!). If your package is not flat and you're not
2533
# using automake, define top_builddir and top_srcdir appropriately in
2535
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2536
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2537
case $enable_ltdl_convenience in
2538
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2539
"") enable_ltdl_convenience=yes
2540
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2542
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2543
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2544
# For backwards non-gettext consistent compatibility...
2546
])# AC_LIBLTDL_CONVENIENCE
2549
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2550
# -----------------------------------
2551
# sets LIBLTDL to the link flags for the libltdl installable library and
2552
# LTDLINCL to the include flags for the libltdl header and adds
2553
# --enable-ltdl-install to the configure arguments. Note that
2554
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2555
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2556
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2557
# '${top_srcdir}/' (note the single quotes!). If your package is not
2558
# flat and you're not using automake, define top_builddir and top_srcdir
2559
# appropriately in the Makefiles.
2560
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2561
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2562
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2563
AC_CHECK_LIB(ltdl, lt_dlinit,
2564
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2565
[if test x"$enable_ltdl_install" = xno; then
2566
AC_MSG_WARN([libltdl not installed, but installation disabled])
2568
enable_ltdl_install=yes
2571
if test x"$enable_ltdl_install" = x"yes"; then
2572
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2573
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2574
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2576
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2580
# For backwards non-gettext consistent compatibility...
2582
])# AC_LIBLTDL_INSTALLABLE
2587
# enable support for C++ libraries
2588
AC_DEFUN([AC_LIBTOOL_CXX],
2589
[AC_REQUIRE([_LT_AC_LANG_CXX])
2595
AC_DEFUN([_LT_AC_LANG_CXX],
2596
[AC_REQUIRE([AC_PROG_CXX])
2597
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2598
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2601
# _LT_AC_PROG_CXXCPP
2602
# ------------------
2603
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2605
AC_REQUIRE([AC_PROG_CXX])
2606
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2607
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2608
(test "X$CXX" != "Xg++"))) ; then
2611
])# _LT_AC_PROG_CXXCPP
2615
# enable support for Fortran 77 libraries
2616
AC_DEFUN([AC_LIBTOOL_F77],
2617
[AC_REQUIRE([_LT_AC_LANG_F77])
2623
AC_DEFUN([_LT_AC_LANG_F77],
2624
[AC_REQUIRE([AC_PROG_F77])
2625
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2631
# enable support for GCJ libraries
2632
AC_DEFUN([AC_LIBTOOL_GCJ],
2633
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2639
AC_DEFUN([_LT_AC_LANG_GCJ],
2640
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2641
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2642
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2643
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2644
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2645
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2646
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2652
# enable support for Windows resource files
2653
AC_DEFUN([AC_LIBTOOL_RC],
2654
[AC_REQUIRE([LT_AC_PROG_RC])
2655
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2659
# AC_LIBTOOL_LANG_C_CONFIG
2660
# ------------------------
2661
# Ensure that the configuration vars for the C compiler are
2662
# suitably defined. Those variables are subsequently used by
2663
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2664
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2665
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2669
# Source file extension for C test sources.
2672
# Object file extension for compiled C test sources.
2674
_LT_AC_TAGVAR(objext, $1)=$objext
2676
# Code to be used in simple compile tests
2677
lt_simple_compile_test_code="int some_variable = 0;\n"
2679
# Code to be used in simple link tests
2680
lt_simple_link_test_code='int main(){return(0);}\n'
2684
# save warnings/boilerplate of simple test code
2685
_LT_COMPILER_BOILERPLATE
2686
_LT_LINKER_BOILERPLATE
2688
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2689
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2690
AC_LIBTOOL_PROG_CC_C_O($1)
2691
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2692
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2693
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2694
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2695
AC_LIBTOOL_SYS_LIB_STRIP
2696
AC_LIBTOOL_DLOPEN_SELF
2698
# Report which library types will actually be built
2699
AC_MSG_CHECKING([if libtool supports shared libraries])
2700
AC_MSG_RESULT([$can_build_shared])
2702
AC_MSG_CHECKING([whether to build shared libraries])
2703
test "$can_build_shared" = "no" && enable_shared=no
2705
# On AIX, shared libraries and static libraries use the same namespace, and
2706
# are all built from PIC.
2709
test "$enable_shared" = yes && enable_static=no
2710
if test -n "$RANLIB"; then
2711
archive_cmds="$archive_cmds~\$RANLIB \$lib"
2712
postinstall_cmds='$RANLIB $lib'
2717
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2718
test "$enable_shared" = yes && enable_static=no
2722
AC_MSG_RESULT([$enable_shared])
2724
AC_MSG_CHECKING([whether to build static libraries])
2725
# Make sure either enable_shared or enable_static is yes.
2726
test "$enable_shared" = yes || enable_static=yes
2727
AC_MSG_RESULT([$enable_static])
2729
AC_LIBTOOL_CONFIG($1)
2733
])# AC_LIBTOOL_LANG_C_CONFIG
2736
# AC_LIBTOOL_LANG_CXX_CONFIG
2737
# --------------------------
2738
# Ensure that the configuration vars for the C compiler are
2739
# suitably defined. Those variables are subsequently used by
2740
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2741
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2742
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2744
AC_REQUIRE([AC_PROG_CXX])
2745
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2747
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2748
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2749
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2750
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2751
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2752
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2753
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2754
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2755
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2756
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2757
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2758
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2759
_LT_AC_TAGVAR(module_cmds, $1)=
2760
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2761
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2762
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2763
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2764
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2765
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2767
# Dependencies to place before and after the object being linked:
2768
_LT_AC_TAGVAR(predep_objects, $1)=
2769
_LT_AC_TAGVAR(postdep_objects, $1)=
2770
_LT_AC_TAGVAR(predeps, $1)=
2771
_LT_AC_TAGVAR(postdeps, $1)=
2772
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2774
# Source file extension for C++ test sources.
2777
# Object file extension for compiled C++ test sources.
2779
_LT_AC_TAGVAR(objext, $1)=$objext
2781
# Code to be used in simple compile tests
2782
lt_simple_compile_test_code="int some_variable = 0;\n"
2784
# Code to be used in simple link tests
2785
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2787
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2790
# save warnings/boilerplate of simple test code
2791
_LT_COMPILER_BOILERPLATE
2792
_LT_LINKER_BOILERPLATE
2794
# Allow CC to be a program name with arguments.
2799
lt_save_with_gnu_ld=$with_gnu_ld
2800
lt_save_path_LD=$lt_cv_path_LD
2801
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2802
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2804
$as_unset lt_cv_prog_gnu_ld
2806
if test -n "${lt_cv_path_LDCXX+set}"; then
2807
lt_cv_path_LD=$lt_cv_path_LDCXX
2809
$as_unset lt_cv_path_LD
2811
test -z "${LDCXX+set}" || LD=$LDCXX
2814
_LT_AC_TAGVAR(compiler, $1)=$CC
2815
_LT_CC_BASENAME([$compiler])
2817
# We don't want -fno-exception wen compiling C++ code, so set the
2818
# no_builtin_flag separately
2819
if test "$GXX" = yes; then
2820
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2822
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2825
if test "$GXX" = yes; then
2826
# Set up default GNU C++ configuration
2830
# Check if GNU C++ uses GNU ld as the underlying linker, since the
2831
# archiving commands below assume that GNU ld is being used.
2832
if test "$with_gnu_ld" = yes; then
2833
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2834
_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'
2836
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2837
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2839
# If archive_cmds runs LD, not CC, wlarc should be empty
2840
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2841
# investigate it a little bit more. (MM)
2844
# ancient GNU ld didn't support --whole-archive et. al.
2845
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2846
grep 'no-whole-archive' > /dev/null; then
2847
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2849
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2855
# A generic and very simple default shared library creation
2856
# command for GNU C++ for the case where it uses the native
2857
# linker, instead of GNU ld. If possible, this setting should
2858
# overridden to take advantage of the native linker features on
2859
# the platform it is being used on.
2860
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2863
# Commands to make compiler produce verbose output that lists
2864
# what "hidden" libraries, object files and flags are used when
2865
# linking a shared library.
2866
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2874
# PORTME: fill in a description of your system's C++ link characteristics
2875
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2876
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2879
# FIXME: insert proper C++ library support
2880
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2883
if test "$host_cpu" = ia64; then
2884
# On IA64, the linker does run time linking by default, so we don't
2885
# have to do anything special.
2886
aix_use_runtimelinking=no
2887
exp_sym_flag='-Bexport'
2890
aix_use_runtimelinking=no
2892
# Test if we are trying to use run time linking or normal
2893
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
2894
# need to do runtime linking.
2895
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2896
for ld_flag in $LDFLAGS; do
2899
aix_use_runtimelinking=yes
2907
exp_sym_flag='-bexport'
2908
no_entry_flag='-bnoentry'
2911
# When large executables or shared objects are built, AIX ld can
2912
# have problems creating the table of contents. If linking a library
2913
# or program results in "error TOC overflow" add -mminimal-toc to
2914
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2915
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2917
_LT_AC_TAGVAR(archive_cmds, $1)=''
2918
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2919
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2920
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2922
if test "$GXX" = yes; then
2923
case $host_os in aix4.[[012]]|aix4.[[012]].*)
2924
# We only want to do this on AIX 4.2 and lower, the check
2925
# below for broken collect2 doesn't work under 4.3+
2926
collect2name=`${CC} -print-prog-name=collect2`
2927
if test -f "$collect2name" && \
2928
strings "$collect2name" | grep resolve_lib_name >/dev/null
2930
# We have reworked collect2
2931
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2933
# We have old collect2
2934
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2935
# It fails to find uninstalled libraries when the uninstalled
2936
# path is not listed in the libpath. Setting hardcode_minus_L
2937
# to unsupported forces relinking
2938
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2939
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2940
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2944
shared_flag='-shared'
2945
if test "$aix_use_runtimelinking" = yes; then
2946
shared_flag="$shared_flag "'${wl}-G'
2950
if test "$host_cpu" = ia64; then
2951
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2952
# chokes on -Wl,-G. The following line is correct:
2955
if test "$aix_use_runtimelinking" = yes; then
2956
shared_flag='${wl}-G'
2958
shared_flag='${wl}-bM:SRE'
2963
# It seems that -bexpall does not export symbols beginning with
2964
# underscore (_), so it is better to generate a list of symbols to export.
2965
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2966
if test "$aix_use_runtimelinking" = yes; then
2967
# Warning - without using the other runtime loading flags (-brtl),
2968
# -berok will link without error, but may produce a broken library.
2969
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2970
# Determine the default libpath from the value encoded in an empty executable.
2971
_LT_AC_SYS_LIBPATH_AIX
2972
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2974
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2976
if test "$host_cpu" = ia64; then
2977
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2978
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2979
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
2981
# Determine the default libpath from the value encoded in an empty executable.
2982
_LT_AC_SYS_LIBPATH_AIX
2983
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2984
# Warning - without using the other run time loading flags,
2985
# -berok will link without error, but may produce a broken library.
2986
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2987
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2988
# Exported symbols can be pulled into shared objects from archives
2989
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2990
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2991
# This is similar to how AIX traditionally builds its shared libraries.
2992
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2998
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2999
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3000
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3001
# support --undefined. This deserves some investigation. FIXME
3002
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3004
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3009
case $cc_basename in
3011
# FIXME: insert proper C++ library support
3012
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3017
cygwin* | mingw* | pw32*)
3018
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3019
# as there is no search path for DLLs.
3020
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3021
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3022
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3023
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3025
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3026
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3027
# If the export-symbols file already is a .def file (1st line
3028
# is EXPORTS), use it as is; otherwise, prepend...
3029
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3030
cp $export_symbols $output_objdir/$soname.def;
3032
echo EXPORTS > $output_objdir/$soname.def;
3033
cat $export_symbols >> $output_objdir/$soname.def;
3035
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3037
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3040
darwin* | rhapsody*)
3042
rhapsody* | darwin1.[[012]])
3043
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3046
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3047
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3049
case ${MACOSX_DEPLOYMENT_TARGET} in
3051
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3054
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3060
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3061
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3062
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3063
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3064
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3065
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3067
if test "$GXX" = yes ; then
3068
lt_int_apple_cc_single_mod=no
3069
output_verbose_link_cmd='echo'
3070
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3071
lt_int_apple_cc_single_mod=yes
3073
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3074
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3076
_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'
3078
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3079
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3080
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3081
_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}'
3083
_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}'
3085
_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}'
3087
case $cc_basename in
3089
output_verbose_link_cmd='echo'
3090
_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'
3091
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3092
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3093
_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}'
3094
_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}'
3097
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3104
case $cc_basename in
3106
# FIXME: insert proper C++ library support
3107
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3110
# Green Hills C++ Compiler
3111
# FIXME: insert proper C++ library support
3112
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3115
# FIXME: insert proper C++ library support
3116
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3121
# C++ shared libraries reported to be fairly broken before switch to ELF
3122
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3125
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3127
freebsd* | kfreebsd*-gnu | dragonfly*)
3128
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3130
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3135
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3136
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3137
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3138
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3139
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3140
# but as the default
3141
# location of the library.
3143
case $cc_basename in
3145
# FIXME: insert proper C++ library support
3146
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3149
_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'
3150
# Commands to make compiler produce verbose output that lists
3151
# what "hidden" libraries, object files and flags are used when
3152
# linking a shared library.
3154
# There doesn't appear to be a way to prevent this compiler from
3155
# explicitly linking system object files so we need to strip them
3156
# from the output so that they don't get included in the library
3158
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'
3161
if test "$GXX" = yes; then
3162
_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'
3164
# FIXME: insert proper C++ library support
3165
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3171
if test $with_gnu_ld = no; then
3172
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3173
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3177
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3180
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3186
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3187
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3190
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3191
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3192
# but as the default
3193
# location of the library.
3197
case $cc_basename in
3199
# FIXME: insert proper C++ library support
3200
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3205
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3208
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3211
_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'
3214
# Commands to make compiler produce verbose output that lists
3215
# what "hidden" libraries, object files and flags are used when
3216
# linking a shared library.
3218
# There doesn't appear to be a way to prevent this compiler from
3219
# explicitly linking system object files so we need to strip them
3220
# from the output so that they don't get included in the library
3222
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'
3225
if test "$GXX" = yes; then
3226
if test $with_gnu_ld = no; then
3229
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3232
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3235
_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'
3240
# FIXME: insert proper C++ library support
3241
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3247
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3248
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3249
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3250
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3251
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3252
# Instead, shared libraries are loaded at an image base (0x10000000 by
3253
# default) and relocated if they conflict, which is a slow very memory
3254
# consuming and fragmenting process. To avoid this, we pick a random,
3255
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3256
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3257
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3258
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3261
case $cc_basename in
3264
_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'
3266
# Archives containing C++ object files must be created using
3267
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3268
# necessary to make sure instantiated templates are included
3270
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3273
if test "$GXX" = yes; then
3274
if test "$with_gnu_ld" = no; then
3275
_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'
3277
_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'
3280
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3283
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3284
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3287
case $cc_basename in
3289
# Kuck and Associates, Inc. (KAI) C++ Compiler
3291
# KCC will only create a shared library if the output file
3292
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3293
# to its proper name (with version) after linking.
3294
_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'
3295
_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'
3296
# Commands to make compiler produce verbose output that lists
3297
# what "hidden" libraries, object files and flags are used when
3298
# linking a shared library.
3300
# There doesn't appear to be a way to prevent this compiler from
3301
# explicitly linking system object files so we need to strip them
3302
# from the output so that they don't get included in the library
3304
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'
3306
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3307
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3309
# Archives containing C++ object files must be created using
3310
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3311
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3316
# version 8.0 and above of icpc choke on multiply defined symbols
3317
# if we add $predep_objects and $postdep_objects, however 7.1 and
3318
# earlier do not add the objects themselves.
3319
case `$CC -V 2>&1` in
3321
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3322
_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'
3324
*) # Version 8.0 or newer
3327
ia64*) tmp_idyn=' -i_dynamic';;
3329
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3330
_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'
3333
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3334
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3335
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3336
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3339
# Portland Group C++ compiler
3340
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3341
_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'
3343
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3344
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3345
_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'
3349
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3350
_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'
3352
runpath_var=LD_RUN_PATH
3353
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3354
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3356
# Commands to make compiler produce verbose output that lists
3357
# what "hidden" libraries, object files and flags are used when
3358
# linking a shared library.
3360
# There doesn't appear to be a way to prevent this compiler from
3361
# explicitly linking system object files so we need to strip them
3362
# from the output so that they don't get included in the library
3364
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'
3369
# FIXME: insert proper C++ library support
3370
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3373
# FIXME: insert proper C++ library support
3374
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3377
case $cc_basename in
3379
# FIXME: insert proper C++ library support
3380
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3383
# FIXME: insert proper C++ library support
3384
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3389
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3390
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3392
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3393
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3394
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3396
# Workaround some broken pre-1.5 toolchains
3397
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3400
# C++ shared libraries are fairly broken
3401
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3404
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3405
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3406
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3407
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3408
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3409
_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'
3410
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3411
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3413
output_verbose_link_cmd='echo'
3416
case $cc_basename in
3418
# Kuck and Associates, Inc. (KAI) C++ Compiler
3420
# KCC will only create a shared library if the output file
3421
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3422
# to its proper name (with version) after linking.
3423
_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'
3425
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3426
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3428
# Archives containing C++ object files must be created using
3429
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3430
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3434
# Rational C++ 2.4.1
3435
# FIXME: insert proper C++ library support
3436
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3439
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3440
_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'
3442
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3443
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3445
# Commands to make compiler produce verbose output that lists
3446
# what "hidden" libraries, object files and flags are used when
3447
# linking a shared library.
3449
# There doesn't appear to be a way to prevent this compiler from
3450
# explicitly linking system object files so we need to strip them
3451
# from the output so that they don't get included in the library
3453
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'
3456
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3457
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3458
_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'
3460
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3461
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3463
# Commands to make compiler produce verbose output that lists
3464
# what "hidden" libraries, object files and flags are used when
3465
# linking a shared library.
3466
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3469
# FIXME: insert proper C++ library support
3470
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3476
case $cc_basename in
3478
# Kuck and Associates, Inc. (KAI) C++ Compiler
3480
# KCC will only create a shared library if the output file
3481
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3482
# to its proper name (with version) after linking.
3483
_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'
3485
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3486
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3488
# Archives containing C++ object files must be created using
3489
# the KAI C++ compiler.
3490
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3493
# Rational C++ 2.4.1
3494
# FIXME: insert proper C++ library support
3495
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3498
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3499
_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'
3500
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3501
echo "-hidden">> $lib.exp~
3502
$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~
3505
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3506
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3508
# Commands to make compiler produce verbose output that lists
3509
# what "hidden" libraries, object files and flags are used when
3510
# linking a shared library.
3512
# There doesn't appear to be a way to prevent this compiler from
3513
# explicitly linking system object files so we need to strip them
3514
# from the output so that they don't get included in the library
3516
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'
3519
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3520
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3521
_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'
3523
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3524
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3526
# Commands to make compiler produce verbose output that lists
3527
# what "hidden" libraries, object files and flags are used when
3528
# linking a shared library.
3529
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3532
# FIXME: insert proper C++ library support
3533
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3539
# FIXME: insert proper C++ library support
3540
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3543
case $cc_basename in
3546
# FIXME: insert proper C++ library support
3547
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3551
# FIXME: insert proper C++ library support
3552
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3555
# FIXME: insert proper C++ library support
3556
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3561
case $cc_basename in
3563
# Sun C++ 4.2, 5.x and Centerline C++
3564
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3565
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3566
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3567
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3568
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3570
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3571
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3573
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3575
# The C++ compiler is used as linker so we must use $wl
3576
# flag to pass the commands to the underlying system
3577
# linker. We must also pass each convience library through
3578
# to the system linker between allextract/defaultextract.
3579
# The C++ compiler will combine linker options so we
3580
# cannot just pass the convience library names through
3582
# Supported since Solaris 2.6 (maybe 2.5.1?)
3583
_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'
3586
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3588
output_verbose_link_cmd='echo'
3590
# Archives containing C++ object files must be created using
3591
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3592
# necessary to make sure instantiated templates are included
3594
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3597
# Green Hills C++ Compiler
3598
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3600
# The C++ compiler must be used to create the archive.
3601
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3604
# GNU C++ compiler with Solaris linker
3605
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3606
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3607
if $CC --version | grep -v '^2\.7' > /dev/null; then
3608
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3609
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3610
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3612
# Commands to make compiler produce verbose output that lists
3613
# what "hidden" libraries, object files and flags are used when
3614
# linking a shared library.
3615
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3617
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3619
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3620
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3621
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3623
# Commands to make compiler produce verbose output that lists
3624
# what "hidden" libraries, object files and flags are used when
3625
# linking a shared library.
3626
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3629
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3634
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3635
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3636
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3637
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3638
runpath_var='LD_RUN_PATH'
3640
case $cc_basename in
3642
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3643
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3646
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3647
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3651
sysv5* | sco3.2v5* | sco5v6*)
3652
# Note: We can NOT use -z defs as we might desire, because we do not
3653
# link with -lc, and that would cause any symbols used from libc to
3654
# always be unresolved, which means just about no library would
3655
# ever link correctly. If we're not using GNU ld we use -z text
3656
# though, which does catch some bad symbols but isn't as heavy-handed
3658
# For security reasons, it is highly recommended that you always
3659
# use absolute paths for naming shared libraries, and exclude the
3660
# DT_RUNPATH tag from executables and libraries. But doing so
3661
# requires that you compile everything twice, which is a pain.
3662
# So that behaviour is only enabled if SCOABSPATH is set to a
3663
# non-empty value in the environment. Most likely only useful for
3664
# creating official distributions of packages.
3665
# This is a hack until libtool officially supports absolute path
3666
# names for shared libraries.
3667
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3668
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3669
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3670
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3671
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3672
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3673
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3674
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3675
runpath_var='LD_RUN_PATH'
3677
case $cc_basename in
3679
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3680
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3683
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3684
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3689
case $cc_basename in
3691
# NonStop-UX NCC 3.20
3692
# FIXME: insert proper C++ library support
3693
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3696
# FIXME: insert proper C++ library support
3697
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3702
# FIXME: insert proper C++ library support
3703
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3596
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3597
dnl aclocal-1.4 backwards compatibility:
3598
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3601
# _LT_COMPILER_NO_RTTI([TAGNAME])
3602
# -------------------------------
3603
m4_defun([_LT_COMPILER_NO_RTTI],
3604
[m4_require([_LT_TAG_COMPILER])dnl
3606
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3608
if test "$GCC" = yes; then
3609
case $cc_basename in
3611
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3706
# FIXME: insert proper C++ library support
3707
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3710
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3711
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3713
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3714
_LT_AC_TAGVAR(LD, $1)="$LD"
3716
AC_LIBTOOL_POSTDEP_PREDEP($1)
3717
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3718
AC_LIBTOOL_PROG_CC_C_O($1)
3719
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3720
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3721
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3722
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3724
AC_LIBTOOL_CONFIG($1)
3731
with_gnu_ldcxx=$with_gnu_ld
3732
with_gnu_ld=$lt_save_with_gnu_ld
3733
lt_cv_path_LDCXX=$lt_cv_path_LD
3734
lt_cv_path_LD=$lt_save_path_LD
3735
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3736
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3737
])# AC_LIBTOOL_LANG_CXX_CONFIG
3739
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3740
# ------------------------------------
3741
# Figure out "hidden" library dependencies from verbose
3742
# compiler output when linking a shared library.
3743
# Parse the compiler output and extract the necessary
3744
# objects, libraries and library flags.
3745
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3746
dnl we can't use the lt_simple_compile_test_code here,
3747
dnl because it contains code intended for an executable,
3748
dnl not a library. It's possible we should let each
3749
dnl tag define a new lt_????_link_test_code variable,
3750
dnl but it's only used here...
3751
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3753
void foo (void) { a = 0; }
3755
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3759
Foo (void) { a = 0; }
3764
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3772
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3775
public void bar (void) {
3781
dnl Parse the compiler output and extract the necessary
3782
dnl objects, libraries and library flags.
3783
if AC_TRY_EVAL(ac_compile); then
3784
# Parse the compiler output and extract the necessary
3785
# objects, libraries and library flags.
3787
# Sentinel used to keep track of whether or not we are before
3788
# the conftest object file.
3789
pre_test_object_deps_done=no
3791
# The `*' in the case matches for architectures that use `case' in
3792
# $output_verbose_cmd can trigger glob expansion during the loop
3793
# eval without this substitution.
3794
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3796
for p in `eval $output_verbose_link_cmd`; do
3800
# Some compilers place space between "-{L,R}" and the path.
3803
|| test $p = "-R"; then
3810
if test "$pre_test_object_deps_done" = no; then
3813
# Internal compiler library paths should come after those
3814
# provided the user. The postdeps already come after the
3815
# user supplied libs so there is no need to process them.
3816
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3817
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3819
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3822
# The "-l" case would never come before the object being
3823
# linked, so don't bother handling this case.
3826
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3827
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3829
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3835
# This assumes that the test object file only shows up
3836
# once in the compiler output.
3837
if test "$p" = "conftest.$objext"; then
3838
pre_test_object_deps_done=yes
3842
if test "$pre_test_object_deps_done" = no; then
3843
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3844
_LT_AC_TAGVAR(predep_objects, $1)="$p"
3846
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3849
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3850
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
3852
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3857
*) ;; # Ignore the rest.
3865
echo "libtool.m4: error: problem compiling $1 test program"
3868
$rm -f confest.$objext
3870
# PORTME: override above test on systems where it is broken
3874
# Interix 3.5 installs completely hosed .la files for C++, so rather than
3875
# hack all around it, let's just trust "g++" to DTRT.
3876
_LT_AC_TAGVAR(predep_objects,$1)=
3877
_LT_AC_TAGVAR(postdep_objects,$1)=
3878
_LT_AC_TAGVAR(postdeps,$1)=
3882
case $cc_basename in
3884
# Adding this requires a known-good setup of shared libraries for
3885
# Sun compiler versions before 5.6, else PIC objects from an old
3886
# archive will be linked into the output, leading to subtle bugs.
3887
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3894
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3895
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3897
])# AC_LIBTOOL_POSTDEP_PREDEP
3899
# AC_LIBTOOL_LANG_F77_CONFIG
3900
# --------------------------
3901
# Ensure that the configuration vars for the C compiler are
3902
# suitably defined. Those variables are subsequently used by
3903
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3904
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3905
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3906
[AC_REQUIRE([AC_PROG_F77])
3907
AC_LANG_PUSH(Fortran 77)
3909
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3910
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3911
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3912
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3913
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3914
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3915
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3916
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3917
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3918
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3919
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3920
_LT_AC_TAGVAR(module_cmds, $1)=
3921
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3922
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3923
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3924
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3925
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3926
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3928
# Source file extension for f77 test sources.
3931
# Object file extension for compiled f77 test sources.
3933
_LT_AC_TAGVAR(objext, $1)=$objext
3935
# Code to be used in simple compile tests
3936
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3938
# Code to be used in simple link tests
3939
lt_simple_link_test_code=" program t\n end\n"
3941
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3944
# save warnings/boilerplate of simple test code
3945
_LT_COMPILER_BOILERPLATE
3946
_LT_LINKER_BOILERPLATE
3948
# Allow CC to be a program name with arguments.
3952
_LT_AC_TAGVAR(compiler, $1)=$CC
3953
_LT_CC_BASENAME([$compiler])
3955
AC_MSG_CHECKING([if libtool supports shared libraries])
3956
AC_MSG_RESULT([$can_build_shared])
3958
AC_MSG_CHECKING([whether to build shared libraries])
3959
test "$can_build_shared" = "no" && enable_shared=no
3961
# On AIX, shared libraries and static libraries use the same namespace, and
3962
# are all built from PIC.
3965
test "$enable_shared" = yes && enable_static=no
3966
if test -n "$RANLIB"; then
3967
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3968
postinstall_cmds='$RANLIB $lib'
3972
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3973
test "$enable_shared" = yes && enable_static=no
3977
AC_MSG_RESULT([$enable_shared])
3979
AC_MSG_CHECKING([whether to build static libraries])
3980
# Make sure either enable_shared or enable_static is yes.
3981
test "$enable_shared" = yes || enable_static=yes
3982
AC_MSG_RESULT([$enable_static])
3984
_LT_AC_TAGVAR(GCC, $1)="$G77"
3985
_LT_AC_TAGVAR(LD, $1)="$LD"
3987
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3988
AC_LIBTOOL_PROG_CC_C_O($1)
3989
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3990
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3991
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3992
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3994
AC_LIBTOOL_CONFIG($1)
3998
])# AC_LIBTOOL_LANG_F77_CONFIG
4001
# AC_LIBTOOL_LANG_GCJ_CONFIG
4002
# --------------------------
4003
# Ensure that the configuration vars for the C compiler are
4004
# suitably defined. Those variables are subsequently used by
4005
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4006
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4007
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4010
# Source file extension for Java test sources.
4013
# Object file extension for compiled Java test sources.
4015
_LT_AC_TAGVAR(objext, $1)=$objext
4017
# Code to be used in simple compile tests
4018
lt_simple_compile_test_code="class foo {}\n"
4020
# Code to be used in simple link tests
4021
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4023
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4026
# save warnings/boilerplate of simple test code
4027
_LT_COMPILER_BOILERPLATE
4028
_LT_LINKER_BOILERPLATE
4030
# Allow CC to be a program name with arguments.
4034
_LT_AC_TAGVAR(compiler, $1)=$CC
4035
_LT_CC_BASENAME([$compiler])
4037
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4038
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4040
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4042
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4043
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4044
AC_LIBTOOL_PROG_CC_C_O($1)
4045
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4046
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4047
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4048
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4050
AC_LIBTOOL_CONFIG($1)
4054
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4057
# AC_LIBTOOL_LANG_RC_CONFIG
4058
# -------------------------
4059
# Ensure that the configuration vars for the Windows resource compiler are
4060
# suitably defined. Those variables are subsequently used by
4061
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4062
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4063
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4066
# Source file extension for RC test sources.
4069
# Object file extension for compiled RC test sources.
4071
_LT_AC_TAGVAR(objext, $1)=$objext
4073
# Code to be used in simple compile tests
4074
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4076
# Code to be used in simple link tests
4077
lt_simple_link_test_code="$lt_simple_compile_test_code"
4079
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4082
# save warnings/boilerplate of simple test code
4083
_LT_COMPILER_BOILERPLATE
4084
_LT_LINKER_BOILERPLATE
4086
# Allow CC to be a program name with arguments.
4090
_LT_AC_TAGVAR(compiler, $1)=$CC
4091
_LT_CC_BASENAME([$compiler])
4092
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4094
AC_LIBTOOL_CONFIG($1)
4098
])# AC_LIBTOOL_LANG_RC_CONFIG
4101
# AC_LIBTOOL_CONFIG([TAGNAME])
4102
# ----------------------------
4103
# If TAGNAME is not passed, then create an initial libtool script
4104
# with a default configuration from the untagged config vars. Otherwise
4105
# add code to config.status for appending the configuration named by
4106
# TAGNAME from the matching tagged config vars.
4107
AC_DEFUN([AC_LIBTOOL_CONFIG],
4108
[# The else clause should only fire when bootstrapping the
4109
# libtool distribution, otherwise you forgot to ship ltmain.sh
4110
# with your package, and you will get complaints that there are
4111
# no rules to generate ltmain.sh.
4112
if test -f "$ltmain"; then
4113
# See if we are running on zsh, and set the options which allow our commands through
4114
# without removal of \ escapes.
4115
if test -n "${ZSH_VERSION+set}" ; then
4116
setopt NO_GLOB_SUBST
4118
# Now quote all the things that may contain metacharacters while being
4119
# careful not to overquote the AC_SUBSTed values. We take copies of the
4120
# variables and quote the copies for generation of the libtool script.
4121
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4123
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4124
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4125
deplibs_check_method reload_flag reload_cmds need_locks \
4126
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4127
lt_cv_sys_global_symbol_to_c_name_address \
4128
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4129
old_postinstall_cmds old_postuninstall_cmds \
4130
_LT_AC_TAGVAR(compiler, $1) \
4131
_LT_AC_TAGVAR(CC, $1) \
4132
_LT_AC_TAGVAR(LD, $1) \
4133
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4134
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4135
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4136
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4137
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4138
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4139
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4140
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4141
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4142
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4143
_LT_AC_TAGVAR(predep_objects, $1) \
4144
_LT_AC_TAGVAR(postdep_objects, $1) \
4145
_LT_AC_TAGVAR(predeps, $1) \
4146
_LT_AC_TAGVAR(postdeps, $1) \
4147
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4148
_LT_AC_TAGVAR(archive_cmds, $1) \
4149
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4150
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4151
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4152
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4153
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4154
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4155
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4156
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4157
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4158
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4159
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4160
_LT_AC_TAGVAR(module_cmds, $1) \
4161
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4162
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4163
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4164
_LT_AC_TAGVAR(include_expsyms, $1); do
4167
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4168
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4169
_LT_AC_TAGVAR(archive_cmds, $1) | \
4170
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4171
_LT_AC_TAGVAR(module_cmds, $1) | \
4172
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4173
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4174
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4175
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4176
postinstall_cmds | postuninstall_cmds | \
4177
old_postinstall_cmds | old_postuninstall_cmds | \
4178
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4179
# Double-quote double-evaled strings.
4180
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4183
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4189
*'\[$]0 --fallback-echo"')
4190
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4195
[cfgfile="${ofile}T"
4196
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4198
AC_MSG_NOTICE([creating $ofile])],
4201
cat <<__EOF__ >> "$cfgfile"
4205
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4206
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4207
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4209
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4210
# Free Software Foundation, Inc.
4212
# This file is part of GNU Libtool:
4213
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4215
# This program is free software; you can redistribute it and/or modify
4216
# it under the terms of the GNU General Public License as published by
4217
# the Free Software Foundation; either version 2 of the License, or
4218
# (at your option) any later version.
4220
# This program is distributed in the hope that it will be useful, but
4221
# WITHOUT ANY WARRANTY; without even the implied warranty of
4222
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4223
# General Public License for more details.
4225
# You should have received a copy of the GNU General Public License
4226
# along with this program; if not, write to the Free Software
4227
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4229
# As a special exception to the GNU General Public License, if you
4230
# distribute this file as part of a program that contains a
4231
# configuration script generated by Autoconf, you may include it under
4232
# the same distribution terms that you use for the rest of that program.
4234
# A sed program that does not truncate output.
4237
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4238
Xsed="$SED -e 1s/^X//"
4240
# The HP-UX ksh and POSIX shell print the target directory to stdout
4242
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4244
# The names of the tagged configurations supported by this script.
4247
# ### BEGIN LIBTOOL CONFIG],
4248
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4250
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4252
# Shell to use when invoking shell scripts.
4255
# Whether or not to build shared libraries.
4256
build_libtool_libs=$enable_shared
4258
# Whether or not to build static libraries.
4259
build_old_libs=$enable_static
4261
# Whether or not to add -lc for building shared libraries.
4262
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4264
# Whether or not to disallow shared libs when runtime libs are static
4265
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4267
# Whether or not to optimize for fast installation.
4268
fast_install=$enable_fast_install
4271
host_alias=$host_alias
4276
build_alias=$build_alias
4280
# An echo program that does not interpret backslashes.
4285
AR_FLAGS=$lt_AR_FLAGS
4290
# LTCC compiler flags.
4291
LTCFLAGS=$lt_LTCFLAGS
4293
# A language-specific compiler.
4294
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4296
# Is the compiler the GNU C compiler?
4297
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4302
# The linker used to build libraries.
4303
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4305
# Whether we need hard or soft links.
4308
# A BSD-compatible nm program.
4311
# A symbol stripping program
4314
# Used to examine libraries when file_magic_cmd begins "file"
4315
MAGIC_CMD=$MAGIC_CMD
4317
# Used on cygwin: DLL creation program.
4320
# Used on cygwin: object dumper.
4323
# Used on cygwin: assembler.
4326
# The name of the directory that contains temporary libtool files.
4329
# How to create reloadable object files.
4330
reload_flag=$lt_reload_flag
4331
reload_cmds=$lt_reload_cmds
4333
# How to pass a linker flag through the compiler.
4334
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4336
# Object file suffix (normally "o").
4339
# Old archive suffix (normally "a").
4342
# Shared library suffix (normally ".so").
4343
shrext_cmds='$shrext_cmds'
4345
# Executable file suffix (normally "").
4348
# Additional compiler flags for building library objects.
4349
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4352
# What is the maximum length of a command?
4353
max_cmd_len=$lt_cv_sys_max_cmd_len
4355
# Does compiler simultaneously support -c and -o options?
4356
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4358
# Must we lock files when doing compilation?
4359
need_locks=$lt_need_locks
4361
# Do we need the lib prefix for modules?
4362
need_lib_prefix=$need_lib_prefix
4364
# Do we need a version for libraries?
4365
need_version=$need_version
4367
# Whether dlopen is supported.
4368
dlopen_support=$enable_dlopen
4370
# Whether dlopen of programs is supported.
4371
dlopen_self=$enable_dlopen_self
4373
# Whether dlopen of statically linked programs is supported.
4374
dlopen_self_static=$enable_dlopen_self_static
4376
# Compiler flag to prevent dynamic linking.
4377
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4379
# Compiler flag to turn off builtin functions.
4380
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4382
# Compiler flag to allow reflexive dlopens.
4383
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4385
# Compiler flag to generate shared objects directly from archives.
4386
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4388
# Compiler flag to generate thread-safe objects.
4389
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4391
# Library versioning type.
4392
version_type=$version_type
4394
# Format of library name prefix.
4395
libname_spec=$lt_libname_spec
4397
# List of archive names. First name is the real one, the rest are links.
4398
# The last name is the one that the linker finds with -lNAME.
4399
library_names_spec=$lt_library_names_spec
4401
# The coded name of the library, if different from the real name.
4402
soname_spec=$lt_soname_spec
4404
# Commands used to build and install an old-style archive.
4406
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4407
old_postinstall_cmds=$lt_old_postinstall_cmds
4408
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4410
# Create an old-style archive from a shared archive.
4411
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4413
# Create a temporary old-style archive to link instead of a shared archive.
4414
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4416
# Commands used to build and install a shared archive.
4417
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4418
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4419
postinstall_cmds=$lt_postinstall_cmds
4420
postuninstall_cmds=$lt_postuninstall_cmds
4422
# Commands used to build a loadable module (assumed same as above if empty)
4423
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4424
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4426
# Commands to strip libraries.
4427
old_striplib=$lt_old_striplib
4428
striplib=$lt_striplib
4430
# Dependencies to place before the objects being linked to create a
4432
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4434
# Dependencies to place after the objects being linked to create a
4436
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4438
# Dependencies to place before the objects being linked to create a
4440
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4442
# Dependencies to place after the objects being linked to create a
4444
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4446
# The library search path used internally by the compiler when linking
4448
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4450
# Method to check whether dependent libraries are shared objects.
4451
deplibs_check_method=$lt_deplibs_check_method
4453
# Command to use when deplibs_check_method == file_magic.
4454
file_magic_cmd=$lt_file_magic_cmd
4456
# Flag that allows shared libraries with undefined symbols to be built.
4457
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4459
# Flag that forces no undefined symbols.
4460
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4462
# Commands used to finish a libtool library installation in a directory.
4463
finish_cmds=$lt_finish_cmds
4465
# Same as above, but a single script fragment to be evaled but not shown.
4466
finish_eval=$lt_finish_eval
4468
# Take the output of nm and produce a listing of raw symbols and C names.
4469
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4471
# Transform the output of nm in a proper C declaration
4472
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4474
# Transform the output of nm in a C name address pair
4475
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4477
# This is the shared library runtime path variable.
4478
runpath_var=$runpath_var
4480
# This is the shared library path variable.
4481
shlibpath_var=$shlibpath_var
4483
# Is shlibpath searched before the hard-coded library search path?
4484
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4486
# How to hardcode a shared library path into an executable.
4487
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4489
# Whether we should hardcode library paths into libraries.
4490
hardcode_into_libs=$hardcode_into_libs
4492
# Flag to hardcode \$libdir into a binary during linking.
4493
# This must work even if \$libdir does not exist.
4494
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4496
# If ld is used when linking, flag to hardcode \$libdir into
4497
# a binary during linking. This must work even if \$libdir does
4499
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4501
# Whether we need a single -rpath flag with a separated argument.
4502
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4504
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4506
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4508
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4510
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4512
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4513
# the resulting binary.
4514
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4516
# Set to yes if building a shared library automatically hardcodes DIR into the library
4517
# and all subsequent libraries and executables linked against it.
4518
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4520
# Variables whose values should be saved in libtool wrapper scripts and
4521
# restored at relink time.
4522
variables_saved_for_relink="$variables_saved_for_relink"
4524
# Whether libtool must link a program against all its dependency libraries.
4525
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4527
# Compile-time system search path for libraries
4528
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4530
# Run-time system search path for libraries
4531
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4533
# Fix the shell variable \$srcfile for the compiler.
4534
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4536
# Set to yes if exported symbols are required.
4537
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4539
# The commands to list exported symbols.
4540
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4542
# The commands to extract the exported symbol list from a shared archive.
4543
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4545
# Symbols that should not be listed in the preloaded symbols.
4546
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4548
# Symbols that must always be exported.
4549
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4552
[# ### END LIBTOOL CONFIG],
4553
[# ### END LIBTOOL TAG CONFIG: $tagname])
4560
cat <<\EOF >> "$cfgfile"
4562
# AIX sometimes has problems with the GCC collect2 program. For some
4563
# reason, if we set the COLLECT_NAMES environment variable, the problems
4564
# vanish in a puff of smoke.
4565
if test "X${COLLECT_NAMES+set}" != Xset; then
4567
export COLLECT_NAMES
4573
# We use sed instead of cat because bash on DJGPP gets confused if
4574
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4575
# text mode, it properly converts lines to CR/LF. This bash problem
4576
# is reportedly fixed, but why not run on old versions too?
4577
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4579
mv -f "$cfgfile" "$ofile" || \
4580
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4584
# If there is no Makefile yet, we rely on a make rule to execute
4585
# `config.status --recheck' to rerun these tests and create the
4586
# libtool script then.
4587
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4588
if test -f "$ltmain_in"; then
4589
test -f Makefile && make "$ltmain"
4592
])# AC_LIBTOOL_CONFIG
4595
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4596
# -------------------------------------------
4597
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4598
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4600
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4602
if test "$GCC" = yes; then
4603
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4605
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3613
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3616
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4606
3617
lt_cv_prog_compiler_rtti_exceptions,
4607
3618
[-fno-rtti -fno-exceptions], [],
4608
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3619
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4610
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4613
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4614
# ---------------------------------
4615
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4616
[AC_REQUIRE([AC_CANONICAL_HOST])
4617
AC_REQUIRE([AC_PROG_NM])
4618
AC_REQUIRE([AC_OBJEXT])
3621
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3622
[Compiler flag to turn off builtin functions])
3623
])# _LT_COMPILER_NO_RTTI
3626
# _LT_CMD_GLOBAL_SYMBOLS
3627
# ----------------------
3628
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3629
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3630
AC_REQUIRE([AC_PROG_CC])dnl
3631
AC_REQUIRE([AC_PROG_AWK])dnl
3632
AC_REQUIRE([LT_PATH_NM])dnl
3633
AC_REQUIRE([LT_PATH_LD])dnl
3634
m4_require([_LT_DECL_SED])dnl
3635
m4_require([_LT_DECL_EGREP])dnl
3636
m4_require([_LT_TAG_COMPILER])dnl
4619
3638
# Check for command to grab the raw symbol name followed by C symbol from nm.
4620
3639
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4621
3640
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5202
4340
# +Z the default
5205
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4343
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5208
4346
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5209
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4347
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5212
4350
irix5* | irix6* | nonstopux*)
5213
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4351
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5214
4352
# PIC (with -KPIC) is the default.
5215
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5219
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5220
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4353
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4356
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5224
4357
case $cc_basename in
5226
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5227
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5228
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5230
pgcc* | pgf77* | pgf90* | pgf95*)
4358
# old Intel for x86_64 which still supported -KPIC.
4360
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4361
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4362
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4364
# icc used to be incompatible with GCC.
4365
# ICC 10 doesn't accept -KPIC any more.
4367
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4368
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4369
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4371
# Lahey Fortran 8.1.
4373
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4374
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4375
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4378
# NAG Fortran compiler
4379
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4380
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4381
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4383
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5231
4384
# Portland Group compilers (*not* the Pentium gcc compiler,
5232
4385
# which looks to be a dead project)
5233
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5234
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5235
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4386
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4387
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4388
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5238
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4391
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5239
4392
# All Alpha code is PIC.
5240
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4393
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4395
xl* | bgxl* | bgf* | mpixl*)
4396
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4397
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4398
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4399
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4402
case `$CC -V 2>&1 | sed 5q` in
4403
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4404
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4405
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4406
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4407
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4409
*Sun\ F* | *Sun*Fortran*)
4410
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4411
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4412
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4416
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4417
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4418
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4420
*Intel*\ [[CF]]*Compiler*)
4421
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4422
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4423
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4426
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4427
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4428
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4436
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4437
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4441
# QNX uses GNU C++, but need to define -shared option too, otherwise
4443
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5245
4446
osf3* | osf4* | osf5*)
5246
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4447
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5247
4448
# All OSF/1 code is PIC.
5248
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4449
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4453
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5252
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5253
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4457
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4458
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5254
4459
case $cc_basename in
5256
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4460
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4461
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5258
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4463
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5263
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5264
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5265
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4468
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4469
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4470
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5268
4473
sysv4 | sysv4.2uw2* | sysv4.3*)
5269
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5270
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5271
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4474
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4475
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4476
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5275
4480
if test -d /usr/nec ;then
5276
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5277
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4481
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4482
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5281
4486
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5282
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5283
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5284
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4487
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4488
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4489
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5288
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5289
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4493
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4494
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5293
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5294
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4498
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4499
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5298
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4503
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5303
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4509
# For platforms which do not support PIC, -DPIC is meaningless:
4511
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4514
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4518
AC_CACHE_CHECK([for $compiler option to produce PIC],
4519
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4520
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4521
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5306
4524
# Check to make sure the PIC flag actually works.
5308
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5309
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5310
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5311
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5312
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4526
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4527
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4528
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4529
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4530
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5314
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4532
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5316
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5317
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4534
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4535
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5320
# For platforms which do not support PIC, -DPIC is meaningless:
5322
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5325
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4537
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4538
[Additional compiler flags for building library objects])
4540
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4541
[How to pass a linker flag through the compiler])
5330
4543
# Check to make sure the static flag actually works.
5332
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5333
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5334
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4545
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4546
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4547
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5335
4548
$lt_tmp_static_flag,
5337
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5341
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5342
# ------------------------------------
4550
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4551
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4552
[Compiler flag to prevent dynamic linking])
4553
])# _LT_COMPILER_PIC
4556
# _LT_LINKER_SHLIBS([TAGNAME])
4557
# ----------------------------
5343
4558
# See if the linker supports building shared libraries.
5344
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5345
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5347
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4559
m4_defun([_LT_LINKER_SHLIBS],
4560
[AC_REQUIRE([LT_PATH_LD])dnl
4561
AC_REQUIRE([LT_PATH_NM])dnl
4562
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4563
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4564
m4_require([_LT_DECL_EGREP])dnl
4565
m4_require([_LT_DECL_SED])dnl
4566
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4567
m4_require([_LT_TAG_COMPILER])dnl
4568
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4569
m4_if([$1], [CXX], [
4570
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4571
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5348
4572
case $host_os in
5350
4574
# If we're using GNU nm, then we don't want the "-C" option.
5351
4575
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5352
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5353
_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'
4576
# Also, AIX nm treats weak defined symbols like other global defined
4577
# symbols, whereas GNU nm marks them as "W".
4578
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4579
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5355
_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'
4581
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5359
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5362
_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'
4585
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4587
cygwin* | mingw* | cegcc*)
4588
case $cc_basename in
4590
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4593
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4594
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5365
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4599
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5370
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5371
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5372
_LT_AC_TAGVAR(archive_cmds, $1)=
5373
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5374
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5375
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5376
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5377
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5378
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5379
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5380
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5381
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5382
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5383
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5384
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5385
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5386
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5387
_LT_AC_TAGVAR(module_cmds, $1)=
5388
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5389
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5390
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4604
_LT_TAGVAR(allow_undefined_flag, $1)=
4605
_LT_TAGVAR(always_export_symbols, $1)=no
4606
_LT_TAGVAR(archive_cmds, $1)=
4607
_LT_TAGVAR(archive_expsym_cmds, $1)=
4608
_LT_TAGVAR(compiler_needs_object, $1)=no
4609
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4610
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4611
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4612
_LT_TAGVAR(hardcode_automatic, $1)=no
4613
_LT_TAGVAR(hardcode_direct, $1)=no
4614
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4615
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4616
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4617
_LT_TAGVAR(hardcode_minus_L, $1)=no
4618
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4619
_LT_TAGVAR(inherit_rpath, $1)=no
4620
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4621
_LT_TAGVAR(module_cmds, $1)=
4622
_LT_TAGVAR(module_expsym_cmds, $1)=
4623
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4624
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4625
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4626
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5391
4627
# include_expsyms should be a list of space-separated symbols to be *always*
5392
4628
# included in the symbol list
5393
_LT_AC_TAGVAR(include_expsyms, $1)=
4629
_LT_TAGVAR(include_expsyms, $1)=
5394
4630
# exclude_expsyms can be an extended regexp of symbols to exclude
5395
4631
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5396
4632
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5397
4633
# as well as any symbol that contains `d'.
5398
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
4634
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5399
4635
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5400
4636
# platforms (ab)use it in PIC code, but their linkers get confused if
5401
4637
# the symbol is explicitly referenced. Since portable code cannot
5402
4638
# rely on this symbol name, it's probably fine to never include it in
5403
4639
# preloaded symbol tables.
4640
# Exclude shared library initialization/finalization symbols.
4641
dnl Note also adjust exclude_expsyms for C++ above.
5404
4642
extract_expsyms_cmds=
5405
# Just being paranoid about ensuring that cc_basename is set.
5406
_LT_CC_BASENAME([$compiler])
5407
4644
case $host_os in
5408
cygwin* | mingw* | pw32*)
4645
cygwin* | mingw* | pw32* | cegcc*)
5409
4646
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5410
4647
# When not using gcc, we currently assume that we are using
5411
4648
# Microsoft Visual C++.
5985
5324
irix5* | irix6* | nonstopux*)
5986
5325
if test "$GCC" = yes; then
5987
_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'
5326
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5327
# Try to use the -exported_symbol ld option, if it does not
5328
# work, assume that -exports_file does not work either and
5329
# implicitly export all symbols.
5330
# This should be the same for all languages, so no per-tag cache variable.
5331
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5332
[lt_cv_irix_exported_symbol],
5333
[save_LDFLAGS="$LDFLAGS"
5334
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5337
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5338
[C++], [[int foo (void) { return 0; }]],
5345
[lt_cv_irix_exported_symbol=yes],
5346
[lt_cv_irix_exported_symbol=no])
5347
LDFLAGS="$save_LDFLAGS"])
5348
if test "$lt_cv_irix_exported_symbol" = yes; then
5349
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5989
_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'
5990
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5352
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5353
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5992
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5993
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5994
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5355
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5356
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5357
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5358
_LT_TAGVAR(inherit_rpath, $1)=yes
5359
_LT_TAGVAR(link_all_deplibs, $1)=yes
5998
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5999
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5363
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5364
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6001
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5366
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6003
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6004
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6005
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5368
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5369
_LT_TAGVAR(hardcode_direct, $1)=yes
5370
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6009
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6010
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6011
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6012
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6013
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5374
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5375
_LT_TAGVAR(hardcode_direct, $1)=yes
5376
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5377
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5378
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6017
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6018
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6019
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6020
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6021
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6022
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6023
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5385
if test -f /usr/libexec/ld.so; then
5386
_LT_TAGVAR(hardcode_direct, $1)=yes
5387
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5388
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5389
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5390
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5391
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5392
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5393
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5396
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5397
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5398
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5401
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5402
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6026
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6027
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6028
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6031
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6032
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5407
_LT_TAGVAR(ld_shlibs, $1)=no
6039
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6040
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6041
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6042
_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'
6043
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5412
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5413
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5414
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5415
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5416
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6047
5420
if test "$GCC" = yes; then
6048
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6049
_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'
5421
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5422
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6051
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6052
_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'
5424
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5425
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6054
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6055
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5427
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5428
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5429
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6058
5432
osf4* | osf5*) # as osf3* with the addition of -msym flag
6059
5433
if test "$GCC" = yes; then
6060
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6061
_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'
6062
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5434
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5435
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5436
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6064
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6065
_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'
6066
_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~
6067
$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'
5438
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5439
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5440
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5441
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6069
5443
# Both c and cxx compiler support -rpath directly
6070
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5444
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6072
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5446
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5447
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6076
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5451
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6077
5452
if test "$GCC" = yes; then
6079
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6080
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6081
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5454
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5455
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5456
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6084
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6085
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6086
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5458
case `$CC -V 2>&1` in
5461
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5462
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5463
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5467
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5468
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5469
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6088
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6089
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5473
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5474
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6090
5475
case $host_os in
6091
5476
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6093
# The compiler driver will combine linker options so we
6094
# cannot just pass the convience library names through
6095
# without $wl, iff we do not link with $LD.
6096
# Luckily, gcc supports the same syntax we need for Sun Studio.
6097
# Supported since Solaris 2.6 (maybe 2.5.1?)
6100
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6102
_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' ;;
5478
# The compiler driver will combine and reorder linker options,
5479
# but understands `-z linker_flag'. GCC discards it without `$wl',
5480
# but is careful enough not to reorder.
5481
# Supported since Solaris 2.6 (maybe 2.5.1?)
5482
if test "$GCC" = yes; then
5483
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5485
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6105
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5489
_LT_TAGVAR(link_all_deplibs, $1)=yes
6109
5493
if test "x$host_vendor" = xsequent; then
6110
5494
# Use $CC to link under sequent, because it throws in some extra .o
6111
5495
# files that make .init and .fini sections work.
6112
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5496
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6114
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5498
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6116
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6117
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6118
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6119
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5500
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5501
_LT_TAGVAR(hardcode_direct, $1)=yes
5502
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5503
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6123
5507
case $host_vendor in
6125
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6126
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5509
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5510
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6129
5513
## LD is ld it makes a PLAMLIB
6130
5514
## CC just makes a GrossModule.
6131
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6132
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6133
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5515
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5516
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5517
_LT_TAGVAR(hardcode_direct, $1)=no
6136
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6137
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5520
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5521
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6140
5524
runpath_var='LD_RUN_PATH'
6141
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5525
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6145
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6146
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6147
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5529
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5530
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5531
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6151
5535
if test -d /usr/nec; then
6152
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6153
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5536
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5537
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6154
5538
runpath_var=LD_RUN_PATH
6155
5539
hardcode_runpath_var=yes
6156
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5540
_LT_TAGVAR(ld_shlibs, $1)=yes
6160
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6161
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6162
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6163
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5544
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5545
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5546
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5547
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6164
5548
runpath_var='LD_RUN_PATH'
6166
5550
if test "$GCC" = yes; then
6167
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6168
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5551
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5552
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6170
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6171
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5554
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5555
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6230
5629
# Test whether the compiler implicitly links with -lc since on some
6231
5630
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6232
5631
# to ld, don't add -lc before -lgcc.
6233
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6235
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6237
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6240
libobjs=conftest.$ac_objext
6242
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6243
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6249
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6250
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6251
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6253
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5632
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5633
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5635
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5637
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5640
libobjs=conftest.$ac_objext
5642
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5643
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5649
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5650
_LT_TAGVAR(allow_undefined_flag, $1)=
5651
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5653
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5655
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5657
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5659
cat conftest.err 1>&5
5663
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5670
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5671
[Whether or not to add -lc for building shared libraries])
5672
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5673
[enable_shared_with_static_runtimes], [0],
5674
[Whether or not to disallow shared libs when runtime libs are static])
5675
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5676
[Compiler flag to allow reflexive dlopens])
5677
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5678
[Compiler flag to generate shared objects directly from archives])
5679
_LT_TAGDECL([], [compiler_needs_object], [1],
5680
[Whether the compiler copes with passing no objects directly])
5681
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5682
[Create an old-style archive from a shared archive])
5683
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5684
[Create a temporary old-style archive to link instead of a shared archive])
5685
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5686
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5687
_LT_TAGDECL([], [module_cmds], [2],
5688
[Commands used to build a loadable module if different from building
5690
_LT_TAGDECL([], [module_expsym_cmds], [2])
5691
_LT_TAGDECL([], [with_gnu_ld], [1],
5692
[Whether we are building with GNU ld or not])
5693
_LT_TAGDECL([], [allow_undefined_flag], [1],
5694
[Flag that allows shared libraries with undefined symbols to be built])
5695
_LT_TAGDECL([], [no_undefined_flag], [1],
5696
[Flag that enforces no undefined symbols])
5697
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5698
[Flag to hardcode $libdir into a binary during linking.
5699
This must work even if $libdir does not exist])
5700
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5701
[Whether we need a single "-rpath" flag with a separated argument])
5702
_LT_TAGDECL([], [hardcode_direct], [0],
5703
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5704
DIR into the resulting binary])
5705
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5706
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5707
DIR into the resulting binary and the resulting library dependency is
5708
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5709
library is relocated])
5710
_LT_TAGDECL([], [hardcode_minus_L], [0],
5711
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5712
into the resulting binary])
5713
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5714
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5715
into the resulting binary])
5716
_LT_TAGDECL([], [hardcode_automatic], [0],
5717
[Set to "yes" if building a shared library automatically hardcodes DIR
5718
into the library and all subsequent libraries and executables linked
5720
_LT_TAGDECL([], [inherit_rpath], [0],
5721
[Set to yes if linker adds runtime paths of dependent libraries
5722
to runtime path list])
5723
_LT_TAGDECL([], [link_all_deplibs], [0],
5724
[Whether libtool must link a program against all its dependency libraries])
5725
_LT_TAGDECL([], [always_export_symbols], [0],
5726
[Set to "yes" if exported symbols are required])
5727
_LT_TAGDECL([], [export_symbols_cmds], [2],
5728
[The commands to list exported symbols])
5729
_LT_TAGDECL([], [exclude_expsyms], [1],
5730
[Symbols that should not be listed in the preloaded symbols])
5731
_LT_TAGDECL([], [include_expsyms], [1],
5732
[Symbols that must always be exported])
5733
_LT_TAGDECL([], [prelink_cmds], [2],
5734
[Commands necessary for linking programs (against libraries) with templates])
5735
_LT_TAGDECL([], [postlink_cmds], [2],
5736
[Commands necessary for finishing linking programs])
5737
_LT_TAGDECL([], [file_list_spec], [1],
5738
[Specify filename containing input files])
5739
dnl FIXME: Not yet implemented
5740
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5741
dnl [Compiler flag to generate thread safe objects])
5742
])# _LT_LINKER_SHLIBS
5745
# _LT_LANG_C_CONFIG([TAG])
5746
# ------------------------
5747
# Ensure that the configuration variables for a C compiler are suitably
5748
# defined. These variables are subsequently used by _LT_CONFIG to write
5749
# the compiler configuration to `libtool'.
5750
m4_defun([_LT_LANG_C_CONFIG],
5751
[m4_require([_LT_DECL_EGREP])dnl
5755
# Source file extension for C test sources.
5758
# Object file extension for compiled C test sources.
5760
_LT_TAGVAR(objext, $1)=$objext
5762
# Code to be used in simple compile tests
5763
lt_simple_compile_test_code="int some_variable = 0;"
5765
# Code to be used in simple link tests
5766
lt_simple_link_test_code='int main(){return(0);}'
5769
# Save the default compiler, since it gets overwritten when the other
5770
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5771
compiler_DEFAULT=$CC
5773
# save warnings/boilerplate of simple test code
5774
_LT_COMPILER_BOILERPLATE
5775
_LT_LINKER_BOILERPLATE
5777
if test -n "$compiler"; then
5778
_LT_COMPILER_NO_RTTI($1)
5779
_LT_COMPILER_PIC($1)
5780
_LT_COMPILER_C_O($1)
5781
_LT_COMPILER_FILE_LOCKS($1)
5782
_LT_LINKER_SHLIBS($1)
5783
_LT_SYS_DYNAMIC_LINKER($1)
5784
_LT_LINKER_HARDCODE_LIBPATH($1)
5788
# Report which library types will actually be built
5789
AC_MSG_CHECKING([if libtool supports shared libraries])
5790
AC_MSG_RESULT([$can_build_shared])
5792
AC_MSG_CHECKING([whether to build shared libraries])
5793
test "$can_build_shared" = "no" && enable_shared=no
5795
# On AIX, shared libraries and static libraries use the same namespace, and
5796
# are all built from PIC.
5799
test "$enable_shared" = yes && enable_static=no
5800
if test -n "$RANLIB"; then
5801
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5802
postinstall_cmds='$RANLIB $lib'
5807
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5808
test "$enable_shared" = yes && enable_static=no
5812
AC_MSG_RESULT([$enable_shared])
5814
AC_MSG_CHECKING([whether to build static libraries])
5815
# Make sure either enable_shared or enable_static is yes.
5816
test "$enable_shared" = yes || enable_static=yes
5817
AC_MSG_RESULT([$enable_static])
5823
])# _LT_LANG_C_CONFIG
5826
# _LT_LANG_CXX_CONFIG([TAG])
5827
# --------------------------
5828
# Ensure that the configuration variables for a C++ compiler are suitably
5829
# defined. These variables are subsequently used by _LT_CONFIG to write
5830
# the compiler configuration to `libtool'.
5831
m4_defun([_LT_LANG_CXX_CONFIG],
5832
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5833
m4_require([_LT_DECL_EGREP])dnl
5834
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5835
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5836
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5837
(test "X$CXX" != "Xg++"))) ; then
5840
_lt_caught_CXX_error=yes
5844
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5845
_LT_TAGVAR(allow_undefined_flag, $1)=
5846
_LT_TAGVAR(always_export_symbols, $1)=no
5847
_LT_TAGVAR(archive_expsym_cmds, $1)=
5848
_LT_TAGVAR(compiler_needs_object, $1)=no
5849
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5850
_LT_TAGVAR(hardcode_direct, $1)=no
5851
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5852
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5853
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5854
_LT_TAGVAR(hardcode_minus_L, $1)=no
5855
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5856
_LT_TAGVAR(hardcode_automatic, $1)=no
5857
_LT_TAGVAR(inherit_rpath, $1)=no
5858
_LT_TAGVAR(module_cmds, $1)=
5859
_LT_TAGVAR(module_expsym_cmds, $1)=
5860
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5861
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5862
_LT_TAGVAR(reload_flag, $1)=$reload_flag
5863
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5864
_LT_TAGVAR(no_undefined_flag, $1)=
5865
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5866
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5868
# Source file extension for C++ test sources.
5871
# Object file extension for compiled C++ test sources.
5873
_LT_TAGVAR(objext, $1)=$objext
5875
# No sense in running all these tests if we already determined that
5876
# the CXX compiler isn't working. Some variables (like enable_shared)
5877
# are currently assumed to apply to all compilers on this platform,
5878
# and will be corrupted by setting them based on a non-working compiler.
5879
if test "$_lt_caught_CXX_error" != yes; then
5880
# Code to be used in simple compile tests
5881
lt_simple_compile_test_code="int some_variable = 0;"
5883
# Code to be used in simple link tests
5884
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5886
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5889
# save warnings/boilerplate of simple test code
5890
_LT_COMPILER_BOILERPLATE
5891
_LT_LINKER_BOILERPLATE
5893
# Allow CC to be a program name with arguments.
5895
lt_save_CFLAGS=$CFLAGS
5899
lt_save_with_gnu_ld=$with_gnu_ld
5900
lt_save_path_LD=$lt_cv_path_LD
5901
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5902
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5904
$as_unset lt_cv_prog_gnu_ld
5906
if test -n "${lt_cv_path_LDCXX+set}"; then
5907
lt_cv_path_LD=$lt_cv_path_LDCXX
5909
$as_unset lt_cv_path_LD
5911
test -z "${LDCXX+set}" || LD=$LDCXX
5915
_LT_TAGVAR(compiler, $1)=$CC
5916
_LT_CC_BASENAME([$compiler])
5918
if test -n "$compiler"; then
5919
# We don't want -fno-exception when compiling C++ code, so set the
5920
# no_builtin_flag separately
5921
if test "$GXX" = yes; then
5922
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5924
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5927
if test "$GXX" = yes; then
5928
# Set up default GNU C++ configuration
5932
# Check if GNU C++ uses GNU ld as the underlying linker, since the
5933
# archiving commands below assume that GNU ld is being used.
5934
if test "$with_gnu_ld" = yes; then
5935
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5936
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5938
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5939
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5941
# If archive_cmds runs LD, not CC, wlarc should be empty
5942
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5943
# investigate it a little bit more. (MM)
5946
# ancient GNU ld didn't support --whole-archive et. al.
5947
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5948
$GREP 'no-whole-archive' > /dev/null; then
5949
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6255
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5951
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6257
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6259
cat conftest.err 1>&5
5957
# A generic and very simple default shared library creation
5958
# command for GNU C++ for the case where it uses the native
5959
# linker, instead of GNU ld. If possible, this setting should
5960
# overridden to take advantage of the native linker features on
5961
# the platform it is being used on.
5962
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6262
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5965
# Commands to make compiler produce verbose output that lists
5966
# what "hidden" libraries, object files and flags are used when
5967
# linking a shared library.
5968
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5976
# PORTME: fill in a description of your system's C++ link characteristics
5977
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5978
_LT_TAGVAR(ld_shlibs, $1)=yes
5981
# FIXME: insert proper C++ library support
5982
_LT_TAGVAR(ld_shlibs, $1)=no
5985
if test "$host_cpu" = ia64; then
5986
# On IA64, the linker does run time linking by default, so we don't
5987
# have to do anything special.
5988
aix_use_runtimelinking=no
5989
exp_sym_flag='-Bexport'
5992
aix_use_runtimelinking=no
5994
# Test if we are trying to use run time linking or normal
5995
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5996
# need to do runtime linking.
5997
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5998
for ld_flag in $LDFLAGS; do
6001
aix_use_runtimelinking=yes
6009
exp_sym_flag='-bexport'
6010
no_entry_flag='-bnoentry'
6013
# When large executables or shared objects are built, AIX ld can
6014
# have problems creating the table of contents. If linking a library
6015
# or program results in "error TOC overflow" add -mminimal-toc to
6016
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6017
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6019
_LT_TAGVAR(archive_cmds, $1)=''
6020
_LT_TAGVAR(hardcode_direct, $1)=yes
6021
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6022
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6023
_LT_TAGVAR(link_all_deplibs, $1)=yes
6024
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6026
if test "$GXX" = yes; then
6027
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6028
# We only want to do this on AIX 4.2 and lower, the check
6029
# below for broken collect2 doesn't work under 4.3+
6030
collect2name=`${CC} -print-prog-name=collect2`
6031
if test -f "$collect2name" &&
6032
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6034
# We have reworked collect2
6037
# We have old collect2
6038
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6039
# It fails to find uninstalled libraries when the uninstalled
6040
# path is not listed in the libpath. Setting hardcode_minus_L
6041
# to unsupported forces relinking
6042
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6043
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6044
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6047
shared_flag='-shared'
6048
if test "$aix_use_runtimelinking" = yes; then
6049
shared_flag="$shared_flag "'${wl}-G'
6053
if test "$host_cpu" = ia64; then
6054
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6055
# chokes on -Wl,-G. The following line is correct:
6058
if test "$aix_use_runtimelinking" = yes; then
6059
shared_flag='${wl}-G'
6061
shared_flag='${wl}-bM:SRE'
6066
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6067
# It seems that -bexpall does not export symbols beginning with
6068
# underscore (_), so it is better to generate a list of symbols to
6070
_LT_TAGVAR(always_export_symbols, $1)=yes
6071
if test "$aix_use_runtimelinking" = yes; then
6072
# Warning - without using the other runtime loading flags (-brtl),
6073
# -berok will link without error, but may produce a broken library.
6074
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6075
# Determine the default libpath from the value encoded in an empty
6077
_LT_SYS_MODULE_PATH_AIX([$1])
6078
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6080
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6082
if test "$host_cpu" = ia64; then
6083
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6084
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6085
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6087
# Determine the default libpath from the value encoded in an
6089
_LT_SYS_MODULE_PATH_AIX([$1])
6090
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6091
# Warning - without using the other run time loading flags,
6092
# -berok will link without error, but may produce a broken library.
6093
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6094
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6095
if test "$with_gnu_ld" = yes; then
6096
# We only use this code for GNU lds that support --whole-archive.
6097
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6099
# Exported symbols can be pulled into shared objects from archives
6100
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6102
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6103
# This is similar to how AIX traditionally builds its shared
6105
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6111
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6112
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6113
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6114
# support --undefined. This deserves some investigation. FIXME
6115
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6117
_LT_TAGVAR(ld_shlibs, $1)=no
6122
case $cc_basename in
6124
# FIXME: insert proper C++ library support
6125
_LT_TAGVAR(ld_shlibs, $1)=no
6130
cygwin* | mingw* | pw32* | cegcc*)
6131
case $GXX,$cc_basename in
6134
# hardcode_libdir_flag_spec is actually meaningless, as there is
6135
# no search path for DLLs.
6136
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6137
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6138
_LT_TAGVAR(always_export_symbols, $1)=yes
6139
_LT_TAGVAR(file_list_spec, $1)='@'
6140
# Tell ltmain to make .lib files, not .a files.
6142
# Tell ltmain to make .dll files, not .so files.
6144
# FIXME: Setting linknames here is a bad hack.
6145
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6146
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6147
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6149
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6151
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6153
# The linker will not automatically build a static lib if we build a DLL.
6154
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6155
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6157
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6158
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6159
lt_tool_outputfile="@TOOL_OUTPUT@"~
6160
case $lt_outputfile in
6163
lt_outputfile="$lt_outputfile.exe"
6164
lt_tool_outputfile="$lt_tool_outputfile.exe"
6167
func_to_tool_file "$lt_outputfile"~
6168
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6169
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6170
$RM "$lt_outputfile.manifest";
6175
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6176
# as there is no search path for DLLs.
6177
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6178
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6179
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6180
_LT_TAGVAR(always_export_symbols, $1)=no
6181
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6183
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6184
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6185
# If the export-symbols file already is a .def file (1st line
6186
# is EXPORTS), use it as is; otherwise, prepend...
6187
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6188
cp $export_symbols $output_objdir/$soname.def;
6190
echo EXPORTS > $output_objdir/$soname.def;
6191
cat $export_symbols >> $output_objdir/$soname.def;
6193
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6195
_LT_TAGVAR(ld_shlibs, $1)=no
6200
darwin* | rhapsody*)
6201
_LT_DARWIN_LINKER_FEATURES($1)
6205
case $cc_basename in
6207
# FIXME: insert proper C++ library support
6208
_LT_TAGVAR(ld_shlibs, $1)=no
6211
# Green Hills C++ Compiler
6212
# FIXME: insert proper C++ library support
6213
_LT_TAGVAR(ld_shlibs, $1)=no
6216
# FIXME: insert proper C++ library support
6217
_LT_TAGVAR(ld_shlibs, $1)=no
6223
# C++ shared libraries reported to be fairly broken before
6225
_LT_TAGVAR(ld_shlibs, $1)=no
6229
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6232
freebsd* | dragonfly*)
6233
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6235
_LT_TAGVAR(ld_shlibs, $1)=yes
6242
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6243
_LT_TAGVAR(link_all_deplibs, $1)=yes
6247
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6248
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6249
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6250
_LT_TAGVAR(hardcode_direct, $1)=yes
6251
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6252
# but as the default
6253
# location of the library.
6255
case $cc_basename in
6257
# FIXME: insert proper C++ library support
6258
_LT_TAGVAR(ld_shlibs, $1)=no
6261
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6262
# Commands to make compiler produce verbose output that lists
6263
# what "hidden" libraries, object files and flags are used when
6264
# linking a shared library.
6266
# There doesn't appear to be a way to prevent this compiler from
6267
# explicitly linking system object files so we need to strip them
6268
# from the output so that they don't get included in the library
6270
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6273
if test "$GXX" = yes; then
6274
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
6276
# FIXME: insert proper C++ library support
6277
_LT_TAGVAR(ld_shlibs, $1)=no
6284
if test $with_gnu_ld = no; then
6285
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6286
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6292
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6298
_LT_TAGVAR(hardcode_direct, $1)=no
6299
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6302
_LT_TAGVAR(hardcode_direct, $1)=yes
6303
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6304
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6305
# but as the default
6306
# location of the library.
6310
case $cc_basename in
6312
# FIXME: insert proper C++ library support
6313
_LT_TAGVAR(ld_shlibs, $1)=no
6318
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6321
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6324
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6327
# Commands to make compiler produce verbose output that lists
6328
# what "hidden" libraries, object files and flags are used when
6329
# linking a shared library.
6331
# There doesn't appear to be a way to prevent this compiler from
6332
# explicitly linking system object files so we need to strip them
6333
# from the output so that they don't get included in the library
6335
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; func_echo_all "$list"'
6338
if test "$GXX" = yes; then
6339
if test $with_gnu_ld = no; then
6342
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6345
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6348
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6353
# FIXME: insert proper C++ library support
6354
_LT_TAGVAR(ld_shlibs, $1)=no
6361
_LT_TAGVAR(hardcode_direct, $1)=no
6362
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6363
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6364
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6365
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6366
# Instead, shared libraries are loaded at an image base (0x10000000 by
6367
# default) and relocated if they conflict, which is a slow very memory
6368
# consuming and fragmenting process. To avoid this, we pick a random,
6369
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6370
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6371
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6372
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6375
case $cc_basename in
6378
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6380
# Archives containing C++ object files must be created using
6381
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6382
# necessary to make sure instantiated templates are included
6384
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6387
if test "$GXX" = yes; then
6388
if test "$with_gnu_ld" = no; then
6389
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6391
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6394
_LT_TAGVAR(link_all_deplibs, $1)=yes
6397
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6398
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6399
_LT_TAGVAR(inherit_rpath, $1)=yes
6402
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6403
case $cc_basename in
6405
# Kuck and Associates, Inc. (KAI) C++ Compiler
6407
# KCC will only create a shared library if the output file
6408
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6409
# to its proper name (with version) after linking.
6410
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6411
_LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6412
# Commands to make compiler produce verbose output that lists
6413
# what "hidden" libraries, object files and flags are used when
6414
# linking a shared library.
6416
# There doesn't appear to be a way to prevent this compiler from
6417
# explicitly linking system object files so we need to strip them
6418
# from the output so that they don't get included in the library
6420
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; func_echo_all "$list"'
6422
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6423
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6425
# Archives containing C++ object files must be created using
6426
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6427
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6432
# version 8.0 and above of icpc choke on multiply defined symbols
6433
# if we add $predep_objects and $postdep_objects, however 7.1 and
6434
# earlier do not add the objects themselves.
6435
case `$CC -V 2>&1` in
6437
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6438
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6440
*) # Version 8.0 or newer
6443
ia64*) tmp_idyn=' -i_dynamic';;
6445
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6446
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6449
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6450
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6451
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6452
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6455
# Portland Group C++ compiler
6457
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6458
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6460
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6461
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6462
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6464
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6465
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6467
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6469
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6470
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6471
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6473
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6474
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6476
*) # Version 6 and above use weak symbols
6477
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6478
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6482
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6483
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6484
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6488
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6489
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6491
runpath_var=LD_RUN_PATH
6492
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6493
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6495
# Commands to make compiler produce verbose output that lists
6496
# what "hidden" libraries, object files and flags are used when
6497
# linking a shared library.
6499
# There doesn't appear to be a way to prevent this compiler from
6500
# explicitly linking system object files so we need to strip them
6501
# from the output so that they don't get included in the library
6503
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
6505
xl* | mpixl* | bgxl*)
6506
# IBM XL 8.0 on PPC, with GNU ld
6507
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6508
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6509
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6510
if test "x$supports_anon_versioning" = xyes; then
6511
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6512
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6513
echo "local: *; };" >> $output_objdir/$libname.ver~
6514
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6518
case `$CC -V 2>&1 | sed 5q` in
6521
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6522
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6523
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6524
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6525
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6526
_LT_TAGVAR(compiler_needs_object, $1)=yes
6528
# Not sure whether something based on
6529
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6531
output_verbose_link_cmd='func_echo_all'
6533
# Archives containing C++ object files must be created using
6534
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6535
# necessary to make sure instantiated templates are included
6537
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6545
# FIXME: insert proper C++ library support
6546
_LT_TAGVAR(ld_shlibs, $1)=no
6550
# FIXME: insert proper C++ library support
6551
_LT_TAGVAR(ld_shlibs, $1)=no
6555
case $cc_basename in
6557
# FIXME: insert proper C++ library support
6558
_LT_TAGVAR(ld_shlibs, $1)=no
6561
# FIXME: insert proper C++ library support
6562
_LT_TAGVAR(ld_shlibs, $1)=no
6568
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6569
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6571
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6572
_LT_TAGVAR(hardcode_direct, $1)=yes
6573
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6575
# Workaround some broken pre-1.5 toolchains
6576
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6580
_LT_TAGVAR(ld_shlibs, $1)=yes
6584
# C++ shared libraries are fairly broken
6585
_LT_TAGVAR(ld_shlibs, $1)=no
6589
if test -f /usr/libexec/ld.so; then
6590
_LT_TAGVAR(hardcode_direct, $1)=yes
6591
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6592
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6593
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6594
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6595
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6596
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6597
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6598
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6600
output_verbose_link_cmd=func_echo_all
6602
_LT_TAGVAR(ld_shlibs, $1)=no
6606
osf3* | osf4* | osf5*)
6607
case $cc_basename in
6609
# Kuck and Associates, Inc. (KAI) C++ Compiler
6611
# KCC will only create a shared library if the output file
6612
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6613
# to its proper name (with version) after linking.
6614
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6616
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6617
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6619
# Archives containing C++ object files must be created using
6620
# the KAI C++ compiler.
6622
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6623
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6627
# Rational C++ 2.4.1
6628
# FIXME: insert proper C++ library support
6629
_LT_TAGVAR(ld_shlibs, $1)=no
6634
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6635
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6636
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6639
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6640
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6641
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6642
echo "-hidden">> $lib.exp~
6643
$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~
6645
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6649
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6651
# Commands to make compiler produce verbose output that lists
6652
# what "hidden" libraries, object files and flags are used when
6653
# linking a shared library.
6655
# There doesn't appear to be a way to prevent this compiler from
6656
# explicitly linking system object files so we need to strip them
6657
# from the output so that they don't get included in the library
6659
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
6662
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6663
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6666
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6669
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6673
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6674
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6676
# Commands to make compiler produce verbose output that lists
6677
# what "hidden" libraries, object files and flags are used when
6678
# linking a shared library.
6679
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6682
# FIXME: insert proper C++ library support
6683
_LT_TAGVAR(ld_shlibs, $1)=no
6690
# FIXME: insert proper C++ library support
6691
_LT_TAGVAR(ld_shlibs, $1)=no
6695
case $cc_basename in
6698
# FIXME: insert proper C++ library support
6699
_LT_TAGVAR(ld_shlibs, $1)=no
6703
# FIXME: insert proper C++ library support
6704
_LT_TAGVAR(ld_shlibs, $1)=no
6707
# FIXME: insert proper C++ library support
6708
_LT_TAGVAR(ld_shlibs, $1)=no
6714
case $cc_basename in
6716
# Sun C++ 4.2, 5.x and Centerline C++
6717
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6718
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6719
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6720
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6721
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6723
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6724
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6726
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6728
# The compiler driver will combine and reorder linker options,
6729
# but understands `-z linker_flag'.
6730
# Supported since Solaris 2.6 (maybe 2.5.1?)
6731
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6734
_LT_TAGVAR(link_all_deplibs, $1)=yes
6736
output_verbose_link_cmd='func_echo_all'
6738
# Archives containing C++ object files must be created using
6739
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6740
# necessary to make sure instantiated templates are included
6742
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6745
# Green Hills C++ Compiler
6746
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6748
# The C++ compiler must be used to create the archive.
6749
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6752
# GNU C++ compiler with Solaris linker
6753
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6754
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6755
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6756
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6757
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6758
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6760
# Commands to make compiler produce verbose output that lists
6761
# what "hidden" libraries, object files and flags are used when
6762
# linking a shared library.
6763
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6765
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6767
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6768
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6769
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6771
# Commands to make compiler produce verbose output that lists
6772
# what "hidden" libraries, object files and flags are used when
6773
# linking a shared library.
6774
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6777
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6779
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6781
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6789
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6790
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6791
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6792
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6793
runpath_var='LD_RUN_PATH'
6795
case $cc_basename in
6797
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6798
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6801
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6802
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6807
sysv5* | sco3.2v5* | sco5v6*)
6808
# Note: We can NOT use -z defs as we might desire, because we do not
6809
# link with -lc, and that would cause any symbols used from libc to
6810
# always be unresolved, which means just about no library would
6811
# ever link correctly. If we're not using GNU ld we use -z text
6812
# though, which does catch some bad symbols but isn't as heavy-handed
6814
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6815
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6816
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6817
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6818
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6819
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6820
_LT_TAGVAR(link_all_deplibs, $1)=yes
6821
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6822
runpath_var='LD_RUN_PATH'
6824
case $cc_basename in
6826
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6827
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6828
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6829
'"$_LT_TAGVAR(old_archive_cmds, $1)"
6830
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6831
'"$_LT_TAGVAR(reload_cmds, $1)"
6834
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6835
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6841
case $cc_basename in
6843
# NonStop-UX NCC 3.20
6844
# FIXME: insert proper C++ library support
6845
_LT_TAGVAR(ld_shlibs, $1)=no
6848
# FIXME: insert proper C++ library support
6849
_LT_TAGVAR(ld_shlibs, $1)=no
6855
# FIXME: insert proper C++ library support
6856
_LT_TAGVAR(ld_shlibs, $1)=no
6860
# FIXME: insert proper C++ library support
6861
_LT_TAGVAR(ld_shlibs, $1)=no
6268
])# AC_LIBTOOL_PROG_LD_SHLIBS
6271
# _LT_AC_FILE_LTDLL_C
6272
# -------------------
6273
# Be careful that the start marker always follows a newline.
6274
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6275
# /* ltdll.c starts here */
6276
# #define WIN32_LEAN_AND_MEAN
6277
# #include <windows.h>
6278
# #undef WIN32_LEAN_AND_MEAN
6279
# #include <stdio.h>
6281
# #ifndef __CYGWIN__
6282
# # ifdef __CYGWIN32__
6283
# # define __CYGWIN__ __CYGWIN32__
6287
# #ifdef __cplusplus
6290
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6291
# #ifdef __cplusplus
6296
# #include <cygwin/cygwin_dll.h>
6297
# DECLARE_CYGWIN_DLL( DllMain );
6299
# HINSTANCE __hDllInstance_base;
6302
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6304
# __hDllInstance_base = hInst;
6307
# /* ltdll.c ends here */
6308
])# _LT_AC_FILE_LTDLL_C
6311
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6865
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6866
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6868
_LT_TAGVAR(GCC, $1)="$GXX"
6869
_LT_TAGVAR(LD, $1)="$LD"
6872
## There is no encapsulation within the following macros, do not change
6873
## the running order or otherwise move them around unless you know exactly
6874
## what you are doing...
6875
_LT_SYS_HIDDEN_LIBDEPS($1)
6876
_LT_COMPILER_PIC($1)
6877
_LT_COMPILER_C_O($1)
6878
_LT_COMPILER_FILE_LOCKS($1)
6879
_LT_LINKER_SHLIBS($1)
6880
_LT_SYS_DYNAMIC_LINKER($1)
6881
_LT_LINKER_HARDCODE_LIBPATH($1)
6884
fi # test -n "$compiler"
6887
CFLAGS=$lt_save_CFLAGS
6891
with_gnu_ld=$lt_save_with_gnu_ld
6892
lt_cv_path_LDCXX=$lt_cv_path_LD
6893
lt_cv_path_LD=$lt_save_path_LD
6894
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6895
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6896
fi # test "$_lt_caught_CXX_error" != yes
6899
])# _LT_LANG_CXX_CONFIG
6902
# _LT_FUNC_STRIPNAME_CNF
6903
# ----------------------
6904
# func_stripname_cnf prefix suffix name
6905
# strip PREFIX and SUFFIX off of NAME.
6906
# PREFIX and SUFFIX must not contain globbing or regex special
6907
# characters, hashes, percent signs, but SUFFIX may contain a leading
6908
# dot (in which case that matches only a dot).
6910
# This function is identical to the (non-XSI) version of func_stripname,
6911
# except this one can be used by m4 code that may be executed by configure,
6912
# rather than the libtool script.
6913
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6914
AC_REQUIRE([_LT_DECL_SED])
6915
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6916
func_stripname_cnf ()
6919
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6920
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6922
} # func_stripname_cnf
6923
])# _LT_FUNC_STRIPNAME_CNF
6925
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6312
6926
# ---------------------------------
6313
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6317
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6318
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6319
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6320
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6321
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6322
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6323
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6325
# This is just to silence aclocal about the macro not being used
6326
ifelse([AC_DISABLE_FAST_INSTALL])
6328
AC_DEFUN([LT_AC_PROG_GCJ],
6329
[AC_CHECK_TOOL(GCJ, gcj, no)
6330
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6334
AC_DEFUN([LT_AC_PROG_RC],
6335
[AC_CHECK_TOOL(RC, windres, no)
6338
# NOTE: This macro has been submitted for inclusion into #
6339
# GNU Autoconf as AC_PROG_SED. When it is available in #
6340
# a released version of Autoconf we should remove this #
6341
# macro and use it instead. #
6927
# Figure out "hidden" library dependencies from verbose
6928
# compiler output when linking a shared library.
6929
# Parse the compiler output and extract the necessary
6930
# objects, libraries and library flags.
6931
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6932
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6933
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6934
# Dependencies to place before and after the object being linked:
6935
_LT_TAGVAR(predep_objects, $1)=
6936
_LT_TAGVAR(postdep_objects, $1)=
6937
_LT_TAGVAR(predeps, $1)=
6938
_LT_TAGVAR(postdeps, $1)=
6939
_LT_TAGVAR(compiler_lib_search_path, $1)=
6941
dnl we can't use the lt_simple_compile_test_code here,
6942
dnl because it contains code intended for an executable,
6943
dnl not a library. It's possible we should let each
6944
dnl tag define a new lt_????_link_test_code variable,
6945
dnl but it's only used here...
6946
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6948
void foo (void) { a = 0; }
6950
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6954
Foo (void) { a = 0; }
6959
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6967
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6975
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6978
public void bar (void) {
6983
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6990
_lt_libdeps_save_CFLAGS=$CFLAGS
6991
case "$CC $CFLAGS " in #(
6992
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6993
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6994
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6997
dnl Parse the compiler output and extract the necessary
6998
dnl objects, libraries and library flags.
6999
if AC_TRY_EVAL(ac_compile); then
7000
# Parse the compiler output and extract the necessary
7001
# objects, libraries and library flags.
7003
# Sentinel used to keep track of whether or not we are before
7004
# the conftest object file.
7005
pre_test_object_deps_done=no
7007
for p in `eval "$output_verbose_link_cmd"`; do
7011
# Some compilers place space between "-{L,R}" and the path.
7013
if test $p = "-L" ||
7014
test $p = "-R"; then
7019
# Expand the sysroot to ease extracting the directories later.
7020
if test -z "$prev"; then
7022
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7023
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7024
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7028
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7030
if test "$pre_test_object_deps_done" = no; then
7033
# Internal compiler library paths should come after those
7034
# provided the user. The postdeps already come after the
7035
# user supplied libs so there is no need to process them.
7036
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7037
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7039
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7042
# The "-l" case would never come before the object being
7043
# linked, so don't bother handling this case.
7046
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7047
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7049
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7055
*.lto.$objext) ;; # Ignore GCC LTO objects
7057
# This assumes that the test object file only shows up
7058
# once in the compiler output.
7059
if test "$p" = "conftest.$objext"; then
7060
pre_test_object_deps_done=yes
7064
if test "$pre_test_object_deps_done" = no; then
7065
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7066
_LT_TAGVAR(predep_objects, $1)="$p"
7068
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7071
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7072
_LT_TAGVAR(postdep_objects, $1)="$p"
7074
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7079
*) ;; # Ignore the rest.
7087
echo "libtool.m4: error: problem compiling $1 test program"
7090
$RM -f confest.$objext
7091
CFLAGS=$_lt_libdeps_save_CFLAGS
7093
# PORTME: override above test on systems where it is broken
7097
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7098
# hack all around it, let's just trust "g++" to DTRT.
7099
_LT_TAGVAR(predep_objects,$1)=
7100
_LT_TAGVAR(postdep_objects,$1)=
7101
_LT_TAGVAR(postdeps,$1)=
7105
case `$CC -V 2>&1 | sed 5q` in
7109
# The more standards-conforming stlport4 library is
7110
# incompatible with the Cstd library. Avoid specifying
7111
# it if it's in CXXFLAGS. Ignore libCrun as
7112
# -library=stlport4 depends on it.
7113
case " $CXX $CXXFLAGS " in
7114
*" -library=stlport4 "*)
7115
solaris_use_stlport4=yes
7119
if test "$solaris_use_stlport4" != yes; then
7120
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7127
case $cc_basename in
7129
# The more standards-conforming stlport4 library is
7130
# incompatible with the Cstd library. Avoid specifying
7131
# it if it's in CXXFLAGS. Ignore libCrun as
7132
# -library=stlport4 depends on it.
7133
case " $CXX $CXXFLAGS " in
7134
*" -library=stlport4 "*)
7135
solaris_use_stlport4=yes
7139
# Adding this requires a known-good setup of shared libraries for
7140
# Sun compiler versions before 5.6, else PIC objects from an old
7141
# archive will be linked into the output, leading to subtle bugs.
7142
if test "$solaris_use_stlport4" != yes; then
7143
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7151
case " $_LT_TAGVAR(postdeps, $1) " in
7152
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7154
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7155
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7156
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7158
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7159
[The directories searched by this compiler when creating a shared library])
7160
_LT_TAGDECL([], [predep_objects], [1],
7161
[Dependencies to place before and after the objects being linked to
7162
create a shared library])
7163
_LT_TAGDECL([], [postdep_objects], [1])
7164
_LT_TAGDECL([], [predeps], [1])
7165
_LT_TAGDECL([], [postdeps], [1])
7166
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7167
[The library search path used internally by the compiler when linking
7169
])# _LT_SYS_HIDDEN_LIBDEPS
7172
# _LT_LANG_F77_CONFIG([TAG])
7173
# --------------------------
7174
# Ensure that the configuration variables for a Fortran 77 compiler are
7175
# suitably defined. These variables are subsequently used by _LT_CONFIG
7176
# to write the compiler configuration to `libtool'.
7177
m4_defun([_LT_LANG_F77_CONFIG],
7178
[AC_LANG_PUSH(Fortran 77)
7179
if test -z "$F77" || test "X$F77" = "Xno"; then
7183
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7184
_LT_TAGVAR(allow_undefined_flag, $1)=
7185
_LT_TAGVAR(always_export_symbols, $1)=no
7186
_LT_TAGVAR(archive_expsym_cmds, $1)=
7187
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7188
_LT_TAGVAR(hardcode_direct, $1)=no
7189
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7190
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7191
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7192
_LT_TAGVAR(hardcode_minus_L, $1)=no
7193
_LT_TAGVAR(hardcode_automatic, $1)=no
7194
_LT_TAGVAR(inherit_rpath, $1)=no
7195
_LT_TAGVAR(module_cmds, $1)=
7196
_LT_TAGVAR(module_expsym_cmds, $1)=
7197
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7198
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7199
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7200
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7201
_LT_TAGVAR(no_undefined_flag, $1)=
7202
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7203
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7205
# Source file extension for f77 test sources.
7208
# Object file extension for compiled f77 test sources.
7210
_LT_TAGVAR(objext, $1)=$objext
7212
# No sense in running all these tests if we already determined that
7213
# the F77 compiler isn't working. Some variables (like enable_shared)
7214
# are currently assumed to apply to all compilers on this platform,
7215
# and will be corrupted by setting them based on a non-working compiler.
7216
if test "$_lt_disable_F77" != yes; then
7217
# Code to be used in simple compile tests
7218
lt_simple_compile_test_code="\
7224
# Code to be used in simple link tests
7225
lt_simple_link_test_code="\
7230
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7233
# save warnings/boilerplate of simple test code
7234
_LT_COMPILER_BOILERPLATE
7235
_LT_LINKER_BOILERPLATE
7237
# Allow CC to be a program name with arguments.
7240
lt_save_CFLAGS=$CFLAGS
7244
_LT_TAGVAR(compiler, $1)=$CC
7245
_LT_CC_BASENAME([$compiler])
7247
if test -n "$compiler"; then
7248
AC_MSG_CHECKING([if libtool supports shared libraries])
7249
AC_MSG_RESULT([$can_build_shared])
7251
AC_MSG_CHECKING([whether to build shared libraries])
7252
test "$can_build_shared" = "no" && enable_shared=no
7254
# On AIX, shared libraries and static libraries use the same namespace, and
7255
# are all built from PIC.
7258
test "$enable_shared" = yes && enable_static=no
7259
if test -n "$RANLIB"; then
7260
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7261
postinstall_cmds='$RANLIB $lib'
7265
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7266
test "$enable_shared" = yes && enable_static=no
7270
AC_MSG_RESULT([$enable_shared])
7272
AC_MSG_CHECKING([whether to build static libraries])
7273
# Make sure either enable_shared or enable_static is yes.
7274
test "$enable_shared" = yes || enable_static=yes
7275
AC_MSG_RESULT([$enable_static])
7277
_LT_TAGVAR(GCC, $1)="$G77"
7278
_LT_TAGVAR(LD, $1)="$LD"
7281
## There is no encapsulation within the following macros, do not change
7282
## the running order or otherwise move them around unless you know exactly
7283
## what you are doing...
7284
_LT_COMPILER_PIC($1)
7285
_LT_COMPILER_C_O($1)
7286
_LT_COMPILER_FILE_LOCKS($1)
7287
_LT_LINKER_SHLIBS($1)
7288
_LT_SYS_DYNAMIC_LINKER($1)
7289
_LT_LINKER_HARDCODE_LIBPATH($1)
7292
fi # test -n "$compiler"
7296
CFLAGS="$lt_save_CFLAGS"
7297
fi # test "$_lt_disable_F77" != yes
7300
])# _LT_LANG_F77_CONFIG
7303
# _LT_LANG_FC_CONFIG([TAG])
7304
# -------------------------
7305
# Ensure that the configuration variables for a Fortran compiler are
7306
# suitably defined. These variables are subsequently used by _LT_CONFIG
7307
# to write the compiler configuration to `libtool'.
7308
m4_defun([_LT_LANG_FC_CONFIG],
7309
[AC_LANG_PUSH(Fortran)
7311
if test -z "$FC" || test "X$FC" = "Xno"; then
7315
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7316
_LT_TAGVAR(allow_undefined_flag, $1)=
7317
_LT_TAGVAR(always_export_symbols, $1)=no
7318
_LT_TAGVAR(archive_expsym_cmds, $1)=
7319
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7320
_LT_TAGVAR(hardcode_direct, $1)=no
7321
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7322
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7323
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7324
_LT_TAGVAR(hardcode_minus_L, $1)=no
7325
_LT_TAGVAR(hardcode_automatic, $1)=no
7326
_LT_TAGVAR(inherit_rpath, $1)=no
7327
_LT_TAGVAR(module_cmds, $1)=
7328
_LT_TAGVAR(module_expsym_cmds, $1)=
7329
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7330
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7331
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7332
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7333
_LT_TAGVAR(no_undefined_flag, $1)=
7334
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7335
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7337
# Source file extension for fc test sources.
7338
ac_ext=${ac_fc_srcext-f}
7340
# Object file extension for compiled fc test sources.
7342
_LT_TAGVAR(objext, $1)=$objext
7344
# No sense in running all these tests if we already determined that
7345
# the FC compiler isn't working. Some variables (like enable_shared)
7346
# are currently assumed to apply to all compilers on this platform,
7347
# and will be corrupted by setting them based on a non-working compiler.
7348
if test "$_lt_disable_FC" != yes; then
7349
# Code to be used in simple compile tests
7350
lt_simple_compile_test_code="\
7356
# Code to be used in simple link tests
7357
lt_simple_link_test_code="\
7362
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7365
# save warnings/boilerplate of simple test code
7366
_LT_COMPILER_BOILERPLATE
7367
_LT_LINKER_BOILERPLATE
7369
# Allow CC to be a program name with arguments.
7372
lt_save_CFLAGS=$CFLAGS
7376
GCC=$ac_cv_fc_compiler_gnu
7378
_LT_TAGVAR(compiler, $1)=$CC
7379
_LT_CC_BASENAME([$compiler])
7381
if test -n "$compiler"; then
7382
AC_MSG_CHECKING([if libtool supports shared libraries])
7383
AC_MSG_RESULT([$can_build_shared])
7385
AC_MSG_CHECKING([whether to build shared libraries])
7386
test "$can_build_shared" = "no" && enable_shared=no
7388
# On AIX, shared libraries and static libraries use the same namespace, and
7389
# are all built from PIC.
7392
test "$enable_shared" = yes && enable_static=no
7393
if test -n "$RANLIB"; then
7394
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7395
postinstall_cmds='$RANLIB $lib'
7399
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7400
test "$enable_shared" = yes && enable_static=no
7404
AC_MSG_RESULT([$enable_shared])
7406
AC_MSG_CHECKING([whether to build static libraries])
7407
# Make sure either enable_shared or enable_static is yes.
7408
test "$enable_shared" = yes || enable_static=yes
7409
AC_MSG_RESULT([$enable_static])
7411
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7412
_LT_TAGVAR(LD, $1)="$LD"
7415
## There is no encapsulation within the following macros, do not change
7416
## the running order or otherwise move them around unless you know exactly
7417
## what you are doing...
7418
_LT_SYS_HIDDEN_LIBDEPS($1)
7419
_LT_COMPILER_PIC($1)
7420
_LT_COMPILER_C_O($1)
7421
_LT_COMPILER_FILE_LOCKS($1)
7422
_LT_LINKER_SHLIBS($1)
7423
_LT_SYS_DYNAMIC_LINKER($1)
7424
_LT_LINKER_HARDCODE_LIBPATH($1)
7427
fi # test -n "$compiler"
7431
CFLAGS=$lt_save_CFLAGS
7432
fi # test "$_lt_disable_FC" != yes
7435
])# _LT_LANG_FC_CONFIG
7438
# _LT_LANG_GCJ_CONFIG([TAG])
7439
# --------------------------
7440
# Ensure that the configuration variables for the GNU Java Compiler compiler
7441
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7442
# to write the compiler configuration to `libtool'.
7443
m4_defun([_LT_LANG_GCJ_CONFIG],
7444
[AC_REQUIRE([LT_PROG_GCJ])dnl
7447
# Source file extension for Java test sources.
7450
# Object file extension for compiled Java test sources.
7452
_LT_TAGVAR(objext, $1)=$objext
7454
# Code to be used in simple compile tests
7455
lt_simple_compile_test_code="class foo {}"
7457
# Code to be used in simple link tests
7458
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7460
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7463
# save warnings/boilerplate of simple test code
7464
_LT_COMPILER_BOILERPLATE
7465
_LT_LINKER_BOILERPLATE
7467
# Allow CC to be a program name with arguments.
7469
lt_save_CFLAGS=$CFLAGS
7475
_LT_TAGVAR(compiler, $1)=$CC
7476
_LT_TAGVAR(LD, $1)="$LD"
7477
_LT_CC_BASENAME([$compiler])
7479
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7480
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7482
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7483
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7484
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7486
if test -n "$compiler"; then
7487
_LT_COMPILER_NO_RTTI($1)
7488
_LT_COMPILER_PIC($1)
7489
_LT_COMPILER_C_O($1)
7490
_LT_COMPILER_FILE_LOCKS($1)
7491
_LT_LINKER_SHLIBS($1)
7492
_LT_LINKER_HARDCODE_LIBPATH($1)
7501
CFLAGS=$lt_save_CFLAGS
7502
])# _LT_LANG_GCJ_CONFIG
7505
# _LT_LANG_GO_CONFIG([TAG])
7506
# --------------------------
7507
# Ensure that the configuration variables for the GNU Go compiler
7508
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7509
# to write the compiler configuration to `libtool'.
7510
m4_defun([_LT_LANG_GO_CONFIG],
7511
[AC_REQUIRE([LT_PROG_GO])dnl
7514
# Source file extension for Go test sources.
7517
# Object file extension for compiled Go test sources.
7519
_LT_TAGVAR(objext, $1)=$objext
7521
# Code to be used in simple compile tests
7522
lt_simple_compile_test_code="package main; func main() { }"
7524
# Code to be used in simple link tests
7525
lt_simple_link_test_code='package main; func main() { }'
7527
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7530
# save warnings/boilerplate of simple test code
7531
_LT_COMPILER_BOILERPLATE
7532
_LT_LINKER_BOILERPLATE
7534
# Allow CC to be a program name with arguments.
7536
lt_save_CFLAGS=$CFLAGS
7542
_LT_TAGVAR(compiler, $1)=$CC
7543
_LT_TAGVAR(LD, $1)="$LD"
7544
_LT_CC_BASENAME([$compiler])
7546
# Go did not exist at the time GCC didn't implicitly link libc in.
7547
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7549
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7550
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7551
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7553
if test -n "$compiler"; then
7554
_LT_COMPILER_NO_RTTI($1)
7555
_LT_COMPILER_PIC($1)
7556
_LT_COMPILER_C_O($1)
7557
_LT_COMPILER_FILE_LOCKS($1)
7558
_LT_LINKER_SHLIBS($1)
7559
_LT_LINKER_HARDCODE_LIBPATH($1)
7568
CFLAGS=$lt_save_CFLAGS
7569
])# _LT_LANG_GO_CONFIG
7572
# _LT_LANG_RC_CONFIG([TAG])
7573
# -------------------------
7574
# Ensure that the configuration variables for the Windows resource compiler
7575
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7576
# to write the compiler configuration to `libtool'.
7577
m4_defun([_LT_LANG_RC_CONFIG],
7578
[AC_REQUIRE([LT_PROG_RC])dnl
7581
# Source file extension for RC test sources.
7584
# Object file extension for compiled RC test sources.
7586
_LT_TAGVAR(objext, $1)=$objext
7588
# Code to be used in simple compile tests
7589
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7591
# Code to be used in simple link tests
7592
lt_simple_link_test_code="$lt_simple_compile_test_code"
7594
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7597
# save warnings/boilerplate of simple test code
7598
_LT_COMPILER_BOILERPLATE
7599
_LT_LINKER_BOILERPLATE
7601
# Allow CC to be a program name with arguments.
7603
lt_save_CFLAGS=$CFLAGS
7609
_LT_TAGVAR(compiler, $1)=$CC
7610
_LT_CC_BASENAME([$compiler])
7611
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7613
if test -n "$compiler"; then
7621
CFLAGS=$lt_save_CFLAGS
7622
])# _LT_LANG_RC_CONFIG
7627
AC_DEFUN([LT_PROG_GCJ],
7628
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7629
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7630
[AC_CHECK_TOOL(GCJ, gcj,)
7631
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7632
AC_SUBST(GCJFLAGS)])])[]dnl
7636
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7637
dnl aclocal-1.4 backwards compatibility:
7638
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7643
AC_DEFUN([LT_PROG_GO],
7644
[AC_CHECK_TOOL(GOC, gccgo,)
7650
AC_DEFUN([LT_PROG_RC],
7651
[AC_CHECK_TOOL(RC, windres,)
7655
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7656
dnl aclocal-1.4 backwards compatibility:
7657
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7662
# If we don't have a new enough Autoconf to choose the best grep
7663
# available, choose the one first in the user's PATH.
7664
m4_defun([_LT_DECL_EGREP],
7665
[AC_REQUIRE([AC_PROG_EGREP])dnl
7666
AC_REQUIRE([AC_PROG_FGREP])dnl
7667
test -z "$GREP" && GREP=grep
7668
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7669
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7670
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7671
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7678
# If we don't have a new enough Autoconf to choose the best objdump
7679
# available, choose the one first in the user's PATH.
7680
m4_defun([_LT_DECL_OBJDUMP],
7681
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7682
test -z "$OBJDUMP" && OBJDUMP=objdump
7683
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7689
# Ensure DLLTOOL variable is set.
7690
m4_defun([_LT_DECL_DLLTOOL],
7691
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7692
test -z "$DLLTOOL" && DLLTOOL=dlltool
7693
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
6344
7699
# Check for a fully-functional sed program, that truncates
6345
7700
# as few characters as possible. Prefer GNU sed if found.
6346
AC_DEFUN([LT_AC_PROG_SED],
7701
m4_defun([_LT_DECL_SED],
7703
test -z "$SED" && SED=sed
7704
Xsed="$SED -e 1s/^X//"
7705
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7706
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7707
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7710
m4_ifndef([AC_PROG_SED], [
7711
# NOTE: This macro has been submitted for inclusion into #
7712
# GNU Autoconf as AC_PROG_SED. When it is available in #
7713
# a released version of Autoconf we should remove this #
7714
# macro and use it instead. #
7716
m4_defun([AC_PROG_SED],
6347
7717
[AC_MSG_CHECKING([for a sed that does not truncate output])
6348
7718
AC_CACHE_VAL(lt_cv_path_SED,
6349
7719
[# Loop through the user's path and test for sed and gsed.
6395
7766
SED=$lt_cv_path_SED
6396
7768
AC_MSG_RESULT([$SED])
7773
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7774
dnl aclocal-1.4 backwards compatibility:
7775
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7778
# _LT_CHECK_SHELL_FEATURES
7779
# ------------------------
7780
# Find out whether the shell is Bourne or XSI compatible,
7781
# or has some other useful features.
7782
m4_defun([_LT_CHECK_SHELL_FEATURES],
7783
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7784
# Try some XSI features
7787
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7789
&& eval 'test $(( 1 + 1 )) -eq 2 \
7790
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7792
AC_MSG_RESULT([$xsi_shell])
7793
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7795
AC_MSG_CHECKING([whether the shell understands "+="])
7797
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7799
&& lt_shell_append=yes
7800
AC_MSG_RESULT([$lt_shell_append])
7801
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7803
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7808
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7810
# test EBCDIC or ASCII
7811
case `echo X|tr X '\101'` in
7812
A) # ASCII based system
7813
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7814
lt_SP2NL='tr \040 \012'
7815
lt_NL2SP='tr \015\012 \040\040'
7817
*) # EBCDIC based system
7818
lt_SP2NL='tr \100 \n'
7819
lt_NL2SP='tr \r\n \100\100'
7822
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7823
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7824
])# _LT_CHECK_SHELL_FEATURES
7827
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7828
# ------------------------------------------------------
7829
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7830
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7831
m4_defun([_LT_PROG_FUNCTION_REPLACE],
7833
sed -e '/^$1 ()$/,/^} # $1 /c\
7836
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7837
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7838
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7839
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7840
test 0 -eq $? || _lt_function_replace_fail=:
7844
# _LT_PROG_REPLACE_SHELLFNS
7845
# -------------------------
7846
# Replace existing portable implementations of several shell functions with
7847
# equivalent extended shell implementations where those features are available..
7848
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7849
[if test x"$xsi_shell" = xyes; then
7850
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7852
*/*) func_dirname_result="${1%/*}${2}" ;;
7853
* ) func_dirname_result="${3}" ;;
7856
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7857
func_basename_result="${1##*/}"])
7859
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7861
*/*) func_dirname_result="${1%/*}${2}" ;;
7862
* ) func_dirname_result="${3}" ;;
7864
func_basename_result="${1##*/}"])
7866
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7867
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7868
# positional parameters, so assign one to ordinary parameter first.
7869
func_stripname_result=${3}
7870
func_stripname_result=${func_stripname_result#"${1}"}
7871
func_stripname_result=${func_stripname_result%"${2}"}])
7873
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7874
func_split_long_opt_name=${1%%=*}
7875
func_split_long_opt_arg=${1#*=}])
7877
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7878
func_split_short_opt_arg=${1#??}
7879
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7881
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7883
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7884
*) func_lo2o_result=${1} ;;
7887
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7889
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7891
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7894
if test x"$lt_shell_append" = xyes; then
7895
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7897
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7898
func_quote_for_eval "${2}"
7899
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7900
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7902
# Save a `func_append' function call where possible by direct use of '+='
7903
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7904
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7905
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7906
test 0 -eq $? || _lt_function_replace_fail=:
7908
# Save a `func_append' function call even when '+=' is not available
7909
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7910
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7911
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7912
test 0 -eq $? || _lt_function_replace_fail=:
7915
if test x"$_lt_function_replace_fail" = x":"; then
7916
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7920
# _LT_PATH_CONVERSION_FUNCTIONS
7921
# -----------------------------
7922
# Determine which file name conversion functions should be used by
7923
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7924
# for certain cross-compile configurations and native mingw.
7925
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7926
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7927
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7928
AC_MSG_CHECKING([how to convert $build file names to $host format])
7929
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7933
*-*-mingw* ) # actually msys
7934
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7937
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7939
* ) # otherwise, assume *nix
7940
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7946
*-*-mingw* ) # actually msys
7947
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7950
lt_cv_to_host_file_cmd=func_convert_file_noop
7952
* ) # otherwise, assume *nix
7953
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7957
* ) # unhandled hosts (and "normal" native builds)
7958
lt_cv_to_host_file_cmd=func_convert_file_noop
7962
to_host_file_cmd=$lt_cv_to_host_file_cmd
7963
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7964
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7965
[0], [convert $build file names to $host format])dnl
7967
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7968
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7969
[#assume ordinary cross tools, or native build.
7970
lt_cv_to_tool_file_cmd=func_convert_file_noop
7974
*-*-mingw* ) # actually msys
7975
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7981
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7982
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7983
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7984
[0], [convert $build files to toolchain format])dnl
7985
])# _LT_PATH_CONVERSION_FUNCTIONS
7987
# Helper functions for option handling. -*- Autoconf -*-
7989
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7991
# Written by Gary V. Vaughan, 2004
7993
# This file is free software; the Free Software Foundation gives
7994
# unlimited permission to copy and/or distribute it, with or without
7995
# modifications, as long as this notice is preserved.
7997
# serial 7 ltoptions.m4
7999
# This is to help aclocal find these macros, as it can't see m4_define.
8000
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8003
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8004
# ------------------------------------------
8005
m4_define([_LT_MANGLE_OPTION],
8006
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8009
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8010
# ---------------------------------------
8011
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8012
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8014
m4_define([_LT_SET_OPTION],
8015
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8016
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8017
_LT_MANGLE_DEFUN([$1], [$2]),
8018
[m4_warning([Unknown $1 option `$2'])])[]dnl
8022
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8023
# ------------------------------------------------------------
8024
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8025
m4_define([_LT_IF_OPTION],
8026
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8029
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8030
# -------------------------------------------------------
8031
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8033
m4_define([_LT_UNLESS_OPTIONS],
8034
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8035
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8036
[m4_define([$0_found])])])[]dnl
8037
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8042
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8043
# ----------------------------------------
8044
# OPTION-LIST is a space-separated list of Libtool options associated
8045
# with MACRO-NAME. If any OPTION has a matching handler declared with
8046
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8047
# the unknown option and exit.
8048
m4_defun([_LT_SET_OPTIONS],
8050
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8051
[_LT_SET_OPTION([$1], _LT_Option)])
8053
m4_if([$1],[LT_INIT],[
8055
dnl Simply set some default values (i.e off) if boolean options were not
8057
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8059
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8062
dnl If no reference was made to various pairs of opposing options, then
8063
dnl we run the default mode handler for the pair. For example, if neither
8064
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8065
dnl archives by default:
8066
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8067
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8068
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8069
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8070
[_LT_ENABLE_FAST_INSTALL])
8076
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8077
# -----------------------------------------
8078
m4_define([_LT_MANGLE_DEFUN],
8079
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8082
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8083
# -----------------------------------------------
8084
m4_define([LT_OPTION_DEFINE],
8085
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8086
])# LT_OPTION_DEFINE
8091
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8094
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8095
[_LT_SET_OPTION([LT_INIT], [dlopen])
8096
AC_DIAGNOSE([obsolete],
8097
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8098
put the `dlopen' option into LT_INIT's first parameter.])
8101
dnl aclocal-1.4 backwards compatibility:
8102
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8107
# Declare package support for building win32 dll's.
8108
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8109
[enable_win32_dll=yes
8112
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8113
AC_CHECK_TOOL(AS, as, false)
8114
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8115
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8119
test -z "$AS" && AS=as
8120
_LT_DECL([], [AS], [1], [Assembler program])dnl
8122
test -z "$DLLTOOL" && DLLTOOL=dlltool
8123
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8125
test -z "$OBJDUMP" && OBJDUMP=objdump
8126
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8129
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8130
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8131
_LT_SET_OPTION([LT_INIT], [win32-dll])
8132
AC_DIAGNOSE([obsolete],
8133
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8134
put the `win32-dll' option into LT_INIT's first parameter.])
8137
dnl aclocal-1.4 backwards compatibility:
8138
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8141
# _LT_ENABLE_SHARED([DEFAULT])
8142
# ----------------------------
8143
# implement the --enable-shared flag, and supports the `shared' and
8144
# `disable-shared' LT_INIT options.
8145
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8146
m4_define([_LT_ENABLE_SHARED],
8147
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8148
AC_ARG_ENABLE([shared],
8149
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8150
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8151
[p=${PACKAGE-default}
8153
yes) enable_shared=yes ;;
8154
no) enable_shared=no ;;
8157
# Look at the argument we got. We use all the common list separators.
8158
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8159
for pkg in $enableval; do
8161
if test "X$pkg" = "X$p"; then
8168
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8170
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8171
[Whether or not to build shared libraries])
8172
])# _LT_ENABLE_SHARED
8174
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8175
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8178
AC_DEFUN([AC_ENABLE_SHARED],
8179
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8182
AC_DEFUN([AC_DISABLE_SHARED],
8183
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8186
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8187
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8189
dnl aclocal-1.4 backwards compatibility:
8190
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8191
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8195
# _LT_ENABLE_STATIC([DEFAULT])
8196
# ----------------------------
8197
# implement the --enable-static flag, and support the `static' and
8198
# `disable-static' LT_INIT options.
8199
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8200
m4_define([_LT_ENABLE_STATIC],
8201
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8202
AC_ARG_ENABLE([static],
8203
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8204
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8205
[p=${PACKAGE-default}
8207
yes) enable_static=yes ;;
8208
no) enable_static=no ;;
8211
# Look at the argument we got. We use all the common list separators.
8212
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213
for pkg in $enableval; do
8215
if test "X$pkg" = "X$p"; then
8222
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8224
_LT_DECL([build_old_libs], [enable_static], [0],
8225
[Whether or not to build static libraries])
8226
])# _LT_ENABLE_STATIC
8228
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8229
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8232
AC_DEFUN([AC_ENABLE_STATIC],
8233
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8236
AC_DEFUN([AC_DISABLE_STATIC],
8237
[_LT_SET_OPTION([LT_INIT], [disable-static])
8240
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8241
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8243
dnl aclocal-1.4 backwards compatibility:
8244
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8245
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8249
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8250
# ----------------------------------
8251
# implement the --enable-fast-install flag, and support the `fast-install'
8252
# and `disable-fast-install' LT_INIT options.
8253
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8254
m4_define([_LT_ENABLE_FAST_INSTALL],
8255
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8256
AC_ARG_ENABLE([fast-install],
8257
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8258
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8259
[p=${PACKAGE-default}
8261
yes) enable_fast_install=yes ;;
8262
no) enable_fast_install=no ;;
8264
enable_fast_install=no
8265
# Look at the argument we got. We use all the common list separators.
8266
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267
for pkg in $enableval; do
8269
if test "X$pkg" = "X$p"; then
8270
enable_fast_install=yes
8276
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8278
_LT_DECL([fast_install], [enable_fast_install], [0],
8279
[Whether or not to optimize for fast installation])dnl
8280
])# _LT_ENABLE_FAST_INSTALL
8282
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8283
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8286
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8287
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8288
AC_DIAGNOSE([obsolete],
8289
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8290
the `fast-install' option into LT_INIT's first parameter.])
8293
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8294
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8295
AC_DIAGNOSE([obsolete],
8296
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8297
the `disable-fast-install' option into LT_INIT's first parameter.])
8300
dnl aclocal-1.4 backwards compatibility:
8301
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8302
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8305
# _LT_WITH_PIC([MODE])
8306
# --------------------
8307
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8309
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8310
m4_define([_LT_WITH_PIC],
8312
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8313
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8314
[lt_p=${PACKAGE-default}
8316
yes|no) pic_mode=$withval ;;
8319
# Look at the argument we got. We use all the common list separators.
8320
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8321
for lt_pkg in $withval; do
8323
if test "X$lt_pkg" = "X$lt_p"; then
8332
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8334
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8337
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8338
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8341
AU_DEFUN([AC_LIBTOOL_PICMODE],
8342
[_LT_SET_OPTION([LT_INIT], [pic-only])
8343
AC_DIAGNOSE([obsolete],
8344
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8345
put the `pic-only' option into LT_INIT's first parameter.])
8348
dnl aclocal-1.4 backwards compatibility:
8349
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8352
m4_define([_LTDL_MODE], [])
8353
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8354
[m4_define([_LTDL_MODE], [nonrecursive])])
8355
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8356
[m4_define([_LTDL_MODE], [recursive])])
8357
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8358
[m4_define([_LTDL_MODE], [subproject])])
8360
m4_define([_LTDL_TYPE], [])
8361
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8362
[m4_define([_LTDL_TYPE], [installable])])
8363
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8364
[m4_define([_LTDL_TYPE], [convenience])])
8366
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8368
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8369
# Written by Gary V. Vaughan, 2004
8371
# This file is free software; the Free Software Foundation gives
8372
# unlimited permission to copy and/or distribute it, with or without
8373
# modifications, as long as this notice is preserved.
8375
# serial 6 ltsugar.m4
8377
# This is to help aclocal find these macros, as it can't see m4_define.
8378
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8381
# lt_join(SEP, ARG1, [ARG2...])
8382
# -----------------------------
8383
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8384
# associated separator.
8385
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8386
# versions in m4sugar had bugs.
8387
m4_define([lt_join],
8388
[m4_if([$#], [1], [],
8390
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8391
m4_define([_lt_join],
8392
[m4_if([$#$2], [2], [],
8393
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8399
# Manipulate m4 lists.
8400
# These macros are necessary as long as will still need to support
8401
# Autoconf-2.59 which quotes differently.
8402
m4_define([lt_car], [[$1]])
8404
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8406
[m4_dquote(m4_shift($@))])])
8407
m4_define([lt_unquote], $1)
8410
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8411
# ------------------------------------------
8412
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8413
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8414
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8415
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8416
# than defined and empty).
8418
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8419
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8420
m4_define([lt_append],
8422
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8426
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8427
# ----------------------------------------------------------
8428
# Produce a SEP delimited list of all paired combinations of elements of
8429
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8430
# has the form PREFIXmINFIXSUFFIXn.
8431
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8432
m4_define([lt_combine],
8433
[m4_if(m4_eval([$# > 3]), [1],
8434
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8435
[[m4_foreach([_Lt_prefix], [$2],
8436
[m4_foreach([_Lt_suffix],
8437
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8438
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8441
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8442
# -----------------------------------------------------------------------
8443
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8444
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8445
m4_define([lt_if_append_uniq],
8447
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8448
[lt_append([$1], [$2], [$3])$4],
8450
[lt_append([$1], [$2], [$3])$4])])
8453
# lt_dict_add(DICT, KEY, VALUE)
8454
# -----------------------------
8455
m4_define([lt_dict_add],
8456
[m4_define([$1($2)], [$3])])
8459
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8460
# --------------------------------------------
8461
m4_define([lt_dict_add_subkey],
8462
[m4_define([$1($2:$3)], [$4])])
8465
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8466
# ----------------------------------
8467
m4_define([lt_dict_fetch],
8469
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8470
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8473
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8474
# -----------------------------------------------------------------
8475
m4_define([lt_if_dict_fetch],
8476
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8481
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8482
# --------------------------------------------------------------
8483
m4_define([lt_dict_filter],
8484
[m4_if([$5], [], [],
8485
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8486
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8487
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8490
# ltversion.m4 -- version numbers -*- Autoconf -*-
8492
# Copyright (C) 2004 Free Software Foundation, Inc.
8493
# Written by Scott James Remnant, 2004
8495
# This file is free software; the Free Software Foundation gives
8496
# unlimited permission to copy and/or distribute it, with or without
8497
# modifications, as long as this notice is preserved.
8501
# serial 3337 ltversion.m4
8502
# This file is part of GNU Libtool
8504
m4_define([LT_PACKAGE_VERSION], [2.4.2])
8505
m4_define([LT_PACKAGE_REVISION], [1.3337])
8507
AC_DEFUN([LTVERSION_VERSION],
8508
[macro_version='2.4.2'
8509
macro_revision='1.3337'
8510
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8511
_LT_DECL(, macro_revision, 0)
8514
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8516
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8517
# Written by Scott James Remnant, 2004.
8519
# This file is free software; the Free Software Foundation gives
8520
# unlimited permission to copy and/or distribute it, with or without
8521
# modifications, as long as this notice is preserved.
8523
# serial 5 lt~obsolete.m4
8525
# These exist entirely to fool aclocal when bootstrapping libtool.
8527
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8528
# which have later been changed to m4_define as they aren't part of the
8529
# exported API, or moved to Autoconf or Automake where they belong.
8531
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8532
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8533
# using a macro with the same name in our local m4/libtool.m4 it'll
8534
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8535
# and doesn't know about Autoconf macros at all.)
8537
# So we provide this file, which has a silly filename so it's always
8538
# included after everything else. This provides aclocal with the
8539
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8540
# because those macros already exist, or will be overwritten later.
8541
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8543
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8544
# Yes, that means every name once taken will need to remain here until
8545
# we give up compatibility with versions before 1.7, at which point
8546
# we need to keep only those names which we still refer to.
8548
# This is to help aclocal find these macros, as it can't see m4_define.
8549
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8551
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8552
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8553
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8554
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8555
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8556
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8557
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8558
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8559
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8560
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8561
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8562
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8563
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8564
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8565
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8566
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8567
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8568
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8569
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8570
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8571
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8572
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8573
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8574
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8575
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8576
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8577
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8578
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8579
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8580
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8581
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8582
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8583
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8584
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8585
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8586
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8587
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8588
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8589
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8590
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8591
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8592
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8593
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8594
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8595
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8596
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8597
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8598
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8599
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8600
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8601
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8602
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8603
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8604
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8605
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8606
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8607
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8608
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8609
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8610
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8611
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
6399
8613
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8614
# serial 1 (pkg-config-0.24)
6401
8616
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.