118
196
# Sed substitution that helps us do robust quoting. It backslashifies
119
197
# metacharacters that are still active within double-quoted strings.
120
Xsed='sed -e 1s/^X//'
121
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
198
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
123
200
# Same as above, but do not quote variable references.
124
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
201
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
126
203
# Sed substitution to delay expansion of an escaped shell variable in a
127
204
# double_quote_subst'ed string.
128
205
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
207
# Sed substitution to delay expansion of an escaped single quote.
208
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
130
210
# Sed substitution to avoid accidental globbing in evaled expressions
131
211
no_glob_subst='s/\*/\\\*/g'
136
213
# Global variables:
137
default_ofile=libtool
138
215
can_build_shared=yes
140
217
# All known linkers require a `.a' archive for static linking (except MSVC,
141
218
# which needs '.lib').
143
ltmain="$ac_aux_dir/ltmain.sh"
144
ofile="$default_ofile"
145
221
with_gnu_ld="$lt_cv_prog_gnu_ld"
147
AC_CHECK_TOOL(AR, ar, false)
148
AC_CHECK_TOOL(RANLIB, ranlib, :)
149
AC_CHECK_TOOL(STRIP, strip, :)
152
224
old_CFLAGS="$CFLAGS"
154
226
# Set sane defaults for various variables
155
test -z "$AR" && AR=ar
156
test -z "$AR_FLAGS" && AR_FLAGS=cru
157
test -z "$AS" && AS=as
158
227
test -z "$CC" && CC=cc
159
228
test -z "$LTCC" && LTCC=$CC
160
test -z "$DLLTOOL" && DLLTOOL=dlltool
229
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
161
230
test -z "$LD" && LD=ld
162
test -z "$LN_S" && LN_S="ln -s"
163
test -z "$MAGIC_CMD" && MAGIC_CMD=file
164
test -z "$NM" && NM=nm
165
test -z "$SED" && SED=sed
166
test -z "$OBJDUMP" && OBJDUMP=objdump
167
test -z "$RANLIB" && RANLIB=:
168
test -z "$STRIP" && STRIP=:
169
231
test -z "$ac_objext" && ac_objext=o
171
# Determine commands to create old-style static archives.
172
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
173
old_postinstall_cmds='chmod 644 $oldlib'
174
old_postuninstall_cmds=
176
if test -n "$RANLIB"; then
179
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
182
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
185
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
188
233
_LT_CC_BASENAME([$compiler])
190
235
# Only perform the check for file, if the check method requires it
236
test -z "$MAGIC_CMD" && MAGIC_CMD=file
191
237
case $deplibs_check_method in
193
239
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
199
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
200
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
201
enable_win32_dll=yes, enable_win32_dll=no)
203
AC_ARG_ENABLE([libtool-lock],
204
[AC_HELP_STRING([--disable-libtool-lock],
205
[avoid locking (might break parallel builds)])])
206
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
209
[AC_HELP_STRING([--with-pic],
210
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
211
[pic_mode="$withval"],
213
test -z "$pic_mode" && pic_mode=default
215
245
# Use C for the default configuration in the libtool script
217
AC_LIBTOOL_LANG_C_CONFIG
222
# _LT_AC_SYS_COMPILER
246
LT_SUPPORTED_TAG([CC])
248
_LT_LANG_DEFAULT_CONFIG
255
# Note that this code is called both from `configure', and `config.status'
256
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
257
# `config.status' has no value for ac_aux_dir unless we are using Automake,
258
# so we pass a copy along to make sure it has a sensible value anyway.
259
m4_defun([_LT_PROG_LTMAIN],
260
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
261
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
262
ltmain="$ac_aux_dir/ltmain.sh"
266
## ------------------------------------- ##
267
## Accumulate code for creating libtool. ##
268
## ------------------------------------- ##
270
# So that we can recreate a full libtool script including additional
271
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
272
# in macros and then make a single call at the end using the `libtool'
276
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
277
# ----------------------------------------
278
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
279
m4_define([_LT_CONFIG_LIBTOOL_INIT],
281
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
286
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
289
# _LT_CONFIG_LIBTOOL([COMMANDS])
290
# ------------------------------
291
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
292
m4_define([_LT_CONFIG_LIBTOOL],
294
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
299
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
302
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
303
# -----------------------------------------------------
304
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
305
[_LT_CONFIG_LIBTOOL([$1])
306
_LT_CONFIG_LIBTOOL_INIT([$2])
310
# _LT_FORMAT_COMMENT([COMMENT])
311
# -----------------------------
312
# Add leading comment marks to the start of each line, and a trailing
313
# full-stop to the whole comment if one is not present already.
314
m4_define([_LT_FORMAT_COMMENT],
316
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
317
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
322
## ------------------------ ##
323
## FIXME: Eliminate VARNAME ##
324
## ------------------------ ##
327
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
328
# -------------------------------------------------------------------
329
# CONFIGNAME is the name given to the value in the libtool script.
330
# VARNAME is the (base) name used in the configure script.
331
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
332
# VARNAME. Any other value will be used directly.
333
m4_define([_LT_DECL],
334
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
335
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
336
[m4_ifval([$1], [$1], [$2])])
337
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
339
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
340
lt_dict_add_subkey([lt_decl_dict], [$2],
341
[tagged?], [m4_ifval([$5], [yes], [no])])])
345
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
346
# --------------------------------------------------------
347
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
350
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
351
# ------------------------------------------------
352
m4_define([lt_decl_tag_varnames],
353
[_lt_decl_filter([tagged?], [yes], $@)])
356
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
357
# ---------------------------------------------------------
358
m4_define([_lt_decl_filter],
360
[0], [m4_fatal([$0: too few arguments: $#])],
361
[1], [m4_fatal([$0: too few arguments: $#: $1])],
362
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
363
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
364
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
368
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
369
# --------------------------------------------------
370
m4_define([lt_decl_quote_varnames],
371
[_lt_decl_filter([value], [1], $@)])
374
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
375
# ---------------------------------------------------
376
m4_define([lt_decl_dquote_varnames],
377
[_lt_decl_filter([value], [2], $@)])
380
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
381
# ---------------------------------------------------
382
m4_define([lt_decl_varnames_tagged],
383
[m4_assert([$# <= 2])dnl
384
_$0(m4_quote(m4_default([$1], [[, ]])),
385
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
386
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
387
m4_define([_lt_decl_varnames_tagged],
388
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
391
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
392
# ------------------------------------------------
393
m4_define([lt_decl_all_varnames],
394
[_$0(m4_quote(m4_default([$1], [[, ]])),
396
m4_quote(lt_decl_varnames),
397
m4_quote(m4_shift($@))))[]dnl
399
m4_define([_lt_decl_all_varnames],
400
[lt_join($@, lt_decl_varnames_tagged([$1],
401
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
405
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
406
# ------------------------------------
407
# Quote a variable value, and forward it to `config.status' so that its
408
# declaration there will have the same value as in `configure'. VARNAME
409
# must have a single quote delimited value for this to work.
410
m4_define([_LT_CONFIG_STATUS_DECLARE],
411
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
414
# _LT_CONFIG_STATUS_DECLARATIONS
415
# ------------------------------
416
# We delimit libtool config variables with single quotes, so when
417
# we write them to config.status, we have to be sure to quote all
418
# embedded single quotes properly. In configure, this macro expands
419
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
421
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
422
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
423
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
424
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
429
# Output comment and list of tags supported by the script
430
m4_defun([_LT_LIBTOOL_TAGS],
431
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
432
available_tags="_LT_TAGS"dnl
436
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
437
# -----------------------------------
438
# Extract the dictionary values for VARNAME (optionally with TAG) and
439
# expand to a commented shell variable setting:
441
# # Some comment about what VAR is for.
442
# visible_name=$lt_internal_name
443
m4_define([_LT_LIBTOOL_DECLARE],
444
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
445
[description])))[]dnl
446
m4_pushdef([_libtool_name],
447
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
448
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
449
[0], [_libtool_name=[$]$1],
450
[1], [_libtool_name=$lt_[]$1],
451
[2], [_libtool_name=$lt_[]$1],
452
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
453
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
457
# _LT_LIBTOOL_CONFIG_VARS
458
# -----------------------
459
# Produce commented declarations of non-tagged libtool config variables
460
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
461
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
462
# section) are produced by _LT_LIBTOOL_TAG_VARS.
463
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
464
[m4_foreach([_lt_var],
465
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
466
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
469
# _LT_LIBTOOL_TAG_VARS(TAG)
470
# -------------------------
471
m4_define([_LT_LIBTOOL_TAG_VARS],
472
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
473
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
476
# _LT_TAGVAR(VARNAME, [TAGNAME])
477
# ------------------------------
478
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
481
# _LT_CONFIG_COMMANDS
223
482
# -------------------
224
AC_DEFUN([_LT_AC_SYS_COMPILER],
483
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
484
# variables for single and double quote escaping we saved from calls
485
# to _LT_DECL, we can put quote escaped variables declarations
486
# into `config.status', and then the shell code to quote escape them in
487
# for loops in `config.status'. Finally, any additional code accumulated
488
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
489
m4_defun([_LT_CONFIG_COMMANDS],
490
[AC_PROVIDE_IFELSE([LT_OUTPUT],
491
dnl If the libtool generation code has been placed in $CONFIG_LT,
492
dnl instead of duplicating it all over again into config.status,
493
dnl then we will have config.status run $CONFIG_LT later, so it
494
dnl needs to know what name is stored there:
495
[AC_CONFIG_COMMANDS([libtool],
496
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
497
dnl If the libtool generation code is destined for config.status,
498
dnl expand the accumulated commands and init code now:
499
[AC_CONFIG_COMMANDS([libtool],
500
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
501
])#_LT_CONFIG_COMMANDS
505
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
508
# The HP-UX ksh and POSIX shell print the target directory to stdout
510
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
512
sed_quote_subst='$sed_quote_subst'
513
double_quote_subst='$double_quote_subst'
514
delay_variable_subst='$delay_variable_subst'
515
_LT_CONFIG_STATUS_DECLARATIONS
518
compiler='$compiler_DEFAULT'
520
# Quote evaled strings.
521
for var in lt_decl_all_varnames([[ \
522
]], lt_decl_quote_varnames); do
523
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
524
*[[\\\\\\\`\\"\\\$]]*)
525
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
528
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
533
# Double-quote double-evaled strings.
534
for var in lt_decl_all_varnames([[ \
535
]], lt_decl_dquote_varnames); do
536
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
537
*[[\\\\\\\`\\"\\\$]]*)
538
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
541
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
546
# Fix-up fallback echo if it was mangled by the above quoting rules.
548
*'\\\[$]0 --fallback-echo"')dnl "
549
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
553
_LT_OUTPUT_LIBTOOL_INIT
559
# This macro allows early generation of the libtool script (before
560
# AC_OUTPUT is called), incase it is used in configure for compilation
562
AC_DEFUN([LT_OUTPUT],
563
[: ${CONFIG_LT=./config.lt}
564
AC_MSG_NOTICE([creating $CONFIG_LT])
565
cat >"$CONFIG_LT" <<_LTEOF
567
# Generated by $as_me.
568
# Run this file to recreate a libtool stub with the current configuration.
571
SHELL=\${CONFIG_SHELL-$SHELL}
574
cat >>"$CONFIG_LT" <<\_LTEOF
578
exec AS_MESSAGE_FD>&1
579
exec AS_MESSAGE_LOG_FD>>config.log
582
AS_BOX([Running $as_me.])
583
} >&AS_MESSAGE_LOG_FD
586
\`$as_me' creates a local libtool stub from the current configuration,
587
for use in further configure time tests before the real libtool is
590
Usage: $[0] [[OPTIONS]]
592
-h, --help print this help, then exit
593
-V, --version print version number, then exit
594
-q, --quiet do not print progress messages
595
-d, --debug don't remove temporary files
597
Report bugs to <bug-libtool@gnu.org>."
600
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
601
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
602
configured by $[0], generated by m4_PACKAGE_STRING.
604
Copyright (C) 2008 Free Software Foundation, Inc.
605
This config.lt script is free software; the Free Software Foundation
606
gives unlimited permision to copy, distribute and modify it."
611
--version | --v* | -V )
612
echo "$lt_cl_version"; exit 0 ;;
614
echo "$lt_cl_help"; exit 0 ;;
615
--debug | --d* | -d )
617
--quiet | --q* | --silent | --s* | -q )
620
-*) AC_MSG_ERROR([unrecognized option: $[1]
621
Try \`$[0] --help' for more information.]) ;;
623
*) AC_MSG_ERROR([unrecognized argument: $[1]
624
Try \`$[0] --help' for more information.]) ;;
629
if $lt_cl_silent; then
630
exec AS_MESSAGE_FD>/dev/null
634
cat >>"$CONFIG_LT" <<_LTEOF
635
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
638
cat >>"$CONFIG_LT" <<\_LTEOF
639
AC_MSG_NOTICE([creating $ofile])
640
_LT_OUTPUT_LIBTOOL_COMMANDS
643
chmod +x "$CONFIG_LT"
645
# configure is writing to config.log, but config.lt does its own redirection,
646
# appending to config.log, which fails on DOS, as config.log is still kept
647
# open by configure. Here we exec the FD to /dev/null, effectively closing
648
# config.log, so it can be properly (re)opened and appended to by config.lt.
649
if test "$no_create" != yes; then
651
test "$silent" = yes &&
652
lt_config_lt_args="$lt_config_lt_args --quiet"
653
exec AS_MESSAGE_LOG_FD>/dev/null
654
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
655
exec AS_MESSAGE_LOG_FD>>config.log
656
$lt_cl_success || AS_EXIT(1)
663
# If TAG is the built-in tag, create an initial libtool script with a
664
# default configuration from the untagged config vars. Otherwise add code
665
# to config.status for appending the configuration named by TAG from the
666
# matching tagged config vars.
667
m4_defun([_LT_CONFIG],
668
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
669
_LT_CONFIG_SAVE_COMMANDS([
670
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
671
m4_if(_LT_TAG, [C], [
672
# See if we are running on zsh, and set the options which allow our
673
# commands through without removal of \ escapes.
674
if test -n "${ZSH_VERSION+set}" ; then
679
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
682
cat <<_LT_EOF >> "$cfgfile"
685
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
686
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
687
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
688
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
693
# ### BEGIN LIBTOOL CONFIG
694
_LT_LIBTOOL_CONFIG_VARS
696
# ### END LIBTOOL CONFIG
702
cat <<\_LT_EOF >> "$cfgfile"
703
# AIX sometimes has problems with the GCC collect2 program. For some
704
# reason, if we set the COLLECT_NAMES environment variable, the problems
705
# vanish in a puff of smoke.
706
if test "X${COLLECT_NAMES+set}" != Xset; then
716
# We use sed instead of cat because bash on DJGPP gets confused if
717
# if finds mixed CR/LF and LF-only lines. Since sed operates in
718
# text mode, it properly converts lines to CR/LF. This bash problem
719
# is reportedly fixed, but why not run on old versions too?
720
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
721
|| (rm -f "$cfgfile"; exit 1)
723
_LT_PROG_XSI_SHELLFNS
725
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
726
|| (rm -f "$cfgfile"; exit 1)
728
mv -f "$cfgfile" "$ofile" ||
729
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
732
[cat <<_LT_EOF >> "$ofile"
734
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
735
dnl in a comment (ie after a #).
736
# ### BEGIN LIBTOOL TAG CONFIG: $1
737
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
738
# ### END LIBTOOL TAG CONFIG: $1
745
TIMESTAMP='$TIMESTAMP'
748
])dnl /_LT_CONFIG_SAVE_COMMANDS
752
# LT_SUPPORTED_TAG(TAG)
753
# ---------------------
754
# Trace this macro to discover what tags are supported by the libtool
755
# --tag option, using:
756
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
757
AC_DEFUN([LT_SUPPORTED_TAG], [])
760
# C support is built-in for now
761
m4_define([_LT_LANG_C_enabled], [])
762
m4_define([_LT_TAGS], [])
767
# Enable libtool support for the given language if not already enabled.
769
[AC_BEFORE([$0], [LT_OUTPUT])dnl
772
[C++], [_LT_LANG(CXX)],
773
[Java], [_LT_LANG(GCJ)],
774
[Fortran 77], [_LT_LANG(F77)],
775
[Fortran], [_LT_LANG(FC)],
776
[Windows Resource], [_LT_LANG(RC)],
777
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
779
[m4_fatal([$0: unsupported language: "$1"])])])dnl
786
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
787
[LT_SUPPORTED_TAG([$1])dnl
788
m4_append([_LT_TAGS], [$1 ])dnl
789
m4_define([_LT_LANG_]$1[_enabled], [])dnl
790
_LT_LANG_$1_CONFIG($1)])dnl
794
# _LT_LANG_DEFAULT_CONFIG
795
# -----------------------
796
m4_defun([_LT_LANG_DEFAULT_CONFIG],
797
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
799
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
801
AC_PROVIDE_IFELSE([AC_PROG_F77],
803
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
805
AC_PROVIDE_IFELSE([AC_PROG_FC],
807
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
809
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
810
dnl pulling things in needlessly.
811
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
813
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
815
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
817
[m4_ifdef([AC_PROG_GCJ],
818
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
819
m4_ifdef([A][M_PROG_GCJ],
820
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
821
m4_ifdef([LT_PROG_GCJ],
822
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
824
AC_PROVIDE_IFELSE([LT_PROG_RC],
826
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
827
])# _LT_LANG_DEFAULT_CONFIG
830
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
831
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
832
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
833
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
834
dnl aclocal-1.4 backwards compatibility:
835
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
836
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
837
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
838
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
843
m4_defun([_LT_TAG_COMPILER],
225
844
[AC_REQUIRE([AC_PROG_CC])dnl
846
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
847
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
848
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
849
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
227
851
# If no C compiler was specified, use CC.
228
852
LTCC=${LTCC-"$CC"}
854
# If no C compiler flags were specified, use CFLAGS.
855
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
230
857
# Allow CC to be a program name with arguments.
232
])# _LT_AC_SYS_COMPILER
235
# _LT_CC_BASENAME(CC)
236
# -------------------
237
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
238
AC_DEFUN([_LT_CC_BASENAME],
239
[for cc_temp in $1""; do
241
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
242
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
247
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
251
862
# _LT_COMPILER_BOILERPLATE
252
863
# ------------------------
253
864
# Check for compiler boilerplate output or warnings with
254
865
# the simple compiler test code.
255
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
256
[ac_outfile=conftest.$ac_objext
257
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
258
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
866
m4_defun([_LT_COMPILER_BOILERPLATE],
867
[m4_require([_LT_DECL_SED])dnl
868
ac_outfile=conftest.$ac_objext
869
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
870
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
259
871
_lt_compiler_boilerplate=`cat conftest.err`
261
873
])# _LT_COMPILER_BOILERPLATE
2424
3279
AC_CHECK_LIB(m, cos, LIBM="-lm")
2430
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2431
# -----------------------------------
2432
# sets LIBLTDL to the link flags for the libltdl convenience library and
2433
# LTDLINCL to the include flags for the libltdl header and adds
2434
# --enable-ltdl-convenience to the configure arguments. Note that
2435
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2436
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2437
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2438
# (note the single quotes!). If your package is not flat and you're not
2439
# using automake, define top_builddir and top_srcdir appropriately in
2441
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2442
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2443
case $enable_ltdl_convenience in
2444
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2445
"") enable_ltdl_convenience=yes
2446
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2448
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2449
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2450
# For backwards non-gettext consistent compatibility...
2452
])# AC_LIBLTDL_CONVENIENCE
2455
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2456
# -----------------------------------
2457
# sets LIBLTDL to the link flags for the libltdl installable library and
2458
# LTDLINCL to the include flags for the libltdl header and adds
2459
# --enable-ltdl-install to the configure arguments. Note that
2460
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2461
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2462
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2463
# '${top_srcdir}/' (note the single quotes!). If your package is not
2464
# flat and you're not using automake, define top_builddir and top_srcdir
2465
# appropriately in the Makefiles.
2466
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2467
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2468
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2469
AC_CHECK_LIB(ltdl, lt_dlinit,
2470
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2471
[if test x"$enable_ltdl_install" = xno; then
2472
AC_MSG_WARN([libltdl not installed, but installation disabled])
2474
enable_ltdl_install=yes
2477
if test x"$enable_ltdl_install" = x"yes"; then
2478
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2479
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2480
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2482
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2486
# For backwards non-gettext consistent compatibility...
2488
])# AC_LIBLTDL_INSTALLABLE
2493
# enable support for C++ libraries
2494
AC_DEFUN([AC_LIBTOOL_CXX],
2495
[AC_REQUIRE([_LT_AC_LANG_CXX])
2501
AC_DEFUN([_LT_AC_LANG_CXX],
2502
[AC_REQUIRE([AC_PROG_CXX])
2503
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2504
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2507
# _LT_AC_PROG_CXXCPP
2509
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2511
AC_REQUIRE([AC_PROG_CXX])
2512
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2513
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2514
(test "X$CXX" != "Xg++"))) ; then
2517
])# _LT_AC_PROG_CXXCPP
2521
# enable support for Fortran 77 libraries
2522
AC_DEFUN([AC_LIBTOOL_F77],
2523
[AC_REQUIRE([_LT_AC_LANG_F77])
2529
AC_DEFUN([_LT_AC_LANG_F77],
2530
[AC_REQUIRE([AC_PROG_F77])
2531
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2537
# enable support for GCJ libraries
2538
AC_DEFUN([AC_LIBTOOL_GCJ],
2539
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2545
AC_DEFUN([_LT_AC_LANG_GCJ],
2546
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2547
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2548
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2549
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2550
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2551
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2552
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2558
# enable support for Windows resource files
2559
AC_DEFUN([AC_LIBTOOL_RC],
2560
[AC_REQUIRE([LT_AC_PROG_RC])
2561
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2565
# AC_LIBTOOL_LANG_C_CONFIG
2566
# ------------------------
2567
# Ensure that the configuration vars for the C compiler are
2568
# suitably defined. Those variables are subsequently used by
2569
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2570
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2571
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2575
# Source file extension for C test sources.
2578
# Object file extension for compiled C test sources.
2580
_LT_AC_TAGVAR(objext, $1)=$objext
2582
# Code to be used in simple compile tests
2583
lt_simple_compile_test_code="int some_variable = 0;\n"
2585
# Code to be used in simple link tests
2586
lt_simple_link_test_code='int main(){return(0);}\n'
2590
# save warnings/boilerplate of simple test code
2591
_LT_COMPILER_BOILERPLATE
2592
_LT_LINKER_BOILERPLATE
2595
# Check for any special shared library compilation flags.
2597
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2598
if test "$GCC" = no; then
2601
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2605
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2606
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2607
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2609
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2610
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2616
# Check to make sure the static flag actually works.
2618
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2619
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2620
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2622
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2626
## There is no encapsulation within the following macros, do not change
2627
## the running order or otherwise move them around unless you know exactly
2628
## what you are doing...
2629
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2630
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2631
AC_LIBTOOL_PROG_CC_C_O($1)
2632
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2633
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2634
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2635
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2636
AC_LIBTOOL_SYS_LIB_STRIP
2637
AC_LIBTOOL_DLOPEN_SELF($1)
2639
# Report which librarie types wil actually be built
2640
AC_MSG_CHECKING([if libtool supports shared libraries])
2641
AC_MSG_RESULT([$can_build_shared])
2643
AC_MSG_CHECKING([whether to build shared libraries])
2644
test "$can_build_shared" = "no" && enable_shared=no
2646
# On AIX, shared libraries and static libraries use the same namespace, and
2647
# are all built from PIC.
2650
test "$enable_shared" = yes && enable_static=no
2651
if test -n "$RANLIB"; then
2652
archive_cmds="$archive_cmds~\$RANLIB \$lib"
2653
postinstall_cmds='$RANLIB $lib'
2658
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2659
test "$enable_shared" = yes && enable_static=no
2663
AC_MSG_RESULT([$enable_shared])
2665
AC_MSG_CHECKING([whether to build static libraries])
2666
# Make sure either enable_shared or enable_static is yes.
2667
test "$enable_shared" = yes || enable_static=yes
2668
AC_MSG_RESULT([$enable_static])
2670
AC_LIBTOOL_CONFIG($1)
2674
])# AC_LIBTOOL_LANG_C_CONFIG
2677
# AC_LIBTOOL_LANG_CXX_CONFIG
2678
# --------------------------
2679
# Ensure that the configuration vars for the C compiler are
2680
# suitably defined. Those variables are subsequently used by
2681
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2682
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2683
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2685
AC_REQUIRE([AC_PROG_CXX])
2686
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2688
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2689
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2690
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2691
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2692
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2693
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2694
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2695
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2696
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2697
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2698
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2699
_LT_AC_TAGVAR(module_cmds, $1)=
2700
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2701
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2702
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2703
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2704
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2705
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2707
# Dependencies to place before and after the object being linked:
2708
_LT_AC_TAGVAR(predep_objects, $1)=
2709
_LT_AC_TAGVAR(postdep_objects, $1)=
2710
_LT_AC_TAGVAR(predeps, $1)=
2711
_LT_AC_TAGVAR(postdeps, $1)=
2712
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2714
# Source file extension for C++ test sources.
2717
# Object file extension for compiled C++ test sources.
2719
_LT_AC_TAGVAR(objext, $1)=$objext
2721
# Code to be used in simple compile tests
2722
lt_simple_compile_test_code="int some_variable = 0;\n"
2724
# Code to be used in simple link tests
2725
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2727
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2730
# save warnings/boilerplate of simple test code
2731
_LT_COMPILER_BOILERPLATE
2732
_LT_LINKER_BOILERPLATE
2734
# Allow CC to be a program name with arguments.
2739
lt_save_with_gnu_ld=$with_gnu_ld
2740
lt_save_path_LD=$lt_cv_path_LD
2741
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2742
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2744
unset lt_cv_prog_gnu_ld
2746
if test -n "${lt_cv_path_LDCXX+set}"; then
2747
lt_cv_path_LD=$lt_cv_path_LDCXX
2751
test -z "${LDCXX+set}" || LD=$LDCXX
2754
_LT_AC_TAGVAR(compiler, $1)=$CC
2755
_LT_CC_BASENAME([$compiler])
2757
# We don't want -fno-exception wen compiling C++ code, so set the
2758
# no_builtin_flag separately
2759
if test "$GXX" = yes; then
2760
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2762
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2765
if test "$GXX" = yes; then
2766
# Set up default GNU C++ configuration
2770
# Check if GNU C++ uses GNU ld as the underlying linker, since the
2771
# archiving commands below assume that GNU ld is being used.
2772
if test "$with_gnu_ld" = yes; then
2773
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2774
_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'
2776
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2777
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2779
# If archive_cmds runs LD, not CC, wlarc should be empty
2780
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2781
# investigate it a little bit more. (MM)
2784
# ancient GNU ld didn't support --whole-archive et. al.
2785
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2786
grep 'no-whole-archive' > /dev/null; then
2787
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2789
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2795
# A generic and very simple default shared library creation
2796
# command for GNU C++ for the case where it uses the native
2797
# linker, instead of GNU ld. If possible, this setting should
2798
# overridden to take advantage of the native linker features on
2799
# the platform it is being used on.
2800
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2803
# Commands to make compiler produce verbose output that lists
2804
# what "hidden" libraries, object files and flags are used when
2805
# linking a shared library.
2806
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2814
# PORTME: fill in a description of your system's C++ link characteristics
2815
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2816
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2819
# FIXME: insert proper C++ library support
2820
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2823
if test "$host_cpu" = ia64; then
2824
# On IA64, the linker does run time linking by default, so we don't
2825
# have to do anything special.
2826
aix_use_runtimelinking=no
2827
exp_sym_flag='-Bexport'
2830
aix_use_runtimelinking=no
2832
# Test if we are trying to use run time linking or normal
2833
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
2834
# need to do runtime linking.
2835
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2836
for ld_flag in $LDFLAGS; do
2839
aix_use_runtimelinking=yes
2846
exp_sym_flag='-bexport'
2847
no_entry_flag='-bnoentry'
2850
# When large executables or shared objects are built, AIX ld can
2851
# have problems creating the table of contents. If linking a library
2852
# or program results in "error TOC overflow" add -mminimal-toc to
2853
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2854
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2856
_LT_AC_TAGVAR(archive_cmds, $1)=''
2857
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2858
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2859
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2861
if test "$GXX" = yes; then
2862
case $host_os in aix4.[[012]]|aix4.[[012]].*)
2863
# We only want to do this on AIX 4.2 and lower, the check
2864
# below for broken collect2 doesn't work under 4.3+
2865
collect2name=`${CC} -print-prog-name=collect2`
2866
if test -f "$collect2name" && \
2867
strings "$collect2name" | grep resolve_lib_name >/dev/null
2869
# We have reworked collect2
2870
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2872
# We have old collect2
2873
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2874
# It fails to find uninstalled libraries when the uninstalled
2875
# path is not listed in the libpath. Setting hardcode_minus_L
2876
# to unsupported forces relinking
2877
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2878
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2879
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2882
shared_flag='-shared'
2883
if test "$aix_use_runtimelinking" = yes; then
2884
shared_flag="$shared_flag "'${wl}-G'
2888
if test "$host_cpu" = ia64; then
2889
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2890
# chokes on -Wl,-G. The following line is correct:
2893
if test "$aix_use_runtimelinking" = yes; then
2894
shared_flag='${wl}-G'
2896
shared_flag='${wl}-bM:SRE'
2901
# It seems that -bexpall does not export symbols beginning with
2902
# underscore (_), so it is better to generate a list of symbols to export.
2903
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2904
if test "$aix_use_runtimelinking" = yes; then
2905
# Warning - without using the other runtime loading flags (-brtl),
2906
# -berok will link without error, but may produce a broken library.
2907
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2908
# Determine the default libpath from the value encoded in an empty executable.
2909
_LT_AC_SYS_LIBPATH_AIX
2910
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2912
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2914
if test "$host_cpu" = ia64; then
2915
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2916
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2917
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2919
# Determine the default libpath from the value encoded in an empty executable.
2920
_LT_AC_SYS_LIBPATH_AIX
2921
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2922
# Warning - without using the other run time loading flags,
2923
# -berok will link without error, but may produce a broken library.
2924
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2925
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2926
# -bexpall does not export symbols beginning with underscore (_)
2927
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2928
# Exported symbols can be pulled into shared objects from archives
2929
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2930
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2931
# This is similar to how AIX traditionally builds its shared libraries.
2932
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2937
case $cc_basename in
2939
# FIXME: insert proper C++ library support
2940
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2946
cygwin* | mingw* | pw32*)
2947
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2948
# as there is no search path for DLLs.
2949
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2950
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2951
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2952
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2954
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2955
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2956
# If the export-symbols file already is a .def file (1st line
2957
# is EXPORTS), use it as is; otherwise, prepend...
2958
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2959
cp $export_symbols $output_objdir/$soname.def;
2961
echo EXPORTS > $output_objdir/$soname.def;
2962
cat $export_symbols >> $output_objdir/$soname.def;
2964
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
2966
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2969
darwin* | rhapsody*)
2971
rhapsody* | darwin1.[[012]])
2972
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2975
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2976
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2978
case ${MACOSX_DEPLOYMENT_TARGET} in
2980
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2983
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2989
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2990
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2991
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2992
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2993
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2994
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2996
if test "$GXX" = yes ; then
2997
lt_int_apple_cc_single_mod=no
2998
output_verbose_link_cmd='echo'
2999
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3000
lt_int_apple_cc_single_mod=yes
3002
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3003
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3005
_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'
3007
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3008
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3009
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3010
_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}'
3012
_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}'
3014
_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}'
3016
case $cc_basename in
3018
output_verbose_link_cmd='echo'
3019
_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'
3020
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3021
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3022
_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}'
3023
_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}'
3026
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3033
case $cc_basename in
3035
# FIXME: insert proper C++ library support
3036
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3039
# Green Hills C++ Compiler
3040
# FIXME: insert proper C++ library support
3041
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3044
# FIXME: insert proper C++ library support
3045
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3050
# C++ shared libraries reported to be fairly broken before switch to ELF
3051
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3054
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3056
freebsd* | kfreebsd*-gnu | dragonfly*)
3057
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3059
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3064
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3065
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3066
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3067
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3068
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3069
# but as the default
3070
# location of the library.
3072
case $cc_basename in
3074
# FIXME: insert proper C++ library support
3075
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3078
_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'
3079
# Commands to make compiler produce verbose output that lists
3080
# what "hidden" libraries, object files and flags are used when
3081
# linking a shared library.
3083
# There doesn't appear to be a way to prevent this compiler from
3084
# explicitly linking system object files so we need to strip them
3085
# from the output so that they don't get included in the library
3087
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'
3090
if test "$GXX" = yes; then
3091
_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'
3093
# FIXME: insert proper C++ library support
3094
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3100
if test $with_gnu_ld = no; then
3103
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3104
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3105
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3111
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3112
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3113
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3119
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3120
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3123
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3124
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3125
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3126
# but as the default
3127
# location of the library.
3130
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3131
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3132
# but as the default
3133
# location of the library.
3137
case $cc_basename in
3139
# FIXME: insert proper C++ library support
3140
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3145
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3148
_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'
3151
# Commands to make compiler produce verbose output that lists
3152
# what "hidden" libraries, object files and flags are used when
3153
# linking a shared library.
3155
# There doesn't appear to be a way to prevent this compiler from
3156
# explicitly linking system object files so we need to strip them
3157
# from the output so that they don't get included in the library
3159
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'
3162
if test "$GXX" = yes; then
3163
if test $with_gnu_ld = no; then
3166
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3169
_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'
3174
# FIXME: insert proper C++ library support
3175
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3181
case $cc_basename in
3184
_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'
3186
# Archives containing C++ object files must be created using
3187
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3188
# necessary to make sure instantiated templates are included
3190
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3193
if test "$GXX" = yes; then
3194
if test "$with_gnu_ld" = no; then
3195
_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'
3197
_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'
3200
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3203
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3204
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3207
case $cc_basename in
3209
# Kuck and Associates, Inc. (KAI) C++ Compiler
3211
# KCC will only create a shared library if the output file
3212
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3213
# to its proper name (with version) after linking.
3214
_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'
3215
_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'
3216
# Commands to make compiler produce verbose output that lists
3217
# what "hidden" libraries, object files and flags are used when
3218
# linking a shared library.
3220
# There doesn't appear to be a way to prevent this compiler from
3221
# explicitly linking system object files so we need to strip them
3222
# from the output so that they don't get included in the library
3224
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'
3226
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3227
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3229
# Archives containing C++ object files must be created using
3230
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3231
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3236
# version 8.0 and above of icpc choke on multiply defined symbols
3237
# if we add $predep_objects and $postdep_objects, however 7.1 and
3238
# earlier do not add the objects themselves.
3239
case `$CC -V 2>&1` in
3241
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3242
_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'
3244
*) # Version 8.0 or newer
3247
ia64*) tmp_idyn=' -i_dynamic';;
3249
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3250
_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'
3253
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3254
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3255
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3256
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3259
# Portland Group C++ compiler
3260
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3261
_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'
3263
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3264
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3265
_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'
3269
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3270
_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'
3272
runpath_var=LD_RUN_PATH
3273
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3274
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3276
# Commands to make compiler produce verbose output that lists
3277
# what "hidden" libraries, object files and flags are used when
3278
# linking a shared library.
3280
# There doesn't appear to be a way to prevent this compiler from
3281
# explicitly linking system object files so we need to strip them
3282
# from the output so that they don't get included in the library
3284
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'
3289
# FIXME: insert proper C++ library support
3290
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3293
# FIXME: insert proper C++ library support
3294
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3297
case $cc_basename in
3299
# FIXME: insert proper C++ library support
3300
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3303
# FIXME: insert proper C++ library support
3304
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3308
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3309
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3310
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3312
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3313
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3314
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3316
# Workaround some broken pre-1.5 toolchains
3317
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3320
# C++ shared libraries are fairly broken
3321
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3324
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3325
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3326
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3327
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3328
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3329
_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'
3330
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3331
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3333
output_verbose_link_cmd='echo'
3336
case $cc_basename in
3338
# Kuck and Associates, Inc. (KAI) C++ Compiler
3340
# KCC will only create a shared library if the output file
3341
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3342
# to its proper name (with version) after linking.
3343
_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'
3345
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3346
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3348
# Archives containing C++ object files must be created using
3349
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3350
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3354
# Rational C++ 2.4.1
3355
# FIXME: insert proper C++ library support
3356
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3359
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3360
_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'
3362
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3363
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3365
# Commands to make compiler produce verbose output that lists
3366
# what "hidden" libraries, object files and flags are used when
3367
# linking a shared library.
3369
# There doesn't appear to be a way to prevent this compiler from
3370
# explicitly linking system object files so we need to strip them
3371
# from the output so that they don't get included in the library
3373
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'
3376
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3377
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3378
_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'
3380
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3381
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3383
# Commands to make compiler produce verbose output that lists
3384
# what "hidden" libraries, object files and flags are used when
3385
# linking a shared library.
3386
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3389
# FIXME: insert proper C++ library support
3390
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3396
case $cc_basename in
3398
# Kuck and Associates, Inc. (KAI) C++ Compiler
3400
# KCC will only create a shared library if the output file
3401
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3402
# to its proper name (with version) after linking.
3403
_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'
3405
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3406
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3408
# Archives containing C++ object files must be created using
3409
# the KAI C++ compiler.
3410
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3413
# Rational C++ 2.4.1
3414
# FIXME: insert proper C++ library support
3415
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3418
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3419
_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'
3420
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3421
echo "-hidden">> $lib.exp~
3422
$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~
3425
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3426
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3428
# Commands to make compiler produce verbose output that lists
3429
# what "hidden" libraries, object files and flags are used when
3430
# linking a shared library.
3432
# There doesn't appear to be a way to prevent this compiler from
3433
# explicitly linking system object files so we need to strip them
3434
# from the output so that they don't get included in the library
3436
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'
3439
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3440
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3441
_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'
3443
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3444
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3446
# Commands to make compiler produce verbose output that lists
3447
# what "hidden" libraries, object files and flags are used when
3448
# linking a shared library.
3449
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3452
# FIXME: insert proper C++ library support
3453
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3459
# FIXME: insert proper C++ library support
3460
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3463
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3464
case $cc_basename in
3466
# FIXME: insert proper C++ library support
3467
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3470
# FIXME: insert proper C++ library support
3471
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3476
case $cc_basename in
3479
# FIXME: insert proper C++ library support
3480
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3484
# FIXME: insert proper C++ library support
3485
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3488
# FIXME: insert proper C++ library support
3489
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3494
case $cc_basename in
3496
# Sun C++ 4.2, 5.x and Centerline C++
3497
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3498
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3499
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3500
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3501
$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'
3503
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3504
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3506
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3508
# The C++ compiler is used as linker so we must use $wl
3509
# flag to pass the commands to the underlying system
3510
# linker. We must also pass each convience library through
3511
# to the system linker between allextract/defaultextract.
3512
# The C++ compiler will combine linker options so we
3513
# cannot just pass the convience library names through
3515
# Supported since Solaris 2.6 (maybe 2.5.1?)
3516
_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'
3519
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3521
output_verbose_link_cmd='echo'
3523
# Archives containing C++ object files must be created using
3524
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3525
# necessary to make sure instantiated templates are included
3527
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3530
# Green Hills C++ Compiler
3531
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3533
# The C++ compiler must be used to create the archive.
3534
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3537
# GNU C++ compiler with Solaris linker
3538
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3539
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3540
if $CC --version | grep -v '^2\.7' > /dev/null; then
3541
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3542
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3543
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3545
# Commands to make compiler produce verbose output that lists
3546
# what "hidden" libraries, object files and flags are used when
3547
# linking a shared library.
3548
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3550
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3552
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3553
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3554
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3556
# Commands to make compiler produce verbose output that lists
3557
# what "hidden" libraries, object files and flags are used when
3558
# linking a shared library.
3559
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3562
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3567
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3568
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3571
case $cc_basename in
3573
# NonStop-UX NCC 3.20
3574
# FIXME: insert proper C++ library support
3575
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3578
# FIXME: insert proper C++ library support
3579
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3584
# FIXME: insert proper C++ library support
3585
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3588
# FIXME: insert proper C++ library support
3589
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3592
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3593
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3595
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3596
_LT_AC_TAGVAR(LD, $1)="$LD"
3599
## There is no encapsulation within the following macros, do not change
3600
## the running order or otherwise move them around unless you know exactly
3601
## what you are doing...
3602
AC_LIBTOOL_POSTDEP_PREDEP($1)
3603
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3604
AC_LIBTOOL_PROG_CC_C_O($1)
3605
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3606
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3607
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3608
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3609
AC_LIBTOOL_SYS_LIB_STRIP
3610
AC_LIBTOOL_DLOPEN_SELF($1)
3612
AC_LIBTOOL_CONFIG($1)
3619
with_gnu_ldcxx=$with_gnu_ld
3620
with_gnu_ld=$lt_save_with_gnu_ld
3621
lt_cv_path_LDCXX=$lt_cv_path_LD
3622
lt_cv_path_LD=$lt_save_path_LD
3623
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3624
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3625
])# AC_LIBTOOL_LANG_CXX_CONFIG
3627
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3628
# ------------------------
3629
# Figure out "hidden" library dependencies from verbose
3630
# compiler output when linking a shared library.
3631
# Parse the compiler output and extract the necessary
3632
# objects, libraries and library flags.
3633
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3634
dnl we can't use the lt_simple_compile_test_code here,
3635
dnl because it contains code intended for an executable,
3636
dnl not a library. It's possible we should let each
3637
dnl tag define a new lt_????_link_test_code variable,
3638
dnl but it's only used here...
3639
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3641
void foo (void) { a = 0; }
3643
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3647
Foo (void) { a = 0; }
3652
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3660
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3663
public void bar (void) {
3669
dnl Parse the compiler output and extract the necessary
3670
dnl objects, libraries and library flags.
3671
if AC_TRY_EVAL(ac_compile); then
3672
# Parse the compiler output and extract the necessary
3673
# objects, libraries and library flags.
3675
# Sentinel used to keep track of whether or not we are before
3676
# the conftest object file.
3677
pre_test_object_deps_done=no
3679
# The `*' in the case matches for architectures that use `case' in
3680
# $output_verbose_cmd can trigger glob expansion during the loop
3681
# eval without this substitution.
3682
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3684
for p in `eval $output_verbose_link_cmd`; do
3688
# Some compilers place space between "-{L,R}" and the path.
3691
|| test $p = "-R"; then
3698
if test "$pre_test_object_deps_done" = no; then
3701
# Internal compiler library paths should come after those
3702
# provided the user. The postdeps already come after the
3703
# user supplied libs so there is no need to process them.
3704
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3705
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3707
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3710
# The "-l" case would never come before the object being
3711
# linked, so don't bother handling this case.
3714
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3715
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3717
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3723
# This assumes that the test object file only shows up
3724
# once in the compiler output.
3725
if test "$p" = "conftest.$objext"; then
3726
pre_test_object_deps_done=yes
3730
if test "$pre_test_object_deps_done" = no; then
3731
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3732
_LT_AC_TAGVAR(predep_objects, $1)="$p"
3734
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3737
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3738
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
3740
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3745
*) ;; # Ignore the rest.
3753
echo "libtool.m4: error: problem compiling $1 test program"
3756
$rm -f confest.$objext
3758
# PORTME: override above test on systems where it is broken
3762
case $cc_basename in
3764
# Adding this requires a known-good setup of shared libraries for
3765
# Sun compiler versions before 5.6, else PIC objects from an old
3766
# archive will be linked into the output, leading to subtle bugs.
3767
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3773
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3774
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3776
])# AC_LIBTOOL_POSTDEP_PREDEP
3778
# AC_LIBTOOL_LANG_F77_CONFIG
3779
# ------------------------
3780
# Ensure that the configuration vars for the C compiler are
3781
# suitably defined. Those variables are subsequently used by
3782
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3783
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3784
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3785
[AC_REQUIRE([AC_PROG_F77])
3786
AC_LANG_PUSH(Fortran 77)
3788
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3789
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3790
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3791
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3792
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3793
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3794
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3795
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3796
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3797
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3798
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3799
_LT_AC_TAGVAR(module_cmds, $1)=
3800
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3801
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3802
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3803
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3804
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3805
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3807
# Source file extension for f77 test sources.
3810
# Object file extension for compiled f77 test sources.
3812
_LT_AC_TAGVAR(objext, $1)=$objext
3814
# Code to be used in simple compile tests
3815
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3817
# Code to be used in simple link tests
3818
lt_simple_link_test_code=" program t\n end\n"
3820
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3823
# save warnings/boilerplate of simple test code
3824
_LT_COMPILER_BOILERPLATE
3825
_LT_LINKER_BOILERPLATE
3827
# Allow CC to be a program name with arguments.
3831
_LT_AC_TAGVAR(compiler, $1)=$CC
3832
_LT_CC_BASENAME([$compiler])
3834
AC_MSG_CHECKING([if libtool supports shared libraries])
3835
AC_MSG_RESULT([$can_build_shared])
3837
AC_MSG_CHECKING([whether to build shared libraries])
3838
test "$can_build_shared" = "no" && enable_shared=no
3840
# On AIX, shared libraries and static libraries use the same namespace, and
3841
# are all built from PIC.
3844
test "$enable_shared" = yes && enable_static=no
3845
if test -n "$RANLIB"; then
3846
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3847
postinstall_cmds='$RANLIB $lib'
3851
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3852
test "$enable_shared" = yes && enable_static=no
3856
AC_MSG_RESULT([$enable_shared])
3858
AC_MSG_CHECKING([whether to build static libraries])
3859
# Make sure either enable_shared or enable_static is yes.
3860
test "$enable_shared" = yes || enable_static=yes
3861
AC_MSG_RESULT([$enable_static])
3863
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3865
_LT_AC_TAGVAR(GCC, $1)="$G77"
3866
_LT_AC_TAGVAR(LD, $1)="$LD"
3868
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3869
AC_LIBTOOL_PROG_CC_C_O($1)
3870
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3871
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3872
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3873
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3874
AC_LIBTOOL_SYS_LIB_STRIP
3877
AC_LIBTOOL_CONFIG($1)
3881
])# AC_LIBTOOL_LANG_F77_CONFIG
3884
# AC_LIBTOOL_LANG_GCJ_CONFIG
3885
# --------------------------
3886
# Ensure that the configuration vars for the C compiler are
3887
# suitably defined. Those variables are subsequently used by
3888
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3889
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3890
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3893
# Source file extension for Java test sources.
3896
# Object file extension for compiled Java test sources.
3898
_LT_AC_TAGVAR(objext, $1)=$objext
3900
# Code to be used in simple compile tests
3901
lt_simple_compile_test_code="class foo {}\n"
3903
# Code to be used in simple link tests
3904
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3906
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3909
# save warnings/boilerplate of simple test code
3910
_LT_COMPILER_BOILERPLATE
3911
_LT_LINKER_BOILERPLATE
3913
# Allow CC to be a program name with arguments.
3917
_LT_AC_TAGVAR(compiler, $1)=$CC
3918
_LT_CC_BASENAME([$compiler])
3920
# GCJ did not exist at the time GCC didn't implicitly link libc in.
3921
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3923
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3926
## There is no encapsulation within the following macros, do not change
3927
## the running order or otherwise move them around unless you know exactly
3928
## what you are doing...
3929
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3930
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3931
AC_LIBTOOL_PROG_CC_C_O($1)
3932
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3933
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3934
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3935
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3936
AC_LIBTOOL_SYS_LIB_STRIP
3937
AC_LIBTOOL_DLOPEN_SELF($1)
3939
AC_LIBTOOL_CONFIG($1)
3943
])# AC_LIBTOOL_LANG_GCJ_CONFIG
3946
# AC_LIBTOOL_LANG_RC_CONFIG
3947
# --------------------------
3948
# Ensure that the configuration vars for the Windows resource compiler are
3949
# suitably defined. Those variables are subsequently used by
3950
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3951
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3952
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
3955
# Source file extension for RC test sources.
3958
# Object file extension for compiled RC test sources.
3960
_LT_AC_TAGVAR(objext, $1)=$objext
3962
# Code to be used in simple compile tests
3963
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
3965
# Code to be used in simple link tests
3966
lt_simple_link_test_code="$lt_simple_compile_test_code"
3968
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3971
# save warnings/boilerplate of simple test code
3972
_LT_COMPILER_BOILERPLATE
3973
_LT_LINKER_BOILERPLATE
3975
# Allow CC to be a program name with arguments.
3979
_LT_AC_TAGVAR(compiler, $1)=$CC
3980
_LT_CC_BASENAME([$compiler])
3981
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3983
AC_LIBTOOL_CONFIG($1)
3987
])# AC_LIBTOOL_LANG_RC_CONFIG
3990
# AC_LIBTOOL_CONFIG([TAGNAME])
3991
# ----------------------------
3992
# If TAGNAME is not passed, then create an initial libtool script
3993
# with a default configuration from the untagged config vars. Otherwise
3994
# add code to config.status for appending the configuration named by
3995
# TAGNAME from the matching tagged config vars.
3996
AC_DEFUN([AC_LIBTOOL_CONFIG],
3997
[# The else clause should only fire when bootstrapping the
3998
# libtool distribution, otherwise you forgot to ship ltmain.sh
3999
# with your package, and you will get complaints that there are
4000
# no rules to generate ltmain.sh.
4001
if test -f "$ltmain"; then
4002
# See if we are running on zsh, and set the options which allow our commands through
4003
# without removal of \ escapes.
4004
if test -n "${ZSH_VERSION+set}" ; then
4005
setopt NO_GLOB_SUBST
4007
# Now quote all the things that may contain metacharacters while being
4008
# careful not to overquote the AC_SUBSTed values. We take copies of the
4009
# variables and quote the copies for generation of the libtool script.
4010
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4012
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4013
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4014
deplibs_check_method reload_flag reload_cmds need_locks \
4015
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4016
lt_cv_sys_global_symbol_to_c_name_address \
4017
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4018
old_postinstall_cmds old_postuninstall_cmds \
4019
_LT_AC_TAGVAR(compiler, $1) \
4020
_LT_AC_TAGVAR(CC, $1) \
4021
_LT_AC_TAGVAR(LD, $1) \
4022
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4023
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4024
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4025
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4026
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4027
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4028
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4029
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4030
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4031
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4032
_LT_AC_TAGVAR(predep_objects, $1) \
4033
_LT_AC_TAGVAR(postdep_objects, $1) \
4034
_LT_AC_TAGVAR(predeps, $1) \
4035
_LT_AC_TAGVAR(postdeps, $1) \
4036
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4037
_LT_AC_TAGVAR(archive_cmds, $1) \
4038
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4039
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4040
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4041
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4042
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4043
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4044
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4045
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4046
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4047
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4048
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4049
_LT_AC_TAGVAR(module_cmds, $1) \
4050
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4051
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4052
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4053
_LT_AC_TAGVAR(include_expsyms, $1); do
4056
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4057
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4058
_LT_AC_TAGVAR(archive_cmds, $1) | \
4059
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4060
_LT_AC_TAGVAR(module_cmds, $1) | \
4061
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4062
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4063
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4064
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4065
postinstall_cmds | postuninstall_cmds | \
4066
old_postinstall_cmds | old_postuninstall_cmds | \
4067
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4068
# Double-quote double-evaled strings.
4069
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4072
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4078
*'\[$]0 --fallback-echo"')
4079
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4084
[cfgfile="${ofile}T"
4085
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4087
AC_MSG_NOTICE([creating $ofile])],
4090
cat <<__EOF__ >> "$cfgfile"
4094
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4095
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4096
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4098
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4099
# Free Software Foundation, Inc.
4101
# This file is part of GNU Libtool:
4102
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4104
# This program is free software; you can redistribute it and/or modify
4105
# it under the terms of the GNU General Public License as published by
4106
# the Free Software Foundation; either version 2 of the License, or
4107
# (at your option) any later version.
4109
# This program is distributed in the hope that it will be useful, but
4110
# WITHOUT ANY WARRANTY; without even the implied warranty of
4111
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4112
# General Public License for more details.
4114
# You should have received a copy of the GNU General Public License
4115
# along with this program; if not, write to the Free Software
4116
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4118
# As a special exception to the GNU General Public License, if you
4119
# distribute this file as part of a program that contains a
4120
# configuration script generated by Autoconf, you may include it under
4121
# the same distribution terms that you use for the rest of that program.
4123
# A sed program that does not truncate output.
4126
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4127
Xsed="$SED -e 1s/^X//"
4129
# The HP-UX ksh and POSIX shell print the target directory to stdout
4131
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4133
# The names of the tagged configurations supported by this script.
4136
# ### BEGIN LIBTOOL CONFIG],
4137
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4139
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4141
# Shell to use when invoking shell scripts.
4144
# Whether or not to build shared libraries.
4145
build_libtool_libs=$enable_shared
4147
# Whether or not to build static libraries.
4148
build_old_libs=$enable_static
4150
# Whether or not to add -lc for building shared libraries.
4151
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4153
# Whether or not to disallow shared libs when runtime libs are static
4154
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4156
# Whether or not to optimize for fast installation.
4157
fast_install=$enable_fast_install
4160
host_alias=$host_alias
4165
build_alias=$build_alias
4169
# An echo program that does not interpret backslashes.
4174
AR_FLAGS=$lt_AR_FLAGS
4179
# A language-specific compiler.
4180
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4182
# Is the compiler the GNU C compiler?
4183
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4188
# The linker used to build libraries.
4189
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4191
# Whether we need hard or soft links.
4194
# A BSD-compatible nm program.
4197
# A symbol stripping program
4200
# Used to examine libraries when file_magic_cmd begins "file"
4201
MAGIC_CMD=$MAGIC_CMD
4203
# Used on cygwin: DLL creation program.
4206
# Used on cygwin: object dumper.
4209
# Used on cygwin: assembler.
4212
# The name of the directory that contains temporary libtool files.
4215
# How to create reloadable object files.
4216
reload_flag=$lt_reload_flag
4217
reload_cmds=$lt_reload_cmds
4219
# How to pass a linker flag through the compiler.
4220
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4222
# Object file suffix (normally "o").
4225
# Old archive suffix (normally "a").
4228
# Shared library suffix (normally ".so").
4229
shrext_cmds='$shrext_cmds'
4231
# Executable file suffix (normally "").
4234
# Additional compiler flags for building library objects.
4235
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4238
# What is the maximum length of a command?
4239
max_cmd_len=$lt_cv_sys_max_cmd_len
4241
# Does compiler simultaneously support -c and -o options?
4242
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4244
# Must we lock files when doing compilation?
4245
need_locks=$lt_need_locks
4247
# Do we need the lib prefix for modules?
4248
need_lib_prefix=$need_lib_prefix
4250
# Do we need a version for libraries?
4251
need_version=$need_version
4253
# Whether dlopen is supported.
4254
dlopen_support=$enable_dlopen
4256
# Whether dlopen of programs is supported.
4257
dlopen_self=$enable_dlopen_self
4259
# Whether dlopen of statically linked programs is supported.
4260
dlopen_self_static=$enable_dlopen_self_static
4262
# Compiler flag to prevent dynamic linking.
4263
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4265
# Compiler flag to turn off builtin functions.
4266
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4268
# Compiler flag to allow reflexive dlopens.
4269
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4271
# Compiler flag to generate shared objects directly from archives.
4272
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4274
# Compiler flag to generate thread-safe objects.
4275
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4277
# Library versioning type.
4278
version_type=$version_type
4280
# Format of library name prefix.
4281
libname_spec=$lt_libname_spec
4283
# List of archive names. First name is the real one, the rest are links.
4284
# The last name is the one that the linker finds with -lNAME.
4285
library_names_spec=$lt_library_names_spec
4287
# The coded name of the library, if different from the real name.
4288
soname_spec=$lt_soname_spec
4290
# Commands used to build and install an old-style archive.
4292
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4293
old_postinstall_cmds=$lt_old_postinstall_cmds
4294
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4296
# Create an old-style archive from a shared archive.
4297
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4299
# Create a temporary old-style archive to link instead of a shared archive.
4300
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4302
# Commands used to build and install a shared archive.
4303
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4304
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4305
postinstall_cmds=$lt_postinstall_cmds
4306
postuninstall_cmds=$lt_postuninstall_cmds
4308
# Commands used to build a loadable module (assumed same as above if empty)
4309
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4310
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4312
# Commands to strip libraries.
4313
old_striplib=$lt_old_striplib
4314
striplib=$lt_striplib
4316
# Dependencies to place before the objects being linked to create a
4318
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4320
# Dependencies to place after the objects being linked to create a
4322
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4324
# Dependencies to place before the objects being linked to create a
4326
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4328
# Dependencies to place after the objects being linked to create a
4330
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4332
# The library search path used internally by the compiler when linking
4334
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4336
# Method to check whether dependent libraries are shared objects.
4337
deplibs_check_method=$lt_deplibs_check_method
4339
# Command to use when deplibs_check_method == file_magic.
4340
file_magic_cmd=$lt_file_magic_cmd
4342
# Flag that allows shared libraries with undefined symbols to be built.
4343
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4345
# Flag that forces no undefined symbols.
4346
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4348
# Commands used to finish a libtool library installation in a directory.
4349
finish_cmds=$lt_finish_cmds
4351
# Same as above, but a single script fragment to be evaled but not shown.
4352
finish_eval=$lt_finish_eval
4354
# Take the output of nm and produce a listing of raw symbols and C names.
4355
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4357
# Transform the output of nm in a proper C declaration
4358
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4360
# Transform the output of nm in a C name address pair
4361
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4363
# This is the shared library runtime path variable.
4364
runpath_var=$runpath_var
4366
# This is the shared library path variable.
4367
shlibpath_var=$shlibpath_var
4369
# Is shlibpath searched before the hard-coded library search path?
4370
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4372
# How to hardcode a shared library path into an executable.
4373
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4375
# Whether we should hardcode library paths into libraries.
4376
hardcode_into_libs=$hardcode_into_libs
4378
# Flag to hardcode \$libdir into a binary during linking.
4379
# This must work even if \$libdir does not exist.
4380
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4382
# If ld is used when linking, flag to hardcode \$libdir into
4383
# a binary during linking. This must work even if \$libdir does
4385
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4387
# Whether we need a single -rpath flag with a separated argument.
4388
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4390
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4392
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4394
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4396
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4398
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4399
# the resulting binary.
4400
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4402
# Set to yes if building a shared library automatically hardcodes DIR into the library
4403
# and all subsequent libraries and executables linked against it.
4404
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4406
# Variables whose values should be saved in libtool wrapper scripts and
4407
# restored at relink time.
4408
variables_saved_for_relink="$variables_saved_for_relink"
4410
# Whether libtool must link a program against all its dependency libraries.
4411
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4413
# Compile-time system search path for libraries
4414
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4416
# Run-time system search path for libraries
4417
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4419
# Fix the shell variable \$srcfile for the compiler.
4420
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4422
# Set to yes if exported symbols are required.
4423
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4425
# The commands to list exported symbols.
4426
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4428
# The commands to extract the exported symbol list from a shared archive.
4429
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4431
# Symbols that should not be listed in the preloaded symbols.
4432
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4434
# Symbols that must always be exported.
4435
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4438
[# ### END LIBTOOL CONFIG],
4439
[# ### END LIBTOOL TAG CONFIG: $tagname])
4446
cat <<\EOF >> "$cfgfile"
4448
# AIX sometimes has problems with the GCC collect2 program. For some
4449
# reason, if we set the COLLECT_NAMES environment variable, the problems
4450
# vanish in a puff of smoke.
4451
if test "X${COLLECT_NAMES+set}" != Xset; then
4453
export COLLECT_NAMES
4459
# We use sed instead of cat because bash on DJGPP gets confused if
4460
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4461
# text mode, it properly converts lines to CR/LF. This bash problem
4462
# is reportedly fixed, but why not run on old versions too?
4463
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4465
mv -f "$cfgfile" "$ofile" || \
4466
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4470
# If there is no Makefile yet, we rely on a make rule to execute
4471
# `config.status --recheck' to rerun these tests and create the
4472
# libtool script then.
4473
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4474
if test -f "$ltmain_in"; then
4475
test -f Makefile && make "$ltmain"
4478
])# AC_LIBTOOL_CONFIG
4481
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4482
# -------------------------------------------
4483
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4484
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4486
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3286
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3287
dnl aclocal-1.4 backwards compatibility:
3288
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3291
# _LT_COMPILER_NO_RTTI([TAGNAME])
3292
# -------------------------------
3293
m4_defun([_LT_COMPILER_NO_RTTI],
3294
[m4_require([_LT_TAG_COMPILER])dnl
3296
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4488
3298
if test "$GCC" = yes; then
4489
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3299
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4491
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3301
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4492
3302
lt_cv_prog_compiler_rtti_exceptions,
4493
3303
[-fno-rtti -fno-exceptions], [],
4494
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3304
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4496
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4499
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4500
# ---------------------------------
4501
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4502
[AC_REQUIRE([AC_CANONICAL_HOST])
4503
AC_REQUIRE([AC_PROG_NM])
4504
AC_REQUIRE([AC_OBJEXT])
3306
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3307
[Compiler flag to turn off builtin functions])
3308
])# _LT_COMPILER_NO_RTTI
3311
# _LT_CMD_GLOBAL_SYMBOLS
3312
# ----------------------
3313
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3314
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3315
AC_REQUIRE([AC_PROG_CC])dnl
3316
AC_REQUIRE([LT_PATH_NM])dnl
3317
AC_REQUIRE([LT_PATH_LD])dnl
3318
m4_require([_LT_DECL_SED])dnl
3319
m4_require([_LT_DECL_EGREP])dnl
3320
m4_require([_LT_TAG_COMPILER])dnl
4505
3322
# Check for command to grab the raw symbol name followed by C symbol from nm.
4506
3323
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4507
3324
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5068
3976
# +Z the default
5071
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3979
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5074
3982
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5075
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3983
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5078
3986
irix5* | irix6* | nonstopux*)
5079
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3987
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5080
3988
# PIC (with -KPIC) is the default.
5081
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5085
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5086
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3989
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3992
linux* | k*bsd*-gnu)
5090
3993
case $cc_basename in
5092
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5093
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5094
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3994
# old Intel for x86_64 which still supported -KPIC.
3996
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3997
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3998
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4000
# icc used to be incompatible with GCC.
4001
# ICC 10 doesn't accept -KPIC any more.
4003
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4004
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4005
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4007
# Lahey Fortran 8.1.
4009
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4010
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4011
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5096
4013
pgcc* | pgf77* | pgf90* | pgf95*)
5097
4014
# Portland Group compilers (*not* the Pentium gcc compiler,
5098
4015
# which looks to be a dead project)
5099
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5100
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5101
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4016
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4017
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4018
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5104
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4021
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5105
4022
# All Alpha code is PIC.
5106
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4023
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4026
# IBM XL C 8.0/Fortran 10.1 on PPC
4027
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4028
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4029
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4032
case `$CC -V 2>&1 | sed 5q` in
4035
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4036
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4037
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4040
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4041
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4051
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4052
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4056
# QNX uses GNU C++, but need to define -shared option too, otherwise
4058
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5111
4061
osf3* | osf4* | osf5*)
5112
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4062
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5113
4063
# All OSF/1 code is PIC.
5114
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4064
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5118
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5119
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4068
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5123
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5124
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4072
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4073
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5125
4074
case $cc_basename in
5126
4075
f77* | f90* | f95*)
5127
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4076
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5129
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4078
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5134
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5135
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5136
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4083
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4084
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4085
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5139
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5140
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5141
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5142
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4088
sysv4 | sysv4.2uw2* | sysv4.3*)
4089
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4090
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4091
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5146
4095
if test -d /usr/nec ;then
5147
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5148
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4096
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4097
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4101
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4102
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4103
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4104
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5153
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5154
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4108
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4109
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5158
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5159
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4113
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4114
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5163
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4118
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5168
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4124
# For platforms which do not support PIC, -DPIC is meaningless:
4126
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4129
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4132
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4133
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4134
[How to pass a linker flag through the compiler])
5171
4137
# Check to make sure the PIC flag actually works.
5173
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5174
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5175
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5176
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5177
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4139
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4140
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4141
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4142
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4143
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5179
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4145
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5181
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5182
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4147
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4148
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5185
# For platforms which do not support PIC, -DPIC is meaningless:
5187
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5190
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5196
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5197
# ------------------------------------
4150
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4151
[Additional compiler flags for building library objects])
4154
# Check to make sure the static flag actually works.
4156
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4157
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4158
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4159
$lt_tmp_static_flag,
4161
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4162
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4163
[Compiler flag to prevent dynamic linking])
4164
])# _LT_COMPILER_PIC
4167
# _LT_LINKER_SHLIBS([TAGNAME])
4168
# ----------------------------
5198
4169
# See if the linker supports building shared libraries.
5199
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5200
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5202
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4170
m4_defun([_LT_LINKER_SHLIBS],
4171
[AC_REQUIRE([LT_PATH_LD])dnl
4172
AC_REQUIRE([LT_PATH_NM])dnl
4173
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4174
m4_require([_LT_DECL_EGREP])dnl
4175
m4_require([_LT_DECL_SED])dnl
4176
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4177
m4_require([_LT_TAG_COMPILER])dnl
4178
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4179
m4_if([$1], [CXX], [
4180
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5203
4181
case $host_os in
5205
4183
# If we're using GNU nm, then we don't want the "-C" option.
5206
4184
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5207
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5208
_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'
4185
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4186
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5210
_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'
4188
_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'
5214
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5217
_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'
5220
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
4192
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4194
cygwin* | mingw* | cegcc*)
4195
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4197
linux* | k*bsd*-gnu)
4198
_LT_TAGVAR(link_all_deplibs, $1)=no
5223
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4201
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4204
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5228
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5229
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5230
_LT_AC_TAGVAR(archive_cmds, $1)=
5231
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5232
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5233
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5234
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5235
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5236
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5237
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5238
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5239
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5240
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5241
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5242
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5243
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5244
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5245
_LT_AC_TAGVAR(module_cmds, $1)=
5246
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5247
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5248
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4207
_LT_TAGVAR(allow_undefined_flag, $1)=
4208
_LT_TAGVAR(always_export_symbols, $1)=no
4209
_LT_TAGVAR(archive_cmds, $1)=
4210
_LT_TAGVAR(archive_expsym_cmds, $1)=
4211
_LT_TAGVAR(compiler_needs_object, $1)=no
4212
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4213
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4214
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4215
_LT_TAGVAR(hardcode_automatic, $1)=no
4216
_LT_TAGVAR(hardcode_direct, $1)=no
4217
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4218
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4219
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4220
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4221
_LT_TAGVAR(hardcode_minus_L, $1)=no
4222
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4223
_LT_TAGVAR(inherit_rpath, $1)=no
4224
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4225
_LT_TAGVAR(module_cmds, $1)=
4226
_LT_TAGVAR(module_expsym_cmds, $1)=
4227
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4228
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4229
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4230
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5249
4231
# include_expsyms should be a list of space-separated symbols to be *always*
5250
4232
# included in the symbol list
5251
_LT_AC_TAGVAR(include_expsyms, $1)=
4233
_LT_TAGVAR(include_expsyms, $1)=
5252
4234
# exclude_expsyms can be an extended regexp of symbols to exclude
5253
4235
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5254
4236
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5255
4237
# as well as any symbol that contains `d'.
5256
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
4238
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5257
4239
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5258
4240
# platforms (ab)use it in PIC code, but their linkers get confused if
5259
4241
# the symbol is explicitly referenced. Since portable code cannot
5260
4242
# rely on this symbol name, it's probably fine to never include it in
5261
4243
# preloaded symbol tables.
4244
# Exclude shared library initialization/finalization symbols.
4245
dnl Note also adjust exclude_expsyms for C++ above.
5262
4246
extract_expsyms_cmds=
5263
# Just being paranoid about ensuring that cc_basename is set.
5264
_LT_CC_BASENAME([$compiler])
5265
4248
case $host_os in
5266
cygwin* | mingw* | pw32*)
4249
cygwin* | mingw* | pw32* | cegcc*)
5267
4250
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5268
4251
# When not using gcc, we currently assume that we are using
5269
4252
# Microsoft Visual C++.
5783
4840
irix5* | irix6* | nonstopux*)
5784
4841
if test "$GCC" = yes; then
5785
_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'
4842
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4843
# Try to use the -exported_symbol ld option, if it does not
4844
# work, assume that -exports_file does not work either and
4845
# implicitly export all symbols.
4846
save_LDFLAGS="$LDFLAGS"
4847
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4848
AC_LINK_IFELSE(int foo(void) {},
4849
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4851
LDFLAGS="$save_LDFLAGS"
5787
_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'
5788
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4853
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4854
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5790
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5791
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5792
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4856
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4857
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4858
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4859
_LT_TAGVAR(inherit_rpath, $1)=yes
4860
_LT_TAGVAR(link_all_deplibs, $1)=yes
5795
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5796
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5797
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4863
netbsd* | netbsdelf*-gnu)
4864
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4865
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5799
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4867
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5801
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5802
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5803
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4869
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4870
_LT_TAGVAR(hardcode_direct, $1)=yes
4871
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5807
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5808
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5809
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5810
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5811
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4875
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4876
_LT_TAGVAR(hardcode_direct, $1)=yes
4877
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4878
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4879
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5815
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5816
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5817
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5818
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5819
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5820
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5821
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4886
if test -f /usr/libexec/ld.so; then
4887
_LT_TAGVAR(hardcode_direct, $1)=yes
4888
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4889
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4890
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4891
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4892
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4893
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4894
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4897
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4898
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4899
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4902
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4903
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5824
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5825
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5826
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5829
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5830
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4908
_LT_TAGVAR(ld_shlibs, $1)=no
5837
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5838
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5839
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5840
_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'
5841
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4913
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4914
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4915
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4916
_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'
4917
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5845
4921
if test "$GCC" = yes; then
5846
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5847
_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'
4922
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4923
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5849
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5850
_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'
4925
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4926
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5852
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5853
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4928
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4929
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4930
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5856
4933
osf4* | osf5*) # as osf3* with the addition of -msym flag
5857
4934
if test "$GCC" = yes; then
5858
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5859
_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'
5860
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4935
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4936
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4937
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5862
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5863
_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'
5864
_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~
5865
$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'
4939
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4940
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4941
_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~
4942
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5867
4944
# Both c and cxx compiler support -rpath directly
5868
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4945
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5870
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5874
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5875
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5876
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5877
runpath_var=LD_RUN_PATH
5878
hardcode_runpath_var=yes
4947
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4948
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5882
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4952
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5883
4953
if test "$GCC" = yes; then
5885
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5886
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5887
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4955
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4956
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4957
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5890
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5891
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5892
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4959
case `$CC -V 2>&1` in
4962
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4963
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4964
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4968
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4969
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4970
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5894
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5895
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4974
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4975
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5896
4976
case $host_os in
5897
4977
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5899
# The compiler driver will combine linker options so we
5900
# cannot just pass the convience library names through
5901
# without $wl, iff we do not link with $LD.
5902
# Luckily, gcc supports the same syntax we need for Sun Studio.
5903
# Supported since Solaris 2.6 (maybe 2.5.1?)
5906
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5908
_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' ;;
4979
# The compiler driver will combine and reorder linker options,
4980
# but understands `-z linker_flag'. GCC discards it without `$wl',
4981
# but is careful enough not to reorder.
4982
# Supported since Solaris 2.6 (maybe 2.5.1?)
4983
if test "$GCC" = yes; then
4984
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4986
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5911
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4990
_LT_TAGVAR(link_all_deplibs, $1)=yes
5915
4994
if test "x$host_vendor" = xsequent; then
5916
4995
# Use $CC to link under sequent, because it throws in some extra .o
5917
4996
# files that make .init and .fini sections work.
5918
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4997
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5920
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4999
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5922
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5923
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5924
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5925
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5001
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5002
_LT_TAGVAR(hardcode_direct, $1)=yes
5003
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5004
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5929
5008
case $host_vendor in
5931
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5932
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5010
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5011
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5935
5014
## LD is ld it makes a PLAMLIB
5936
5015
## CC just makes a GrossModule.
5937
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5938
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5939
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5016
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5017
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5018
_LT_TAGVAR(hardcode_direct, $1)=no
5942
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5943
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5021
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5022
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5946
5025
runpath_var='LD_RUN_PATH'
5947
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5026
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5951
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5952
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5953
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5030
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5031
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5032
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5957
5036
if test -d /usr/nec; then
5958
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5959
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5037
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5038
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5960
5039
runpath_var=LD_RUN_PATH
5961
5040
hardcode_runpath_var=yes
5962
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5967
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5968
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5969
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5970
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5971
hardcode_runpath_var=yes
5972
runpath_var=LD_RUN_PATH
5975
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5976
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5977
if test "$GCC" = yes; then
5978
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5980
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5982
runpath_var='LD_RUN_PATH'
5983
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5987
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5988
# $CC -shared without GNU ld will not create a library from C++
5989
# object files and a static libstdc++, better avoid it by now
5990
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5991
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5992
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5993
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5994
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5995
runpath_var='LD_RUN_PATH'
5041
_LT_TAGVAR(ld_shlibs, $1)=yes
5045
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5046
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5047
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5048
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5049
runpath_var='LD_RUN_PATH'
5051
if test "$GCC" = yes; then
5052
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5053
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5055
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5056
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5060
sysv5* | sco3.2v5* | sco5v6*)
5061
# Note: We can NOT use -z defs as we might desire, because we do not
5062
# link with -lc, and that would cause any symbols used from libc to
5063
# always be unresolved, which means just about no library would
5064
# ever link correctly. If we're not using GNU ld we use -z text
5065
# though, which does catch some bad symbols but isn't as heavy-handed
5067
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5068
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5069
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5070
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5071
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5072
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5073
_LT_TAGVAR(link_all_deplibs, $1)=yes
5074
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5075
runpath_var='LD_RUN_PATH'
5077
if test "$GCC" = yes; then
5078
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5079
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5081
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5082
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5999
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6000
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6001
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5087
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5088
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5089
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6005
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5093
_LT_TAGVAR(ld_shlibs, $1)=no
5097
if test x$host_vendor = xsni; then
5099
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5100
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6010
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6011
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6013
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6014
if test "$GCC" = yes; then
6015
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5106
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5107
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5109
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5111
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5112
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5113
_LT_DECL([], [extract_expsyms_cmds], [2],
5114
[The commands to extract the exported symbol list from a shared archive])
6019
5117
# Do we need to explicitly link libc?
6021
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5119
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6023
5121
# Assume -lc should be added
6024
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5122
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6026
5124
if test "$enable_shared" = yes && test "$GCC" = yes; then
6027
case $_LT_AC_TAGVAR(archive_cmds, $1) in
5125
case $_LT_TAGVAR(archive_cmds, $1) in
6029
5127
# FIXME: we may have to deal with multi-command sequences.
6033
5131
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6034
5132
# to ld, don't add -lc before -lgcc.
6035
5133
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6037
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5135
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6039
5137
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6040
5138
soname=conftest
6042
5140
libobjs=conftest.$ac_objext
6044
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5142
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5143
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6045
5144
compiler_flags=-v
6046
5145
linker_flags=-v
6048
5147
output_objdir=.
6049
5148
libname=conftest
6050
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6051
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6052
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5149
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5150
_LT_TAGVAR(allow_undefined_flag, $1)=
5151
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6054
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5153
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6056
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5155
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6058
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5157
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6060
5159
cat conftest.err 1>&5
6063
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5162
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6069
])# AC_LIBTOOL_PROG_LD_SHLIBS
6072
# _LT_AC_FILE_LTDLL_C
6073
# -------------------
6074
# Be careful that the start marker always follows a newline.
6075
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6076
# /* ltdll.c starts here */
6077
# #define WIN32_LEAN_AND_MEAN
6078
# #include <windows.h>
6079
# #undef WIN32_LEAN_AND_MEAN
6080
# #include <stdio.h>
6082
# #ifndef __CYGWIN__
6083
# # ifdef __CYGWIN32__
6084
# # define __CYGWIN__ __CYGWIN32__
6088
# #ifdef __cplusplus
6091
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6092
# #ifdef __cplusplus
6097
# #include <cygwin/cygwin_dll.h>
6098
# DECLARE_CYGWIN_DLL( DllMain );
6100
# HINSTANCE __hDllInstance_base;
6103
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6105
# __hDllInstance_base = hInst;
6108
# /* ltdll.c ends here */
6109
])# _LT_AC_FILE_LTDLL_C
6112
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5169
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5170
[Whether or not to add -lc for building shared libraries])
5171
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5172
[enable_shared_with_static_runtimes], [0],
5173
[Whether or not to disallow shared libs when runtime libs are static])
5174
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5175
[Compiler flag to allow reflexive dlopens])
5176
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5177
[Compiler flag to generate shared objects directly from archives])
5178
_LT_TAGDECL([], [compiler_needs_object], [1],
5179
[Whether the compiler copes with passing no objects directly])
5180
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5181
[Create an old-style archive from a shared archive])
5182
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5183
[Create a temporary old-style archive to link instead of a shared archive])
5184
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5185
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5186
_LT_TAGDECL([], [module_cmds], [2],
5187
[Commands used to build a loadable module if different from building
5189
_LT_TAGDECL([], [module_expsym_cmds], [2])
5190
_LT_TAGDECL([], [with_gnu_ld], [1],
5191
[Whether we are building with GNU ld or not])
5192
_LT_TAGDECL([], [allow_undefined_flag], [1],
5193
[Flag that allows shared libraries with undefined symbols to be built])
5194
_LT_TAGDECL([], [no_undefined_flag], [1],
5195
[Flag that enforces no undefined symbols])
5196
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5197
[Flag to hardcode $libdir into a binary during linking.
5198
This must work even if $libdir does not exist])
5199
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5200
[[If ld is used when linking, flag to hardcode $libdir into a binary
5201
during linking. This must work even if $libdir does not exist]])
5202
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5203
[Whether we need a single "-rpath" flag with a separated argument])
5204
_LT_TAGDECL([], [hardcode_direct], [0],
5205
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5206
DIR into the resulting binary])
5207
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5208
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5209
DIR into the resulting binary and the resulting library dependency is
5210
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5211
library is relocated])
5212
_LT_TAGDECL([], [hardcode_minus_L], [0],
5213
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5214
into the resulting binary])
5215
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5216
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5217
into the resulting binary])
5218
_LT_TAGDECL([], [hardcode_automatic], [0],
5219
[Set to "yes" if building a shared library automatically hardcodes DIR
5220
into the library and all subsequent libraries and executables linked
5222
_LT_TAGDECL([], [inherit_rpath], [0],
5223
[Set to yes if linker adds runtime paths of dependent libraries
5224
to runtime path list])
5225
_LT_TAGDECL([], [link_all_deplibs], [0],
5226
[Whether libtool must link a program against all its dependency libraries])
5227
_LT_TAGDECL([], [fix_srcfile_path], [1],
5228
[Fix the shell variable $srcfile for the compiler])
5229
_LT_TAGDECL([], [always_export_symbols], [0],
5230
[Set to "yes" if exported symbols are required])
5231
_LT_TAGDECL([], [export_symbols_cmds], [2],
5232
[The commands to list exported symbols])
5233
_LT_TAGDECL([], [exclude_expsyms], [1],
5234
[Symbols that should not be listed in the preloaded symbols])
5235
_LT_TAGDECL([], [include_expsyms], [1],
5236
[Symbols that must always be exported])
5237
_LT_TAGDECL([], [prelink_cmds], [2],
5238
[Commands necessary for linking programs (against libraries) with templates])
5239
_LT_TAGDECL([], [file_list_spec], [1],
5240
[Specify filename containing input files])
5241
dnl FIXME: Not yet implemented
5242
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5243
dnl [Compiler flag to generate thread safe objects])
5244
])# _LT_LINKER_SHLIBS
5247
# _LT_LANG_C_CONFIG([TAG])
5248
# ------------------------
5249
# Ensure that the configuration variables for a C compiler are suitably
5250
# defined. These variables are subsequently used by _LT_CONFIG to write
5251
# the compiler configuration to `libtool'.
5252
m4_defun([_LT_LANG_C_CONFIG],
5253
[m4_require([_LT_DECL_EGREP])dnl
5257
# Source file extension for C test sources.
5260
# Object file extension for compiled C test sources.
5262
_LT_TAGVAR(objext, $1)=$objext
5264
# Code to be used in simple compile tests
5265
lt_simple_compile_test_code="int some_variable = 0;"
5267
# Code to be used in simple link tests
5268
lt_simple_link_test_code='int main(){return(0);}'
5271
# Save the default compiler, since it gets overwritten when the other
5272
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5273
compiler_DEFAULT=$CC
5275
# save warnings/boilerplate of simple test code
5276
_LT_COMPILER_BOILERPLATE
5277
_LT_LINKER_BOILERPLATE
5280
## There is no encapsulation within the following macros, do not change
5281
## the running order or otherwise move them around unless you know exactly
5282
## what you are doing...
5283
if test -n "$compiler"; then
5284
_LT_COMPILER_NO_RTTI($1)
5285
_LT_COMPILER_PIC($1)
5286
_LT_COMPILER_C_O($1)
5287
_LT_COMPILER_FILE_LOCKS($1)
5288
_LT_LINKER_SHLIBS($1)
5289
_LT_SYS_DYNAMIC_LINKER($1)
5290
_LT_LINKER_HARDCODE_LIBPATH($1)
5294
# Report which library types will actually be built
5295
AC_MSG_CHECKING([if libtool supports shared libraries])
5296
AC_MSG_RESULT([$can_build_shared])
5298
AC_MSG_CHECKING([whether to build shared libraries])
5299
test "$can_build_shared" = "no" && enable_shared=no
5301
# On AIX, shared libraries and static libraries use the same namespace, and
5302
# are all built from PIC.
5305
test "$enable_shared" = yes && enable_static=no
5306
if test -n "$RANLIB"; then
5307
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5308
postinstall_cmds='$RANLIB $lib'
5313
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5314
test "$enable_shared" = yes && enable_static=no
5318
AC_MSG_RESULT([$enable_shared])
5320
AC_MSG_CHECKING([whether to build static libraries])
5321
# Make sure either enable_shared or enable_static is yes.
5322
test "$enable_shared" = yes || enable_static=yes
5323
AC_MSG_RESULT([$enable_static])
5329
])# _LT_LANG_C_CONFIG
5334
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5335
# compiler, we have our own version here.
5336
m4_defun([_LT_PROG_CXX],
5338
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5340
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5341
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5342
(test "X$CXX" != "Xg++"))) ; then
5345
_lt_caught_CXX_error=yes
5347
popdef([AC_MSG_ERROR])
5350
dnl aclocal-1.4 backwards compatibility:
5351
dnl AC_DEFUN([_LT_PROG_CXX], [])
5354
# _LT_LANG_CXX_CONFIG([TAG])
5355
# --------------------------
5356
# Ensure that the configuration variables for a C++ compiler are suitably
5357
# defined. These variables are subsequently used by _LT_CONFIG to write
5358
# the compiler configuration to `libtool'.
5359
m4_defun([_LT_LANG_CXX_CONFIG],
5360
[AC_REQUIRE([_LT_PROG_CXX])dnl
5361
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5362
m4_require([_LT_DECL_EGREP])dnl
5365
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5366
_LT_TAGVAR(allow_undefined_flag, $1)=
5367
_LT_TAGVAR(always_export_symbols, $1)=no
5368
_LT_TAGVAR(archive_expsym_cmds, $1)=
5369
_LT_TAGVAR(compiler_needs_object, $1)=no
5370
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5371
_LT_TAGVAR(hardcode_direct, $1)=no
5372
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5373
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5374
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5375
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5376
_LT_TAGVAR(hardcode_minus_L, $1)=no
5377
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5378
_LT_TAGVAR(hardcode_automatic, $1)=no
5379
_LT_TAGVAR(inherit_rpath, $1)=no
5380
_LT_TAGVAR(module_cmds, $1)=
5381
_LT_TAGVAR(module_expsym_cmds, $1)=
5382
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5383
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5384
_LT_TAGVAR(no_undefined_flag, $1)=
5385
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5386
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5388
# Source file extension for C++ test sources.
5391
# Object file extension for compiled C++ test sources.
5393
_LT_TAGVAR(objext, $1)=$objext
5395
# No sense in running all these tests if we already determined that
5396
# the CXX compiler isn't working. Some variables (like enable_shared)
5397
# are currently assumed to apply to all compilers on this platform,
5398
# and will be corrupted by setting them based on a non-working compiler.
5399
if test "$_lt_caught_CXX_error" != yes; then
5400
# Code to be used in simple compile tests
5401
lt_simple_compile_test_code="int some_variable = 0;"
5403
# Code to be used in simple link tests
5404
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5406
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5409
# save warnings/boilerplate of simple test code
5410
_LT_COMPILER_BOILERPLATE
5411
_LT_LINKER_BOILERPLATE
5413
# Allow CC to be a program name with arguments.
5418
lt_save_with_gnu_ld=$with_gnu_ld
5419
lt_save_path_LD=$lt_cv_path_LD
5420
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5421
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5423
$as_unset lt_cv_prog_gnu_ld
5425
if test -n "${lt_cv_path_LDCXX+set}"; then
5426
lt_cv_path_LD=$lt_cv_path_LDCXX
5428
$as_unset lt_cv_path_LD
5430
test -z "${LDCXX+set}" || LD=$LDCXX
5433
_LT_TAGVAR(compiler, $1)=$CC
5434
_LT_CC_BASENAME([$compiler])
5436
if test -n "$compiler"; then
5437
# We don't want -fno-exception when compiling C++ code, so set the
5438
# no_builtin_flag separately
5439
if test "$GXX" = yes; then
5440
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5442
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5445
if test "$GXX" = yes; then
5446
# Set up default GNU C++ configuration
5450
# Check if GNU C++ uses GNU ld as the underlying linker, since the
5451
# archiving commands below assume that GNU ld is being used.
5452
if test "$with_gnu_ld" = yes; then
5453
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5454
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5456
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5457
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5459
# If archive_cmds runs LD, not CC, wlarc should be empty
5460
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5461
# investigate it a little bit more. (MM)
5464
# ancient GNU ld didn't support --whole-archive et. al.
5465
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5466
$GREP 'no-whole-archive' > /dev/null; then
5467
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5469
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5475
# A generic and very simple default shared library creation
5476
# command for GNU C++ for the case where it uses the native
5477
# linker, instead of GNU ld. If possible, this setting should
5478
# overridden to take advantage of the native linker features on
5479
# the platform it is being used on.
5480
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5483
# Commands to make compiler produce verbose output that lists
5484
# what "hidden" libraries, object files and flags are used when
5485
# linking a shared library.
5486
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5494
# PORTME: fill in a description of your system's C++ link characteristics
5495
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5496
_LT_TAGVAR(ld_shlibs, $1)=yes
5499
# FIXME: insert proper C++ library support
5500
_LT_TAGVAR(ld_shlibs, $1)=no
5503
if test "$host_cpu" = ia64; then
5504
# On IA64, the linker does run time linking by default, so we don't
5505
# have to do anything special.
5506
aix_use_runtimelinking=no
5507
exp_sym_flag='-Bexport'
5510
aix_use_runtimelinking=no
5512
# Test if we are trying to use run time linking or normal
5513
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5514
# need to do runtime linking.
5515
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5516
for ld_flag in $LDFLAGS; do
5519
aix_use_runtimelinking=yes
5527
exp_sym_flag='-bexport'
5528
no_entry_flag='-bnoentry'
5531
# When large executables or shared objects are built, AIX ld can
5532
# have problems creating the table of contents. If linking a library
5533
# or program results in "error TOC overflow" add -mminimal-toc to
5534
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5535
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5537
_LT_TAGVAR(archive_cmds, $1)=''
5538
_LT_TAGVAR(hardcode_direct, $1)=yes
5539
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5540
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5541
_LT_TAGVAR(link_all_deplibs, $1)=yes
5542
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5544
if test "$GXX" = yes; then
5545
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5546
# We only want to do this on AIX 4.2 and lower, the check
5547
# below for broken collect2 doesn't work under 4.3+
5548
collect2name=`${CC} -print-prog-name=collect2`
5549
if test -f "$collect2name" &&
5550
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5552
# We have reworked collect2
5555
# We have old collect2
5556
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5557
# It fails to find uninstalled libraries when the uninstalled
5558
# path is not listed in the libpath. Setting hardcode_minus_L
5559
# to unsupported forces relinking
5560
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5561
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5562
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5565
shared_flag='-shared'
5566
if test "$aix_use_runtimelinking" = yes; then
5567
shared_flag="$shared_flag "'${wl}-G'
5571
if test "$host_cpu" = ia64; then
5572
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5573
# chokes on -Wl,-G. The following line is correct:
5576
if test "$aix_use_runtimelinking" = yes; then
5577
shared_flag='${wl}-G'
5579
shared_flag='${wl}-bM:SRE'
5584
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5585
# It seems that -bexpall does not export symbols beginning with
5586
# underscore (_), so it is better to generate a list of symbols to
5588
_LT_TAGVAR(always_export_symbols, $1)=yes
5589
if test "$aix_use_runtimelinking" = yes; then
5590
# Warning - without using the other runtime loading flags (-brtl),
5591
# -berok will link without error, but may produce a broken library.
5592
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5593
# Determine the default libpath from the value encoded in an empty
5595
_LT_SYS_MODULE_PATH_AIX
5596
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5598
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5600
if test "$host_cpu" = ia64; then
5601
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5602
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5603
_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"
5605
# Determine the default libpath from the value encoded in an
5607
_LT_SYS_MODULE_PATH_AIX
5608
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5609
# Warning - without using the other run time loading flags,
5610
# -berok will link without error, but may produce a broken library.
5611
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5612
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5613
# Exported symbols can be pulled into shared objects from archives
5614
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5615
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5616
# This is similar to how AIX traditionally builds its shared
5618
_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'
5624
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5625
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5626
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5627
# support --undefined. This deserves some investigation. FIXME
5628
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5630
_LT_TAGVAR(ld_shlibs, $1)=no
5635
case $cc_basename in
5637
# FIXME: insert proper C++ library support
5638
_LT_TAGVAR(ld_shlibs, $1)=no
5643
cygwin* | mingw* | pw32* | cegcc*)
5644
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5645
# as there is no search path for DLLs.
5646
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5647
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5648
_LT_TAGVAR(always_export_symbols, $1)=no
5649
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5651
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5652
_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'
5653
# If the export-symbols file already is a .def file (1st line
5654
# is EXPORTS), use it as is; otherwise, prepend...
5655
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5656
cp $export_symbols $output_objdir/$soname.def;
5658
echo EXPORTS > $output_objdir/$soname.def;
5659
cat $export_symbols >> $output_objdir/$soname.def;
5661
$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'
5663
_LT_TAGVAR(ld_shlibs, $1)=no
5666
darwin* | rhapsody*)
5667
_LT_DARWIN_LINKER_FEATURES($1)
5671
case $cc_basename in
5673
# FIXME: insert proper C++ library support
5674
_LT_TAGVAR(ld_shlibs, $1)=no
5677
# Green Hills C++ Compiler
5678
# FIXME: insert proper C++ library support
5679
_LT_TAGVAR(ld_shlibs, $1)=no
5682
# FIXME: insert proper C++ library support
5683
_LT_TAGVAR(ld_shlibs, $1)=no
5689
# C++ shared libraries reported to be fairly broken before
5691
_LT_TAGVAR(ld_shlibs, $1)=no
5695
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5698
freebsd* | dragonfly*)
5699
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5701
_LT_TAGVAR(ld_shlibs, $1)=yes
5708
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5709
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5710
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5711
_LT_TAGVAR(hardcode_direct, $1)=yes
5712
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5713
# but as the default
5714
# location of the library.
5716
case $cc_basename in
5718
# FIXME: insert proper C++ library support
5719
_LT_TAGVAR(ld_shlibs, $1)=no
5722
_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'
5723
# Commands to make compiler produce verbose output that lists
5724
# what "hidden" libraries, object files and flags are used when
5725
# linking a shared library.
5727
# There doesn't appear to be a way to prevent this compiler from
5728
# explicitly linking system object files so we need to strip them
5729
# from the output so that they don't get included in the library
5731
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5734
if test "$GXX" = yes; then
5735
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5737
# FIXME: insert proper C++ library support
5738
_LT_TAGVAR(ld_shlibs, $1)=no
5745
if test $with_gnu_ld = no; then
5746
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5747
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5753
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5759
_LT_TAGVAR(hardcode_direct, $1)=no
5760
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5763
_LT_TAGVAR(hardcode_direct, $1)=yes
5764
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5765
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5766
# but as the default
5767
# location of the library.
5771
case $cc_basename in
5773
# FIXME: insert proper C++ library support
5774
_LT_TAGVAR(ld_shlibs, $1)=no
5779
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5782
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5785
_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'
5788
# Commands to make compiler produce verbose output that lists
5789
# what "hidden" libraries, object files and flags are used when
5790
# linking a shared library.
5792
# There doesn't appear to be a way to prevent this compiler from
5793
# explicitly linking system object files so we need to strip them
5794
# from the output so that they don't get included in the library
5796
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5799
if test "$GXX" = yes; then
5800
if test $with_gnu_ld = no; then
5803
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5806
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5809
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5814
# FIXME: insert proper C++ library support
5815
_LT_TAGVAR(ld_shlibs, $1)=no
5822
_LT_TAGVAR(hardcode_direct, $1)=no
5823
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5824
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5825
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5826
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5827
# Instead, shared libraries are loaded at an image base (0x10000000 by
5828
# default) and relocated if they conflict, which is a slow very memory
5829
# consuming and fragmenting process. To avoid this, we pick a random,
5830
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5831
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5832
_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'
5833
_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'
5836
case $cc_basename in
5839
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5841
# Archives containing C++ object files must be created using
5842
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
5843
# necessary to make sure instantiated templates are included
5845
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5848
if test "$GXX" = yes; then
5849
if test "$with_gnu_ld" = no; then
5850
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5852
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5855
_LT_TAGVAR(link_all_deplibs, $1)=yes
5858
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5859
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5860
_LT_TAGVAR(inherit_rpath, $1)=yes
5863
linux* | k*bsd*-gnu)
5864
case $cc_basename in
5866
# Kuck and Associates, Inc. (KAI) C++ Compiler
5868
# KCC will only create a shared library if the output file
5869
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5870
# to its proper name (with version) after linking.
5871
_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'
5872
_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'
5873
# Commands to make compiler produce verbose output that lists
5874
# what "hidden" libraries, object files and flags are used when
5875
# linking a shared library.
5877
# There doesn't appear to be a way to prevent this compiler from
5878
# explicitly linking system object files so we need to strip them
5879
# from the output so that they don't get included in the library
5881
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5883
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5884
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5886
# Archives containing C++ object files must be created using
5887
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5888
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5893
# version 8.0 and above of icpc choke on multiply defined symbols
5894
# if we add $predep_objects and $postdep_objects, however 7.1 and
5895
# earlier do not add the objects themselves.
5896
case `$CC -V 2>&1` in
5898
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5899
_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'
5901
*) # Version 8.0 or newer
5904
ia64*) tmp_idyn=' -i_dynamic';;
5906
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5907
_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'
5910
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5911
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5912
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5913
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5916
# Portland Group C++ compiler
5918
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5919
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5921
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5922
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5923
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5925
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5926
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5928
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5930
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5931
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5932
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5934
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5935
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5937
*) # Version 6 will use weak symbols
5938
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5939
_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'
5943
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5944
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5945
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5949
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5950
_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'
5952
runpath_var=LD_RUN_PATH
5953
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5954
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5956
# Commands to make compiler produce verbose output that lists
5957
# what "hidden" libraries, object files and flags are used when
5958
# linking a shared library.
5960
# There doesn't appear to be a way to prevent this compiler from
5961
# explicitly linking system object files so we need to strip them
5962
# from the output so that they don't get included in the library
5964
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5967
# IBM XL 8.0 on PPC, with GNU ld
5968
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5969
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5970
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5971
if test "x$supports_anon_versioning" = xyes; then
5972
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5973
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5974
echo "local: *; };" >> $output_objdir/$libname.ver~
5975
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5979
case `$CC -V 2>&1 | sed 5q` in
5982
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5983
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5984
_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'
5985
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5986
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5987
_LT_TAGVAR(compiler_needs_object, $1)=yes
5989
# Not sure whether something based on
5990
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5992
output_verbose_link_cmd='echo'
5994
# Archives containing C++ object files must be created using
5995
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5996
# necessary to make sure instantiated templates are included
5998
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6006
# FIXME: insert proper C++ library support
6007
_LT_TAGVAR(ld_shlibs, $1)=no
6011
# FIXME: insert proper C++ library support
6012
_LT_TAGVAR(ld_shlibs, $1)=no
6016
case $cc_basename in
6018
# FIXME: insert proper C++ library support
6019
_LT_TAGVAR(ld_shlibs, $1)=no
6022
# FIXME: insert proper C++ library support
6023
_LT_TAGVAR(ld_shlibs, $1)=no
6029
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6030
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6032
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6033
_LT_TAGVAR(hardcode_direct, $1)=yes
6034
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6036
# Workaround some broken pre-1.5 toolchains
6037
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6041
_LT_TAGVAR(ld_shlibs, $1)=yes
6045
# C++ shared libraries are fairly broken
6046
_LT_TAGVAR(ld_shlibs, $1)=no
6050
if test -f /usr/libexec/ld.so; then
6051
_LT_TAGVAR(hardcode_direct, $1)=yes
6052
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6053
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6054
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6055
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6056
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6057
_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'
6058
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6059
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6061
output_verbose_link_cmd=echo
6063
_LT_TAGVAR(ld_shlibs, $1)=no
6067
osf3* | osf4* | osf5*)
6068
case $cc_basename in
6070
# Kuck and Associates, Inc. (KAI) C++ Compiler
6072
# KCC will only create a shared library if the output file
6073
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6074
# to its proper name (with version) after linking.
6075
_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'
6077
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6078
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6080
# Archives containing C++ object files must be created using
6081
# the KAI C++ compiler.
6083
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6084
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6088
# Rational C++ 2.4.1
6089
# FIXME: insert proper C++ library support
6090
_LT_TAGVAR(ld_shlibs, $1)=no
6095
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6096
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6097
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6100
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6101
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6102
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6103
echo "-hidden">> $lib.exp~
6104
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6106
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6110
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6112
# Commands to make compiler produce verbose output that lists
6113
# what "hidden" libraries, object files and flags are used when
6114
# linking a shared library.
6116
# There doesn't appear to be a way to prevent this compiler from
6117
# explicitly linking system object files so we need to strip them
6118
# from the output so that they don't get included in the library
6120
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6123
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6124
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6127
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6130
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6134
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6135
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6137
# Commands to make compiler produce verbose output that lists
6138
# what "hidden" libraries, object files and flags are used when
6139
# linking a shared library.
6140
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6143
# FIXME: insert proper C++ library support
6144
_LT_TAGVAR(ld_shlibs, $1)=no
6151
# FIXME: insert proper C++ library support
6152
_LT_TAGVAR(ld_shlibs, $1)=no
6156
case $cc_basename in
6159
# FIXME: insert proper C++ library support
6160
_LT_TAGVAR(ld_shlibs, $1)=no
6164
# FIXME: insert proper C++ library support
6165
_LT_TAGVAR(ld_shlibs, $1)=no
6168
# FIXME: insert proper C++ library support
6169
_LT_TAGVAR(ld_shlibs, $1)=no
6175
case $cc_basename in
6177
# Sun C++ 4.2, 5.x and Centerline C++
6178
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6179
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6180
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6181
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6182
$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'
6184
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6185
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6187
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6189
# The compiler driver will combine and reorder linker options,
6190
# but understands `-z linker_flag'.
6191
# Supported since Solaris 2.6 (maybe 2.5.1?)
6192
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6195
_LT_TAGVAR(link_all_deplibs, $1)=yes
6197
output_verbose_link_cmd='echo'
6199
# Archives containing C++ object files must be created using
6200
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6201
# necessary to make sure instantiated templates are included
6203
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6206
# Green Hills C++ Compiler
6207
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6209
# The C++ compiler must be used to create the archive.
6210
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6213
# GNU C++ compiler with Solaris linker
6214
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6215
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6216
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6217
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6218
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6219
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6221
# Commands to make compiler produce verbose output that lists
6222
# what "hidden" libraries, object files and flags are used when
6223
# linking a shared library.
6224
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6226
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6228
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6229
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6230
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6232
# Commands to make compiler produce verbose output that lists
6233
# what "hidden" libraries, object files and flags are used when
6234
# linking a shared library.
6235
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6238
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6240
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6242
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6250
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6251
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6252
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6253
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6254
runpath_var='LD_RUN_PATH'
6256
case $cc_basename in
6258
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6259
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6262
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6263
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6268
sysv5* | sco3.2v5* | sco5v6*)
6269
# Note: We can NOT use -z defs as we might desire, because we do not
6270
# link with -lc, and that would cause any symbols used from libc to
6271
# always be unresolved, which means just about no library would
6272
# ever link correctly. If we're not using GNU ld we use -z text
6273
# though, which does catch some bad symbols but isn't as heavy-handed
6275
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6276
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6277
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6278
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6279
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6280
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6281
_LT_TAGVAR(link_all_deplibs, $1)=yes
6282
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6283
runpath_var='LD_RUN_PATH'
6285
case $cc_basename in
6287
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6288
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6291
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6292
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6298
case $cc_basename in
6300
# NonStop-UX NCC 3.20
6301
# FIXME: insert proper C++ library support
6302
_LT_TAGVAR(ld_shlibs, $1)=no
6305
# FIXME: insert proper C++ library support
6306
_LT_TAGVAR(ld_shlibs, $1)=no
6312
# FIXME: insert proper C++ library support
6313
_LT_TAGVAR(ld_shlibs, $1)=no
6317
# FIXME: insert proper C++ library support
6318
_LT_TAGVAR(ld_shlibs, $1)=no
6322
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6323
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6325
_LT_TAGVAR(GCC, $1)="$GXX"
6326
_LT_TAGVAR(LD, $1)="$LD"
6329
## There is no encapsulation within the following macros, do not change
6330
## the running order or otherwise move them around unless you know exactly
6331
## what you are doing...
6332
_LT_SYS_HIDDEN_LIBDEPS($1)
6333
_LT_COMPILER_PIC($1)
6334
_LT_COMPILER_C_O($1)
6335
_LT_COMPILER_FILE_LOCKS($1)
6336
_LT_LINKER_SHLIBS($1)
6337
_LT_SYS_DYNAMIC_LINKER($1)
6338
_LT_LINKER_HARDCODE_LIBPATH($1)
6341
fi # test -n "$compiler"
6347
with_gnu_ld=$lt_save_with_gnu_ld
6348
lt_cv_path_LDCXX=$lt_cv_path_LD
6349
lt_cv_path_LD=$lt_save_path_LD
6350
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6351
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6352
fi # test "$_lt_caught_CXX_error" != yes
6355
])# _LT_LANG_CXX_CONFIG
6358
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6113
6359
# ---------------------------------
6114
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6118
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6119
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6120
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6121
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6122
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6123
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6124
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6126
# This is just to silence aclocal about the macro not being used
6127
ifelse([AC_DISABLE_FAST_INSTALL])
6129
AC_DEFUN([LT_AC_PROG_GCJ],
6130
[AC_CHECK_TOOL(GCJ, gcj, no)
6131
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6135
AC_DEFUN([LT_AC_PROG_RC],
6136
[AC_CHECK_TOOL(RC, windres, no)
6360
# Figure out "hidden" library dependencies from verbose
6361
# compiler output when linking a shared library.
6362
# Parse the compiler output and extract the necessary
6363
# objects, libraries and library flags.
6364
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6365
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6366
# Dependencies to place before and after the object being linked:
6367
_LT_TAGVAR(predep_objects, $1)=
6368
_LT_TAGVAR(postdep_objects, $1)=
6369
_LT_TAGVAR(predeps, $1)=
6370
_LT_TAGVAR(postdeps, $1)=
6371
_LT_TAGVAR(compiler_lib_search_path, $1)=
6373
dnl we can't use the lt_simple_compile_test_code here,
6374
dnl because it contains code intended for an executable,
6375
dnl not a library. It's possible we should let each
6376
dnl tag define a new lt_????_link_test_code variable,
6377
dnl but it's only used here...
6378
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6380
void foo (void) { a = 0; }
6382
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6386
Foo (void) { a = 0; }
6391
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6399
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6407
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6410
public void bar (void) {
6416
dnl Parse the compiler output and extract the necessary
6417
dnl objects, libraries and library flags.
6418
if AC_TRY_EVAL(ac_compile); then
6419
# Parse the compiler output and extract the necessary
6420
# objects, libraries and library flags.
6422
# Sentinel used to keep track of whether or not we are before
6423
# the conftest object file.
6424
pre_test_object_deps_done=no
6426
for p in `eval "$output_verbose_link_cmd"`; do
6430
# Some compilers place space between "-{L,R}" and the path.
6432
if test $p = "-L" ||
6433
test $p = "-R"; then
6440
if test "$pre_test_object_deps_done" = no; then
6443
# Internal compiler library paths should come after those
6444
# provided the user. The postdeps already come after the
6445
# user supplied libs so there is no need to process them.
6446
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6447
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6449
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6452
# The "-l" case would never come before the object being
6453
# linked, so don't bother handling this case.
6456
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6457
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
6459
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6465
# This assumes that the test object file only shows up
6466
# once in the compiler output.
6467
if test "$p" = "conftest.$objext"; then
6468
pre_test_object_deps_done=yes
6472
if test "$pre_test_object_deps_done" = no; then
6473
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6474
_LT_TAGVAR(predep_objects, $1)="$p"
6476
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6479
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6480
_LT_TAGVAR(postdep_objects, $1)="$p"
6482
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6487
*) ;; # Ignore the rest.
6495
echo "libtool.m4: error: problem compiling $1 test program"
6498
$RM -f confest.$objext
6500
# PORTME: override above test on systems where it is broken
6504
# Interix 3.5 installs completely hosed .la files for C++, so rather than
6505
# hack all around it, let's just trust "g++" to DTRT.
6506
_LT_TAGVAR(predep_objects,$1)=
6507
_LT_TAGVAR(postdep_objects,$1)=
6508
_LT_TAGVAR(postdeps,$1)=
6512
case `$CC -V 2>&1 | sed 5q` in
6516
# The more standards-conforming stlport4 library is
6517
# incompatible with the Cstd library. Avoid specifying
6518
# it if it's in CXXFLAGS. Ignore libCrun as
6519
# -library=stlport4 depends on it.
6520
case " $CXX $CXXFLAGS " in
6521
*" -library=stlport4 "*)
6522
solaris_use_stlport4=yes
6526
if test "$solaris_use_stlport4" != yes; then
6527
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6534
case $cc_basename in
6536
# The more standards-conforming stlport4 library is
6537
# incompatible with the Cstd library. Avoid specifying
6538
# it if it's in CXXFLAGS. Ignore libCrun as
6539
# -library=stlport4 depends on it.
6540
case " $CXX $CXXFLAGS " in
6541
*" -library=stlport4 "*)
6542
solaris_use_stlport4=yes
6546
# Adding this requires a known-good setup of shared libraries for
6547
# Sun compiler versions before 5.6, else PIC objects from an old
6548
# archive will be linked into the output, leading to subtle bugs.
6549
if test "$solaris_use_stlport4" != yes; then
6550
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6558
case " $_LT_TAGVAR(postdeps, $1) " in
6559
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6561
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
6562
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6563
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6565
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6566
[The directories searched by this compiler when creating a shared library])
6567
_LT_TAGDECL([], [predep_objects], [1],
6568
[Dependencies to place before and after the objects being linked to
6569
create a shared library])
6570
_LT_TAGDECL([], [postdep_objects], [1])
6571
_LT_TAGDECL([], [predeps], [1])
6572
_LT_TAGDECL([], [postdeps], [1])
6573
_LT_TAGDECL([], [compiler_lib_search_path], [1],
6574
[The library search path used internally by the compiler when linking
6576
])# _LT_SYS_HIDDEN_LIBDEPS
6581
# Since AC_PROG_F77 is broken, in that it returns the empty string
6582
# if there is no fortran compiler, we have our own version here.
6583
m4_defun([_LT_PROG_F77],
6585
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6587
if test -z "$F77" || test "X$F77" = "Xno"; then
6590
popdef([AC_MSG_ERROR])
6593
dnl aclocal-1.4 backwards compatibility:
6594
dnl AC_DEFUN([_LT_PROG_F77], [])
6597
# _LT_LANG_F77_CONFIG([TAG])
6598
# --------------------------
6599
# Ensure that the configuration variables for a Fortran 77 compiler are
6600
# suitably defined. These variables are subsequently used by _LT_CONFIG
6601
# to write the compiler configuration to `libtool'.
6602
m4_defun([_LT_LANG_F77_CONFIG],
6603
[AC_REQUIRE([_LT_PROG_F77])dnl
6604
AC_LANG_PUSH(Fortran 77)
6606
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6607
_LT_TAGVAR(allow_undefined_flag, $1)=
6608
_LT_TAGVAR(always_export_symbols, $1)=no
6609
_LT_TAGVAR(archive_expsym_cmds, $1)=
6610
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6611
_LT_TAGVAR(hardcode_direct, $1)=no
6612
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6613
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6614
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6615
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6616
_LT_TAGVAR(hardcode_minus_L, $1)=no
6617
_LT_TAGVAR(hardcode_automatic, $1)=no
6618
_LT_TAGVAR(inherit_rpath, $1)=no
6619
_LT_TAGVAR(module_cmds, $1)=
6620
_LT_TAGVAR(module_expsym_cmds, $1)=
6621
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6622
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6623
_LT_TAGVAR(no_undefined_flag, $1)=
6624
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6625
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6627
# Source file extension for f77 test sources.
6630
# Object file extension for compiled f77 test sources.
6632
_LT_TAGVAR(objext, $1)=$objext
6634
# No sense in running all these tests if we already determined that
6635
# the F77 compiler isn't working. Some variables (like enable_shared)
6636
# are currently assumed to apply to all compilers on this platform,
6637
# and will be corrupted by setting them based on a non-working compiler.
6638
if test "$_lt_disable_F77" != yes; then
6639
# Code to be used in simple compile tests
6640
lt_simple_compile_test_code="\
6646
# Code to be used in simple link tests
6647
lt_simple_link_test_code="\
6652
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6655
# save warnings/boilerplate of simple test code
6656
_LT_COMPILER_BOILERPLATE
6657
_LT_LINKER_BOILERPLATE
6659
# Allow CC to be a program name with arguments.
6664
_LT_TAGVAR(compiler, $1)=$CC
6665
_LT_CC_BASENAME([$compiler])
6667
if test -n "$compiler"; then
6668
AC_MSG_CHECKING([if libtool supports shared libraries])
6669
AC_MSG_RESULT([$can_build_shared])
6671
AC_MSG_CHECKING([whether to build shared libraries])
6672
test "$can_build_shared" = "no" && enable_shared=no
6674
# On AIX, shared libraries and static libraries use the same namespace, and
6675
# are all built from PIC.
6678
test "$enable_shared" = yes && enable_static=no
6679
if test -n "$RANLIB"; then
6680
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6681
postinstall_cmds='$RANLIB $lib'
6685
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6686
test "$enable_shared" = yes && enable_static=no
6690
AC_MSG_RESULT([$enable_shared])
6692
AC_MSG_CHECKING([whether to build static libraries])
6693
# Make sure either enable_shared or enable_static is yes.
6694
test "$enable_shared" = yes || enable_static=yes
6695
AC_MSG_RESULT([$enable_static])
6697
_LT_TAGVAR(GCC, $1)="$G77"
6698
_LT_TAGVAR(LD, $1)="$LD"
6701
## There is no encapsulation within the following macros, do not change
6702
## the running order or otherwise move them around unless you know exactly
6703
## what you are doing...
6704
_LT_COMPILER_PIC($1)
6705
_LT_COMPILER_C_O($1)
6706
_LT_COMPILER_FILE_LOCKS($1)
6707
_LT_LINKER_SHLIBS($1)
6708
_LT_SYS_DYNAMIC_LINKER($1)
6709
_LT_LINKER_HARDCODE_LIBPATH($1)
6712
fi # test -n "$compiler"
6716
fi # test "$_lt_disable_F77" != yes
6719
])# _LT_LANG_F77_CONFIG
6724
# Since AC_PROG_FC is broken, in that it returns the empty string
6725
# if there is no fortran compiler, we have our own version here.
6726
m4_defun([_LT_PROG_FC],
6728
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6730
if test -z "$FC" || test "X$FC" = "Xno"; then
6733
popdef([AC_MSG_ERROR])
6736
dnl aclocal-1.4 backwards compatibility:
6737
dnl AC_DEFUN([_LT_PROG_FC], [])
6740
# _LT_LANG_FC_CONFIG([TAG])
6741
# -------------------------
6742
# Ensure that the configuration variables for a Fortran compiler are
6743
# suitably defined. These variables are subsequently used by _LT_CONFIG
6744
# to write the compiler configuration to `libtool'.
6745
m4_defun([_LT_LANG_FC_CONFIG],
6746
[AC_REQUIRE([_LT_PROG_FC])dnl
6747
AC_LANG_PUSH(Fortran)
6749
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6750
_LT_TAGVAR(allow_undefined_flag, $1)=
6751
_LT_TAGVAR(always_export_symbols, $1)=no
6752
_LT_TAGVAR(archive_expsym_cmds, $1)=
6753
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6754
_LT_TAGVAR(hardcode_direct, $1)=no
6755
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6756
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6757
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6758
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6759
_LT_TAGVAR(hardcode_minus_L, $1)=no
6760
_LT_TAGVAR(hardcode_automatic, $1)=no
6761
_LT_TAGVAR(inherit_rpath, $1)=no
6762
_LT_TAGVAR(module_cmds, $1)=
6763
_LT_TAGVAR(module_expsym_cmds, $1)=
6764
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6765
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6766
_LT_TAGVAR(no_undefined_flag, $1)=
6767
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6768
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6770
# Source file extension for fc test sources.
6771
ac_ext=${ac_fc_srcext-f}
6773
# Object file extension for compiled fc test sources.
6775
_LT_TAGVAR(objext, $1)=$objext
6777
# No sense in running all these tests if we already determined that
6778
# the FC compiler isn't working. Some variables (like enable_shared)
6779
# are currently assumed to apply to all compilers on this platform,
6780
# and will be corrupted by setting them based on a non-working compiler.
6781
if test "$_lt_disable_FC" != yes; then
6782
# Code to be used in simple compile tests
6783
lt_simple_compile_test_code="\
6789
# Code to be used in simple link tests
6790
lt_simple_link_test_code="\
6795
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6798
# save warnings/boilerplate of simple test code
6799
_LT_COMPILER_BOILERPLATE
6800
_LT_LINKER_BOILERPLATE
6802
# Allow CC to be a program name with arguments.
6807
GCC=$ac_cv_fc_compiler_gnu
6809
_LT_TAGVAR(compiler, $1)=$CC
6810
_LT_CC_BASENAME([$compiler])
6812
if test -n "$compiler"; then
6813
AC_MSG_CHECKING([if libtool supports shared libraries])
6814
AC_MSG_RESULT([$can_build_shared])
6816
AC_MSG_CHECKING([whether to build shared libraries])
6817
test "$can_build_shared" = "no" && enable_shared=no
6819
# On AIX, shared libraries and static libraries use the same namespace, and
6820
# are all built from PIC.
6823
test "$enable_shared" = yes && enable_static=no
6824
if test -n "$RANLIB"; then
6825
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6826
postinstall_cmds='$RANLIB $lib'
6830
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6831
test "$enable_shared" = yes && enable_static=no
6835
AC_MSG_RESULT([$enable_shared])
6837
AC_MSG_CHECKING([whether to build static libraries])
6838
# Make sure either enable_shared or enable_static is yes.
6839
test "$enable_shared" = yes || enable_static=yes
6840
AC_MSG_RESULT([$enable_static])
6842
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6843
_LT_TAGVAR(LD, $1)="$LD"
6846
## There is no encapsulation within the following macros, do not change
6847
## the running order or otherwise move them around unless you know exactly
6848
## what you are doing...
6849
_LT_SYS_HIDDEN_LIBDEPS($1)
6850
_LT_COMPILER_PIC($1)
6851
_LT_COMPILER_C_O($1)
6852
_LT_COMPILER_FILE_LOCKS($1)
6853
_LT_LINKER_SHLIBS($1)
6854
_LT_SYS_DYNAMIC_LINKER($1)
6855
_LT_LINKER_HARDCODE_LIBPATH($1)
6858
fi # test -n "$compiler"
6862
fi # test "$_lt_disable_FC" != yes
6865
])# _LT_LANG_FC_CONFIG
6868
# _LT_LANG_GCJ_CONFIG([TAG])
6869
# --------------------------
6870
# Ensure that the configuration variables for the GNU Java Compiler compiler
6871
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6872
# to write the compiler configuration to `libtool'.
6873
m4_defun([_LT_LANG_GCJ_CONFIG],
6874
[AC_REQUIRE([LT_PROG_GCJ])dnl
6877
# Source file extension for Java test sources.
6880
# Object file extension for compiled Java test sources.
6882
_LT_TAGVAR(objext, $1)=$objext
6884
# Code to be used in simple compile tests
6885
lt_simple_compile_test_code="class foo {}"
6887
# Code to be used in simple link tests
6888
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6890
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6893
# save warnings/boilerplate of simple test code
6894
_LT_COMPILER_BOILERPLATE
6895
_LT_LINKER_BOILERPLATE
6897
# Allow CC to be a program name with arguments.
6903
_LT_TAGVAR(compiler, $1)=$CC
6904
_LT_TAGVAR(LD, $1)="$LD"
6905
_LT_CC_BASENAME([$compiler])
6907
# GCJ did not exist at the time GCC didn't implicitly link libc in.
6908
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6910
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6913
## There is no encapsulation within the following macros, do not change
6914
## the running order or otherwise move them around unless you know exactly
6915
## what you are doing...
6916
if test -n "$compiler"; then
6917
_LT_COMPILER_NO_RTTI($1)
6918
_LT_COMPILER_PIC($1)
6919
_LT_COMPILER_C_O($1)
6920
_LT_COMPILER_FILE_LOCKS($1)
6921
_LT_LINKER_SHLIBS($1)
6922
_LT_LINKER_HARDCODE_LIBPATH($1)
6931
])# _LT_LANG_GCJ_CONFIG
6934
# _LT_LANG_RC_CONFIG([TAG])
6935
# -------------------------
6936
# Ensure that the configuration variables for the Windows resource compiler
6937
# are suitably defined. These variables are subsequently used by _LT_CONFIG
6938
# to write the compiler configuration to `libtool'.
6939
m4_defun([_LT_LANG_RC_CONFIG],
6940
[AC_REQUIRE([LT_PROG_RC])dnl
6943
# Source file extension for RC test sources.
6946
# Object file extension for compiled RC test sources.
6948
_LT_TAGVAR(objext, $1)=$objext
6950
# Code to be used in simple compile tests
6951
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6953
# Code to be used in simple link tests
6954
lt_simple_link_test_code="$lt_simple_compile_test_code"
6956
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6959
# save warnings/boilerplate of simple test code
6960
_LT_COMPILER_BOILERPLATE
6961
_LT_LINKER_BOILERPLATE
6963
# Allow CC to be a program name with arguments.
6969
_LT_TAGVAR(compiler, $1)=$CC
6970
_LT_CC_BASENAME([$compiler])
6971
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6973
if test -n "$compiler"; then
6981
])# _LT_LANG_RC_CONFIG
6986
AC_DEFUN([LT_PROG_GCJ],
6987
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6988
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6989
[AC_CHECK_TOOL(GCJ, gcj,)
6990
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6991
AC_SUBST(GCJFLAGS)])])[]dnl
6995
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6996
dnl aclocal-1.4 backwards compatibility:
6997
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7002
AC_DEFUN([LT_PROG_RC],
7003
[AC_CHECK_TOOL(RC, windres,)
7007
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7008
dnl aclocal-1.4 backwards compatibility:
7009
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7014
# If we don't have a new enough Autoconf to choose the best grep
7015
# available, choose the one first in the user's PATH.
7016
m4_defun([_LT_DECL_EGREP],
7017
[AC_REQUIRE([AC_PROG_EGREP])dnl
7018
AC_REQUIRE([AC_PROG_FGREP])dnl
7019
test -z "$GREP" && GREP=grep
7020
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7021
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7022
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7023
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7030
# If we don't have a new enough Autoconf to choose the best objdump
7031
# available, choose the one first in the user's PATH.
7032
m4_defun([_LT_DECL_OBJDUMP],
7033
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7034
test -z "$OBJDUMP" && OBJDUMP=objdump
7035
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7042
# Check for a fully-functional sed program, that truncates
7043
# as few characters as possible. Prefer GNU sed if found.
7044
m4_defun([_LT_DECL_SED],
7046
test -z "$SED" && SED=sed
7047
Xsed="$SED -e 1s/^X//"
7048
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7049
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7050
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7053
m4_ifndef([AC_PROG_SED], [
6139
7054
############################################################
6140
7055
# NOTE: This macro has been submitted for inclusion into #
6141
7056
# GNU Autoconf as AC_PROG_SED. When it is available in #
6142
7057
# a released version of Autoconf we should remove this #
6143
7058
# macro and use it instead. #
6144
7059
############################################################
6147
# Check for a fully-functional sed program, that truncates
6148
# as few characters as possible. Prefer GNU sed if found.
6149
AC_DEFUN([LT_AC_PROG_SED],
7061
m4_defun([AC_PROG_SED],
6150
7062
[AC_MSG_CHECKING([for a sed that does not truncate output])
6151
7063
AC_CACHE_VAL(lt_cv_path_SED,
6152
7064
[# Loop through the user's path and test for sed and gsed.