2543
2832
# Sed substitution that helps us do robust quoting. It backslashifies
2544
2833
# metacharacters that are still active within double-quoted strings.
2545
Xsed='sed -e 1s/^X//'
2546
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
2834
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2548
2836
# Same as above, but do not quote variable references.
2549
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
2837
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2551
2839
# Sed substitution to delay expansion of an escaped shell variable in a
2552
2840
# double_quote_subst'ed string.
2553
2841
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2843
# Sed substitution to delay expansion of an escaped single quote.
2844
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2555
2846
# Sed substitution to avoid accidental globbing in evaled expressions
2556
2847
no_glob_subst='s/\*/\\\*/g'
2561
2849
# Global variables:
2562
default_ofile=libtool
2563
2851
can_build_shared=yes
2565
2853
# All known linkers require a `.a' archive for static linking (except MSVC,
2566
2854
# which needs '.lib').
2568
ltmain="$ac_aux_dir/ltmain.sh"
2569
ofile="$default_ofile"
2570
2857
with_gnu_ld="$lt_cv_prog_gnu_ld"
2572
AC_CHECK_TOOL(AR, ar, false)
2573
AC_CHECK_TOOL(RANLIB, ranlib, :)
2574
AC_CHECK_TOOL(STRIP, strip, :)
2577
2860
old_CFLAGS="$CFLAGS"
2579
2862
# Set sane defaults for various variables
2580
test -z "$AR" && AR=ar
2581
test -z "$AR_FLAGS" && AR_FLAGS=cru
2582
test -z "$AS" && AS=as
2583
2863
test -z "$CC" && CC=cc
2584
2864
test -z "$LTCC" && LTCC=$CC
2585
2865
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2586
test -z "$DLLTOOL" && DLLTOOL=dlltool
2587
2866
test -z "$LD" && LD=ld
2588
test -z "$LN_S" && LN_S="ln -s"
2589
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2590
test -z "$NM" && NM=nm
2591
test -z "$SED" && SED=sed
2592
test -z "$OBJDUMP" && OBJDUMP=objdump
2593
test -z "$RANLIB" && RANLIB=:
2594
test -z "$STRIP" && STRIP=:
2595
2867
test -z "$ac_objext" && ac_objext=o
2597
# Determine commands to create old-style static archives.
2598
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2599
old_postinstall_cmds='chmod 644 $oldlib'
2600
old_postuninstall_cmds=
2602
if test -n "$RANLIB"; then
2605
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2608
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2611
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2614
2869
_LT_CC_BASENAME([$compiler])
2616
2871
# Only perform the check for file, if the check method requires it
2872
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2617
2873
case $deplibs_check_method in
2619
2875
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2625
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
2626
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2627
enable_win32_dll=yes, enable_win32_dll=no)
2629
AC_ARG_ENABLE([libtool-lock],
2630
[AC_HELP_STRING([--disable-libtool-lock],
2631
[avoid locking (might break parallel builds)])])
2632
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2635
[AC_HELP_STRING([--with-pic],
2636
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
2637
[pic_mode="$withval"],
2639
test -z "$pic_mode" && pic_mode=default
2641
2881
# Use C for the default configuration in the libtool script
2643
AC_LIBTOOL_LANG_C_CONFIG
2645
])# AC_LIBTOOL_SETUP
2648
# _LT_AC_SYS_COMPILER
2882
LT_SUPPORTED_TAG([CC])
2884
_LT_LANG_DEFAULT_CONFIG
2891
# Note that this code is called both from `configure', and `config.status'
2892
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2893
# `config.status' has no value for ac_aux_dir unless we are using Automake,
2894
# so we pass a copy along to make sure it has a sensible value anyway.
2895
m4_defun([_LT_PROG_LTMAIN],
2896
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
2897
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
2898
ltmain="$ac_aux_dir/ltmain.sh"
2903
# So that we can recreate a full libtool script including additional
2904
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2905
# in macros and then make a single call at the end using the `libtool'
2909
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2910
# ----------------------------------------
2911
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2912
m4_define([_LT_CONFIG_LIBTOOL_INIT],
2914
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
2919
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
2922
# _LT_CONFIG_LIBTOOL([COMMANDS])
2923
# ------------------------------
2924
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2925
m4_define([_LT_CONFIG_LIBTOOL],
2927
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
2932
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
2935
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2936
# -----------------------------------------------------
2937
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
2938
[_LT_CONFIG_LIBTOOL([$1])
2939
_LT_CONFIG_LIBTOOL_INIT([$2])
2943
# _LT_FORMAT_COMMENT([COMMENT])
2944
# -----------------------------
2945
# Add leading comment marks to the start of each line, and a trailing
2946
# full-stop to the whole comment if one is not present already.
2947
m4_define([_LT_FORMAT_COMMENT],
2949
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
2950
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
2957
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2958
# -------------------------------------------------------------------
2959
# CONFIGNAME is the name given to the value in the libtool script.
2960
# VARNAME is the (base) name used in the configure script.
2961
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2962
# VARNAME. Any other value will be used directly.
2963
m4_define([_LT_DECL],
2964
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
2965
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
2966
[m4_ifval([$1], [$1], [$2])])
2967
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
2969
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
2970
lt_dict_add_subkey([lt_decl_dict], [$2],
2971
[tagged?], [m4_ifval([$5], [yes], [no])])])
2975
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2976
# --------------------------------------------------------
2977
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
2980
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2981
# ------------------------------------------------
2982
m4_define([lt_decl_tag_varnames],
2983
[_lt_decl_filter([tagged?], [yes], $@)])
2986
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2987
# ---------------------------------------------------------
2988
m4_define([_lt_decl_filter],
2990
[0], [m4_fatal([$0: too few arguments: $#])],
2991
[1], [m4_fatal([$0: too few arguments: $#: $1])],
2992
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
2993
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
2994
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
2998
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2999
# --------------------------------------------------
3000
m4_define([lt_decl_quote_varnames],
3001
[_lt_decl_filter([value], [1], $@)])
3004
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3005
# ---------------------------------------------------
3006
m4_define([lt_decl_dquote_varnames],
3007
[_lt_decl_filter([value], [2], $@)])
3010
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3011
# ---------------------------------------------------
3012
m4_define([lt_decl_varnames_tagged],
3013
[m4_assert([$# <= 2])dnl
3014
_$0(m4_quote(m4_default([$1], [[, ]])),
3015
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
3016
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
3017
m4_define([_lt_decl_varnames_tagged],
3018
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
3021
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3022
# ------------------------------------------------
3023
m4_define([lt_decl_all_varnames],
3024
[_$0(m4_quote(m4_default([$1], [[, ]])),
3026
m4_quote(lt_decl_varnames),
3027
m4_quote(m4_shift($@))))[]dnl
3029
m4_define([_lt_decl_all_varnames],
3030
[lt_join($@, lt_decl_varnames_tagged([$1],
3031
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
3035
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
3036
# ------------------------------------
3037
# Quote a variable value, and forward it to `config.status' so that its
3038
# declaration there will have the same value as in `configure'. VARNAME
3039
# must have a single quote delimited value for this to work.
3040
m4_define([_LT_CONFIG_STATUS_DECLARE],
3041
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
3044
# _LT_CONFIG_STATUS_DECLARATIONS
3045
# ------------------------------
3046
# We delimit libtool config variables with single quotes, so when
3047
# we write them to config.status, we have to be sure to quote all
3048
# embedded single quotes properly. In configure, this macro expands
3049
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3051
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
3052
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
3053
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
3054
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
3059
# Output comment and list of tags supported by the script
3060
m4_defun([_LT_LIBTOOL_TAGS],
3061
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
3062
available_tags="_LT_TAGS"dnl
3066
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3067
# -----------------------------------
3068
# Extract the dictionary values for VARNAME (optionally with TAG) and
3069
# expand to a commented shell variable setting:
3071
# # Some comment about what VAR is for.
3072
# visible_name=$lt_internal_name
3073
m4_define([_LT_LIBTOOL_DECLARE],
3074
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
3075
[description])))[]dnl
3076
m4_pushdef([_libtool_name],
3077
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
3078
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
3079
[0], [_libtool_name=[$]$1],
3080
[1], [_libtool_name=$lt_[]$1],
3081
[2], [_libtool_name=$lt_[]$1],
3082
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
3083
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
3087
# _LT_LIBTOOL_CONFIG_VARS
3088
# -----------------------
3089
# Produce commented declarations of non-tagged libtool config variables
3090
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3091
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
3092
# section) are produced by _LT_LIBTOOL_TAG_VARS.
3093
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
3094
[m4_foreach([_lt_var],
3095
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
3096
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
3099
# _LT_LIBTOOL_TAG_VARS(TAG)
3100
# -------------------------
3101
m4_define([_LT_LIBTOOL_TAG_VARS],
3102
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
3103
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
3106
# _LT_TAGVAR(VARNAME, [TAGNAME])
3107
# ------------------------------
3108
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
3111
# _LT_CONFIG_COMMANDS
2649
3112
# -------------------
2650
AC_DEFUN([_LT_AC_SYS_COMPILER],
3113
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
3114
# variables for single and double quote escaping we saved from calls
3115
# to _LT_DECL, we can put quote escaped variables declarations
3116
# into `config.status', and then the shell code to quote escape them in
3117
# for loops in `config.status'. Finally, any additional code accumulated
3118
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3119
m4_defun([_LT_CONFIG_COMMANDS],
3120
[AC_PROVIDE_IFELSE([LT_OUTPUT],
3121
dnl If the libtool generation code has been placed in $CONFIG_LT,
3122
dnl instead of duplicating it all over again into config.status,
3123
dnl then we will have config.status run $CONFIG_LT later, so it
3124
dnl needs to know what name is stored there:
3125
[AC_CONFIG_COMMANDS([libtool],
3126
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
3127
dnl If the libtool generation code is destined for config.status,
3128
dnl expand the accumulated commands and init code now:
3129
[AC_CONFIG_COMMANDS([libtool],
3130
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
3131
])#_LT_CONFIG_COMMANDS
3135
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
3138
# The HP-UX ksh and POSIX shell print the target directory to stdout
3140
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3142
sed_quote_subst='$sed_quote_subst'
3143
double_quote_subst='$double_quote_subst'
3144
delay_variable_subst='$delay_variable_subst'
3145
_LT_CONFIG_STATUS_DECLARATIONS
3147
LTCFLAGS='$LTCFLAGS'
3148
compiler='$compiler_DEFAULT'
3150
# Quote evaled strings.
3151
for var in lt_decl_all_varnames([[ \
3152
]], lt_decl_quote_varnames); do
3153
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
3154
*[[\\\\\\\`\\"\\\$]]*)
3155
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
3158
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
3163
# Double-quote double-evaled strings.
3164
for var in lt_decl_all_varnames([[ \
3165
]], lt_decl_dquote_varnames); do
3166
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
3167
*[[\\\\\\\`\\"\\\$]]*)
3168
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
3171
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
3176
# Fix-up fallback echo if it was mangled by the above quoting rules.
3178
*'\\\[$]0 --fallback-echo"')dnl "
3179
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
3183
_LT_OUTPUT_LIBTOOL_INIT
3189
# This macro allows early generation of the libtool script (before
3190
# AC_OUTPUT is called), incase it is used in configure for compilation
3192
AC_DEFUN([LT_OUTPUT],
3193
[: ${CONFIG_LT=./config.lt}
3194
AC_MSG_NOTICE([creating $CONFIG_LT])
3195
cat >"$CONFIG_LT" <<_LTEOF
3197
# Generated by $as_me.
3198
# Run this file to recreate a libtool stub with the current configuration.
3201
SHELL=\${CONFIG_SHELL-$SHELL}
3204
cat >>"$CONFIG_LT" <<\_LTEOF
3208
exec AS_MESSAGE_FD>&1
3209
exec AS_MESSAGE_LOG_FD>>config.log
3212
AS_BOX([Running $as_me.])
3213
} >&AS_MESSAGE_LOG_FD
3216
\`$as_me' creates a local libtool stub from the current configuration,
3217
for use in further configure time tests before the real libtool is
3220
Usage: $[0] [[OPTIONS]]
3222
-h, --help print this help, then exit
3223
-V, --version print version number, then exit
3224
-q, --quiet do not print progress messages
3225
-d, --debug don't remove temporary files
3227
Report bugs to <bug-libtool@gnu.org>."
3230
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
3231
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
3232
configured by $[0], generated by m4_PACKAGE_STRING.
3234
Copyright (C) 2008 Free Software Foundation, Inc.
3235
This config.lt script is free software; the Free Software Foundation
3236
gives unlimited permision to copy, distribute and modify it."
3238
while test $[#] != 0
3241
--version | --v* | -V )
3242
echo "$lt_cl_version"; exit 0 ;;
3243
--help | --h* | -h )
3244
echo "$lt_cl_help"; exit 0 ;;
3245
--debug | --d* | -d )
3247
--quiet | --q* | --silent | --s* | -q )
3250
-*) AC_MSG_ERROR([unrecognized option: $[1]
3251
Try \`$[0] --help' for more information.]) ;;
3253
*) AC_MSG_ERROR([unrecognized argument: $[1]
3254
Try \`$[0] --help' for more information.]) ;;
3259
if $lt_cl_silent; then
3260
exec AS_MESSAGE_FD>/dev/null
3264
cat >>"$CONFIG_LT" <<_LTEOF
3265
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
3268
cat >>"$CONFIG_LT" <<\_LTEOF
3269
AC_MSG_NOTICE([creating $ofile])
3270
_LT_OUTPUT_LIBTOOL_COMMANDS
3273
chmod +x "$CONFIG_LT"
3275
# configure is writing to config.log, but config.lt does its own redirection,
3276
# appending to config.log, which fails on DOS, as config.log is still kept
3277
# open by configure. Here we exec the FD to /dev/null, effectively closing
3278
# config.log, so it can be properly (re)opened and appended to by config.lt.
3279
if test "$no_create" != yes; then
3281
test "$silent" = yes &&
3282
lt_config_lt_args="$lt_config_lt_args --quiet"
3283
exec AS_MESSAGE_LOG_FD>/dev/null
3284
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
3285
exec AS_MESSAGE_LOG_FD>>config.log
3286
$lt_cl_success || AS_EXIT(1)
3293
# If TAG is the built-in tag, create an initial libtool script with a
3294
# default configuration from the untagged config vars. Otherwise add code
3295
# to config.status for appending the configuration named by TAG from the
3296
# matching tagged config vars.
3297
m4_defun([_LT_CONFIG],
3298
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3299
_LT_CONFIG_SAVE_COMMANDS([
3300
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
3301
m4_if(_LT_TAG, [C], [
3302
# See if we are running on zsh, and set the options which allow our
3303
# commands through without removal of \ escapes.
3304
if test -n "${ZSH_VERSION+set}" ; then
3305
setopt NO_GLOB_SUBST
3309
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
3312
cat <<_LT_EOF >> "$cfgfile"
3315
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3316
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
3317
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3318
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
3323
# ### BEGIN LIBTOOL CONFIG
3324
_LT_LIBTOOL_CONFIG_VARS
3325
_LT_LIBTOOL_TAG_VARS
3326
# ### END LIBTOOL CONFIG
3332
cat <<\_LT_EOF >> "$cfgfile"
3333
# AIX sometimes has problems with the GCC collect2 program. For some
3334
# reason, if we set the COLLECT_NAMES environment variable, the problems
3335
# vanish in a puff of smoke.
3336
if test "X${COLLECT_NAMES+set}" != Xset; then
3338
export COLLECT_NAMES
3346
# We use sed instead of cat because bash on DJGPP gets confused if
3347
# if finds mixed CR/LF and LF-only lines. Since sed operates in
3348
# text mode, it properly converts lines to CR/LF. This bash problem
3349
# is reportedly fixed, but why not run on old versions too?
3350
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
3351
|| (rm -f "$cfgfile"; exit 1)
3353
_LT_PROG_XSI_SHELLFNS
3355
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
3356
|| (rm -f "$cfgfile"; exit 1)
3358
mv -f "$cfgfile" "$ofile" ||
3359
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3362
[cat <<_LT_EOF >> "$ofile"
3364
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
3365
dnl in a comment (ie after a #).
3366
# ### BEGIN LIBTOOL TAG CONFIG: $1
3367
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
3368
# ### END LIBTOOL TAG CONFIG: $1
3375
TIMESTAMP='$TIMESTAMP'
3377
ofile='$ofile'], [])
3378
])dnl /_LT_CONFIG_SAVE_COMMANDS
3382
# LT_SUPPORTED_TAG(TAG)
3383
# ---------------------
3384
# Trace this macro to discover what tags are supported by the libtool
3385
# --tag option, using:
3386
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
3387
AC_DEFUN([LT_SUPPORTED_TAG], [])
3390
# C support is built-in for now
3391
m4_define([_LT_LANG_C_enabled], [])
3392
m4_define([_LT_TAGS], [])
3397
# Enable libtool support for the given language if not already enabled.
3399
[AC_BEFORE([$0], [LT_OUTPUT])dnl
3402
[C++], [_LT_LANG(CXX)],
3403
[Java], [_LT_LANG(GCJ)],
3404
[Fortran 77], [_LT_LANG(F77)],
3405
[Fortran], [_LT_LANG(FC)],
3406
[Windows Resource], [_LT_LANG(RC)],
3407
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
3409
[m4_fatal([$0: unsupported language: "$1"])])])dnl
3413
# _LT_LANG(LANGNAME)
3414
# ------------------
3415
m4_defun([_LT_LANG],
3416
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
3417
[LT_SUPPORTED_TAG([$1])dnl
3418
m4_append([_LT_TAGS], [$1 ])dnl
3419
m4_define([_LT_LANG_]$1[_enabled], [])dnl
3420
_LT_LANG_$1_CONFIG($1)])dnl
3424
# _LT_LANG_DEFAULT_CONFIG
3425
# -----------------------
3426
m4_defun([_LT_LANG_DEFAULT_CONFIG],
3427
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
3429
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
3431
AC_PROVIDE_IFELSE([AC_PROG_F77],
3433
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
3435
AC_PROVIDE_IFELSE([AC_PROG_FC],
3437
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
3439
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
3440
dnl pulling things in needlessly.
3441
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
3443
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
3445
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
3447
[m4_ifdef([AC_PROG_GCJ],
3448
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
3449
m4_ifdef([A][M_PROG_GCJ],
3450
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
3451
m4_ifdef([LT_PROG_GCJ],
3452
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
3454
AC_PROVIDE_IFELSE([LT_PROG_RC],
3456
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
3457
])# _LT_LANG_DEFAULT_CONFIG
3460
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
3461
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
3462
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
3463
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
3464
dnl aclocal-1.4 backwards compatibility:
3465
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
3466
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
3467
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
3468
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
3473
m4_defun([_LT_TAG_COMPILER],
2651
3474
[AC_REQUIRE([AC_PROG_CC])dnl
3476
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
3477
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
3478
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
3479
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
2653
3481
# If no C compiler was specified, use CC.
2654
3482
LTCC=${LTCC-"$CC"}
4981
5900
AC_CHECK_LIB(m, cos, LIBM="-lm")
4987
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4988
# -----------------------------------
4989
# sets LIBLTDL to the link flags for the libltdl convenience library and
4990
# LTDLINCL to the include flags for the libltdl header and adds
4991
# --enable-ltdl-convenience to the configure arguments. Note that
4992
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4993
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4994
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4995
# (note the single quotes!). If your package is not flat and you're not
4996
# using automake, define top_builddir and top_srcdir appropriately in
4998
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4999
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5000
case $enable_ltdl_convenience in
5001
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
5002
"") enable_ltdl_convenience=yes
5003
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5005
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
5006
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
5007
# For backwards non-gettext consistent compatibility...
5009
])# AC_LIBLTDL_CONVENIENCE
5012
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
5013
# -----------------------------------
5014
# sets LIBLTDL to the link flags for the libltdl installable library and
5015
# LTDLINCL to the include flags for the libltdl header and adds
5016
# --enable-ltdl-install to the configure arguments. Note that
5017
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
5018
# and an installed libltdl is not found, it is assumed to be `libltdl'.
5019
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
5020
# '${top_srcdir}/' (note the single quotes!). If your package is not
5021
# flat and you're not using automake, define top_builddir and top_srcdir
5022
# appropriately in the Makefiles.
5023
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
5024
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
5025
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5026
AC_CHECK_LIB(ltdl, lt_dlinit,
5027
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
5028
[if test x"$enable_ltdl_install" = xno; then
5029
AC_MSG_WARN([libltdl not installed, but installation disabled])
5031
enable_ltdl_install=yes
5034
if test x"$enable_ltdl_install" = x"yes"; then
5035
ac_configure_args="$ac_configure_args --enable-ltdl-install"
5036
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
5037
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
5039
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5043
# For backwards non-gettext consistent compatibility...
5045
])# AC_LIBLTDL_INSTALLABLE
5050
# enable support for C++ libraries
5051
AC_DEFUN([AC_LIBTOOL_CXX],
5052
[AC_REQUIRE([_LT_AC_LANG_CXX])
5058
AC_DEFUN([_LT_AC_LANG_CXX],
5059
[AC_REQUIRE([AC_PROG_CXX])
5060
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5061
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
5064
# _LT_AC_PROG_CXXCPP
5065
# ------------------
5066
AC_DEFUN([_LT_AC_PROG_CXXCPP],
5068
AC_REQUIRE([AC_PROG_CXX])
5069
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5070
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5071
(test "X$CXX" != "Xg++"))) ; then
5074
])# _LT_AC_PROG_CXXCPP
5078
# enable support for Fortran 77 libraries
5079
AC_DEFUN([AC_LIBTOOL_F77],
5080
[AC_REQUIRE([_LT_AC_LANG_F77])
5086
AC_DEFUN([_LT_AC_LANG_F77],
5087
[AC_REQUIRE([AC_PROG_F77])
5088
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
5094
# enable support for GCJ libraries
5095
AC_DEFUN([AC_LIBTOOL_GCJ],
5096
[AC_REQUIRE([_LT_AC_LANG_GCJ])
5102
AC_DEFUN([_LT_AC_LANG_GCJ],
5103
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
5104
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
5105
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
5106
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
5107
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
5108
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
5109
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
5115
# enable support for Windows resource files
5116
AC_DEFUN([AC_LIBTOOL_RC],
5117
[AC_REQUIRE([LT_AC_PROG_RC])
5118
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
5122
# AC_LIBTOOL_LANG_C_CONFIG
5123
# ------------------------
5124
# Ensure that the configuration vars for the C compiler are
5125
# suitably defined. Those variables are subsequently used by
5126
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5127
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
5128
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
5132
# Source file extension for C test sources.
5135
# Object file extension for compiled C test sources.
5137
_LT_AC_TAGVAR(objext, $1)=$objext
5139
# Code to be used in simple compile tests
5140
lt_simple_compile_test_code="int some_variable = 0;"
5142
# Code to be used in simple link tests
5143
lt_simple_link_test_code='int main(){return(0);}'
5147
# save warnings/boilerplate of simple test code
5148
_LT_COMPILER_BOILERPLATE
5149
_LT_LINKER_BOILERPLATE
5151
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5152
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5153
AC_LIBTOOL_PROG_CC_C_O($1)
5154
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5155
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5156
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5157
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5158
AC_LIBTOOL_SYS_LIB_STRIP
5159
AC_LIBTOOL_DLOPEN_SELF
5161
# Report which library types will actually be built
5162
AC_MSG_CHECKING([if libtool supports shared libraries])
5163
AC_MSG_RESULT([$can_build_shared])
5165
AC_MSG_CHECKING([whether to build shared libraries])
5166
test "$can_build_shared" = "no" && enable_shared=no
5168
# On AIX, shared libraries and static libraries use the same namespace, and
5169
# are all built from PIC.
5172
test "$enable_shared" = yes && enable_static=no
5173
if test -n "$RANLIB"; then
5174
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5175
postinstall_cmds='$RANLIB $lib'
5180
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5181
test "$enable_shared" = yes && enable_static=no
5185
AC_MSG_RESULT([$enable_shared])
5187
AC_MSG_CHECKING([whether to build static libraries])
5188
# Make sure either enable_shared or enable_static is yes.
5189
test "$enable_shared" = yes || enable_static=yes
5190
AC_MSG_RESULT([$enable_static])
5192
AC_LIBTOOL_CONFIG($1)
5196
])# AC_LIBTOOL_LANG_C_CONFIG
5199
# AC_LIBTOOL_LANG_CXX_CONFIG
5200
# --------------------------
5201
# Ensure that the configuration vars for the C compiler are
5202
# suitably defined. Those variables are subsequently used by
5203
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5204
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
5205
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
5207
AC_REQUIRE([AC_PROG_CXX])
5208
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5210
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5211
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5212
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5213
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5214
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5215
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5216
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5217
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5218
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5219
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5220
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5221
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5222
_LT_AC_TAGVAR(module_cmds, $1)=
5223
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5224
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5225
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5226
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5227
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5228
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5230
# Dependencies to place before and after the object being linked:
5231
_LT_AC_TAGVAR(predep_objects, $1)=
5232
_LT_AC_TAGVAR(postdep_objects, $1)=
5233
_LT_AC_TAGVAR(predeps, $1)=
5234
_LT_AC_TAGVAR(postdeps, $1)=
5235
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
5237
# Source file extension for C++ test sources.
5240
# Object file extension for compiled C++ test sources.
5242
_LT_AC_TAGVAR(objext, $1)=$objext
5244
# Code to be used in simple compile tests
5245
lt_simple_compile_test_code="int some_variable = 0;"
5247
# Code to be used in simple link tests
5248
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5250
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5253
# save warnings/boilerplate of simple test code
5254
_LT_COMPILER_BOILERPLATE
5255
_LT_LINKER_BOILERPLATE
5257
# Allow CC to be a program name with arguments.
5262
lt_save_with_gnu_ld=$with_gnu_ld
5263
lt_save_path_LD=$lt_cv_path_LD
5264
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5265
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5267
$as_unset lt_cv_prog_gnu_ld
5269
if test -n "${lt_cv_path_LDCXX+set}"; then
5270
lt_cv_path_LD=$lt_cv_path_LDCXX
5272
$as_unset lt_cv_path_LD
5274
test -z "${LDCXX+set}" || LD=$LDCXX
5277
_LT_AC_TAGVAR(compiler, $1)=$CC
5278
_LT_CC_BASENAME([$compiler])
5280
# We don't want -fno-exception wen compiling C++ code, so set the
5281
# no_builtin_flag separately
5282
if test "$GXX" = yes; then
5283
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5285
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5288
if test "$GXX" = yes; then
5289
# Set up default GNU C++ configuration
5293
# Check if GNU C++ uses GNU ld as the underlying linker, since the
5294
# archiving commands below assume that GNU ld is being used.
5295
if test "$with_gnu_ld" = yes; then
5296
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5297
_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'
5299
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5300
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5302
# If archive_cmds runs LD, not CC, wlarc should be empty
5303
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5304
# investigate it a little bit more. (MM)
5307
# ancient GNU ld didn't support --whole-archive et. al.
5308
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5309
grep 'no-whole-archive' > /dev/null; then
5310
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5312
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5318
# A generic and very simple default shared library creation
5319
# command for GNU C++ for the case where it uses the native
5320
# linker, instead of GNU ld. If possible, this setting should
5321
# overridden to take advantage of the native linker features on
5322
# the platform it is being used on.
5323
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5326
# Commands to make compiler produce verbose output that lists
5327
# what "hidden" libraries, object files and flags are used when
5328
# linking a shared library.
5329
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5337
# PORTME: fill in a description of your system's C++ link characteristics
5338
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5339
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5342
# FIXME: insert proper C++ library support
5343
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5346
if test "$host_cpu" = ia64; then
5347
# On IA64, the linker does run time linking by default, so we don't
5348
# have to do anything special.
5349
aix_use_runtimelinking=no
5350
exp_sym_flag='-Bexport'
5353
aix_use_runtimelinking=no
5355
# Test if we are trying to use run time linking or normal
5356
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5357
# need to do runtime linking.
5358
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5359
for ld_flag in $LDFLAGS; do
5362
aix_use_runtimelinking=yes
5370
exp_sym_flag='-bexport'
5371
no_entry_flag='-bnoentry'
5374
# When large executables or shared objects are built, AIX ld can
5375
# have problems creating the table of contents. If linking a library
5376
# or program results in "error TOC overflow" add -mminimal-toc to
5377
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5378
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5380
_LT_AC_TAGVAR(archive_cmds, $1)=''
5381
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5382
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5383
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5385
if test "$GXX" = yes; then
5386
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5387
# We only want to do this on AIX 4.2 and lower, the check
5388
# below for broken collect2 doesn't work under 4.3+
5389
collect2name=`${CC} -print-prog-name=collect2`
5390
if test -f "$collect2name" && \
5391
strings "$collect2name" | grep resolve_lib_name >/dev/null
5393
# We have reworked collect2
5396
# We have old collect2
5397
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5398
# It fails to find uninstalled libraries when the uninstalled
5399
# path is not listed in the libpath. Setting hardcode_minus_L
5400
# to unsupported forces relinking
5401
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5402
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5403
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5407
shared_flag='-shared'
5408
if test "$aix_use_runtimelinking" = yes; then
5409
shared_flag="$shared_flag "'${wl}-G'
5413
if test "$host_cpu" = ia64; then
5414
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5415
# chokes on -Wl,-G. The following line is correct:
5418
if test "$aix_use_runtimelinking" = yes; then
5419
shared_flag='${wl}-G'
5421
shared_flag='${wl}-bM:SRE'
5426
# It seems that -bexpall does not export symbols beginning with
5427
# underscore (_), so it is better to generate a list of symbols to export.
5428
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5429
if test "$aix_use_runtimelinking" = yes; then
5430
# Warning - without using the other runtime loading flags (-brtl),
5431
# -berok will link without error, but may produce a broken library.
5432
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5433
# Determine the default libpath from the value encoded in an empty executable.
5434
_LT_AC_SYS_LIBPATH_AIX
5435
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5437
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5439
if test "$host_cpu" = ia64; then
5440
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5441
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5442
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5444
# Determine the default libpath from the value encoded in an empty executable.
5445
_LT_AC_SYS_LIBPATH_AIX
5446
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5447
# Warning - without using the other run time loading flags,
5448
# -berok will link without error, but may produce a broken library.
5449
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5450
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5451
# Exported symbols can be pulled into shared objects from archives
5452
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5453
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5454
# This is similar to how AIX traditionally builds its shared libraries.
5455
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5461
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5462
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5463
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5464
# support --undefined. This deserves some investigation. FIXME
5465
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5467
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5472
case $cc_basename in
5474
# FIXME: insert proper C++ library support
5475
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5480
cygwin* | mingw* | pw32*)
5481
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5482
# as there is no search path for DLLs.
5483
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5484
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5485
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5486
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5488
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5489
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5490
# If the export-symbols file already is a .def file (1st line
5491
# is EXPORTS), use it as is; otherwise, prepend...
5492
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5493
cp $export_symbols $output_objdir/$soname.def;
5495
echo EXPORTS > $output_objdir/$soname.def;
5496
cat $export_symbols >> $output_objdir/$soname.def;
5498
$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'
5500
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5503
darwin* | rhapsody*)
5505
rhapsody* | darwin1.[[012]])
5506
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5509
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5510
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5512
case ${MACOSX_DEPLOYMENT_TARGET} in
5514
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5517
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5523
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5524
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5525
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5526
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5527
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5528
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5530
if test "$GXX" = yes ; then
5531
lt_int_apple_cc_single_mod=no
5532
output_verbose_link_cmd='echo'
5533
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5534
lt_int_apple_cc_single_mod=yes
5536
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5537
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5539
_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'
5541
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5542
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5543
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5544
_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}'
5546
_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}'
5548
_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}'
5550
case $cc_basename in
5552
output_verbose_link_cmd='echo'
5553
_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` $xlcverstring'
5554
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5555
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5556
_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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5557
_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}'
5560
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5567
case $cc_basename in
5569
# FIXME: insert proper C++ library support
5570
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5573
# Green Hills C++ Compiler
5574
# FIXME: insert proper C++ library support
5575
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5578
# FIXME: insert proper C++ library support
5579
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5584
# C++ shared libraries reported to be fairly broken before switch to ELF
5585
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5588
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5590
freebsd* | dragonfly*)
5591
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5593
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5598
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5599
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5600
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5601
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5602
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5603
# but as the default
5604
# location of the library.
5606
case $cc_basename in
5608
# FIXME: insert proper C++ library support
5609
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5612
_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'
5613
# Commands to make compiler produce verbose output that lists
5614
# what "hidden" libraries, object files and flags are used when
5615
# linking a shared library.
5617
# There doesn't appear to be a way to prevent this compiler from
5618
# explicitly linking system object files so we need to strip them
5619
# from the output so that they don't get included in the library
5621
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'
5624
if test "$GXX" = yes; then
5625
_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'
5627
# FIXME: insert proper C++ library support
5628
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5634
if test $with_gnu_ld = no; then
5635
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5636
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5641
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5647
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5648
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5651
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5652
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5653
# but as the default
5654
# location of the library.
5658
case $cc_basename in
5660
# FIXME: insert proper C++ library support
5661
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5666
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5669
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5672
_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'
5675
# Commands to make compiler produce verbose output that lists
5676
# what "hidden" libraries, object files and flags are used when
5677
# linking a shared library.
5679
# There doesn't appear to be a way to prevent this compiler from
5680
# explicitly linking system object files so we need to strip them
5681
# from the output so that they don't get included in the library
5683
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'
5686
if test "$GXX" = yes; then
5687
if test $with_gnu_ld = no; then
5690
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5693
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5696
_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'
5701
# FIXME: insert proper C++ library support
5702
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5708
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5709
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5710
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5711
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5712
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5713
# Instead, shared libraries are loaded at an image base (0x10000000 by
5714
# default) and relocated if they conflict, which is a slow very memory
5715
# consuming and fragmenting process. To avoid this, we pick a random,
5716
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5717
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5718
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5719
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5722
case $cc_basename in
5725
_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'
5727
# Archives containing C++ object files must be created using
5728
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
5729
# necessary to make sure instantiated templates are included
5731
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5734
if test "$GXX" = yes; then
5735
if test "$with_gnu_ld" = no; then
5736
_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'
5738
_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'
5741
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5744
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5745
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5747
linux* | k*bsd*-gnu)
5748
case $cc_basename in
5750
# Kuck and Associates, Inc. (KAI) C++ Compiler
5752
# KCC will only create a shared library if the output file
5753
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5754
# to its proper name (with version) after linking.
5755
_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'
5756
_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'
5757
# Commands to make compiler produce verbose output that lists
5758
# what "hidden" libraries, object files and flags are used when
5759
# linking a shared library.
5761
# There doesn't appear to be a way to prevent this compiler from
5762
# explicitly linking system object files so we need to strip them
5763
# from the output so that they don't get included in the library
5765
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'
5767
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5768
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5770
# Archives containing C++ object files must be created using
5771
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5772
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5777
# version 8.0 and above of icpc choke on multiply defined symbols
5778
# if we add $predep_objects and $postdep_objects, however 7.1 and
5779
# earlier do not add the objects themselves.
5780
case `$CC -V 2>&1` in
5782
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5783
_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'
5785
*) # Version 8.0 or newer
5788
ia64*) tmp_idyn=' -i_dynamic';;
5790
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5791
_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'
5794
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5795
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5796
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5797
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5800
# Portland Group C++ compiler
5801
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5802
_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'
5804
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5805
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5806
_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'
5810
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5811
_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'
5813
runpath_var=LD_RUN_PATH
5814
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5815
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5817
# Commands to make compiler produce verbose output that lists
5818
# what "hidden" libraries, object files and flags are used when
5819
# linking a shared library.
5821
# There doesn't appear to be a way to prevent this compiler from
5822
# explicitly linking system object files so we need to strip them
5823
# from the output so that they don't get included in the library
5825
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'
5828
case `$CC -V 2>&1 | sed 5q` in
5831
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5832
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5833
_LT_AC_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'
5834
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5835
_LT_AC_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'
5837
# Not sure whether something based on
5838
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5840
output_verbose_link_cmd='echo'
5842
# Archives containing C++ object files must be created using
5843
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5844
# necessary to make sure instantiated templates are included
5846
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5853
# FIXME: insert proper C++ library support
5854
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5857
# FIXME: insert proper C++ library support
5858
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5861
case $cc_basename in
5863
# FIXME: insert proper C++ library support
5864
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5867
# FIXME: insert proper C++ library support
5868
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5873
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5874
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5876
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5877
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5878
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5880
# Workaround some broken pre-1.5 toolchains
5881
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5884
# C++ shared libraries are fairly broken
5885
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5888
if test -f /usr/libexec/ld.so; then
5889
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5890
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5891
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5892
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5893
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5894
_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'
5895
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5896
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5898
output_verbose_link_cmd='echo'
5900
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5904
case $cc_basename in
5906
# Kuck and Associates, Inc. (KAI) C++ Compiler
5908
# KCC will only create a shared library if the output file
5909
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5910
# to its proper name (with version) after linking.
5911
_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'
5913
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5914
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5916
# Archives containing C++ object files must be created using
5917
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5918
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5922
# Rational C++ 2.4.1
5923
# FIXME: insert proper C++ library support
5924
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5927
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5928
_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'
5930
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5931
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5933
# Commands to make compiler produce verbose output that lists
5934
# what "hidden" libraries, object files and flags are used when
5935
# linking a shared library.
5937
# There doesn't appear to be a way to prevent this compiler from
5938
# explicitly linking system object files so we need to strip them
5939
# from the output so that they don't get included in the library
5941
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'
5944
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5945
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5946
_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'
5948
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5949
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5951
# Commands to make compiler produce verbose output that lists
5952
# what "hidden" libraries, object files and flags are used when
5953
# linking a shared library.
5954
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5957
# FIXME: insert proper C++ library support
5958
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5964
case $cc_basename in
5966
# Kuck and Associates, Inc. (KAI) C++ Compiler
5968
# KCC will only create a shared library if the output file
5969
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5970
# to its proper name (with version) after linking.
5971
_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'
5973
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5974
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5976
# Archives containing C++ object files must be created using
5977
# the KAI C++ compiler.
5978
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5981
# Rational C++ 2.4.1
5982
# FIXME: insert proper C++ library support
5983
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5986
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5987
_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'
5988
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5989
echo "-hidden">> $lib.exp~
5990
$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~
5993
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5994
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5996
# Commands to make compiler produce verbose output that lists
5997
# what "hidden" libraries, object files and flags are used when
5998
# linking a shared library.
6000
# There doesn't appear to be a way to prevent this compiler from
6001
# explicitly linking system object files so we need to strip them
6002
# from the output so that they don't get included in the library
6004
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'
6007
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6008
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6009
_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'
6011
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6012
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6014
# Commands to make compiler produce verbose output that lists
6015
# what "hidden" libraries, object files and flags are used when
6016
# linking a shared library.
6017
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6020
# FIXME: insert proper C++ library support
6021
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6027
# FIXME: insert proper C++ library support
6028
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6031
case $cc_basename in
6034
# FIXME: insert proper C++ library support
6035
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6039
# FIXME: insert proper C++ library support
6040
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6043
# FIXME: insert proper C++ library support
6044
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6049
case $cc_basename in
6051
# Sun C++ 4.2, 5.x and Centerline C++
6052
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6053
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6054
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6055
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6056
$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'
6058
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6059
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6061
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6063
# The compiler driver will combine and reorder linker options,
6064
# but understands `-z linker_flag'.
6065
# Supported since Solaris 2.6 (maybe 2.5.1?)
6066
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6069
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6071
output_verbose_link_cmd='echo'
6073
# Archives containing C++ object files must be created using
6074
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6075
# necessary to make sure instantiated templates are included
6077
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6080
# Green Hills C++ Compiler
6081
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6083
# The C++ compiler must be used to create the archive.
6084
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6087
# GNU C++ compiler with Solaris linker
6088
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6089
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6090
if $CC --version | grep -v '^2\.7' > /dev/null; then
6091
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6092
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6093
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6095
# Commands to make compiler produce verbose output that lists
6096
# what "hidden" libraries, object files and flags are used when
6097
# linking a shared library.
6098
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6100
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6102
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6103
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6104
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6106
# Commands to make compiler produce verbose output that lists
6107
# what "hidden" libraries, object files and flags are used when
6108
# linking a shared library.
6109
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6112
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6114
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6116
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6123
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6124
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6125
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6126
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6127
runpath_var='LD_RUN_PATH'
6129
case $cc_basename in
6131
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6132
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6135
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6136
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6140
sysv5* | sco3.2v5* | sco5v6*)
6141
# Note: We can NOT use -z defs as we might desire, because we do not
6142
# link with -lc, and that would cause any symbols used from libc to
6143
# always be unresolved, which means just about no library would
6144
# ever link correctly. If we're not using GNU ld we use -z text
6145
# though, which does catch some bad symbols but isn't as heavy-handed
6147
# For security reasons, it is highly recommended that you always
6148
# use absolute paths for naming shared libraries, and exclude the
6149
# DT_RUNPATH tag from executables and libraries. But doing so
6150
# requires that you compile everything twice, which is a pain.
6151
# So that behaviour is only enabled if SCOABSPATH is set to a
6152
# non-empty value in the environment. Most likely only useful for
6153
# creating official distributions of packages.
6154
# This is a hack until libtool officially supports absolute path
6155
# names for shared libraries.
6156
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6157
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6158
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6159
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6160
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6161
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6162
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6163
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6164
runpath_var='LD_RUN_PATH'
6166
case $cc_basename in
6168
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6169
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6172
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6173
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6178
case $cc_basename in
6180
# NonStop-UX NCC 3.20
6181
# FIXME: insert proper C++ library support
6182
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6185
# FIXME: insert proper C++ library support
6186
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6191
# FIXME: insert proper C++ library support
6192
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6195
# FIXME: insert proper C++ library support
6196
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6199
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6200
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6202
_LT_AC_TAGVAR(GCC, $1)="$GXX"
6203
_LT_AC_TAGVAR(LD, $1)="$LD"
6205
AC_LIBTOOL_POSTDEP_PREDEP($1)
6206
AC_LIBTOOL_PROG_COMPILER_PIC($1)
6207
AC_LIBTOOL_PROG_CC_C_O($1)
6208
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6209
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6210
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6211
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6213
AC_LIBTOOL_CONFIG($1)
6220
with_gnu_ldcxx=$with_gnu_ld
6221
with_gnu_ld=$lt_save_with_gnu_ld
6222
lt_cv_path_LDCXX=$lt_cv_path_LD
6223
lt_cv_path_LD=$lt_save_path_LD
6224
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6225
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6226
])# AC_LIBTOOL_LANG_CXX_CONFIG
6228
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6229
# ------------------------------------
6230
# Figure out "hidden" library dependencies from verbose
6231
# compiler output when linking a shared library.
6232
# Parse the compiler output and extract the necessary
6233
# objects, libraries and library flags.
6234
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
6235
dnl we can't use the lt_simple_compile_test_code here,
6236
dnl because it contains code intended for an executable,
6237
dnl not a library. It's possible we should let each
6238
dnl tag define a new lt_????_link_test_code variable,
6239
dnl but it's only used here...
6240
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6242
void foo (void) { a = 0; }
6244
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6248
Foo (void) { a = 0; }
6253
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6261
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6264
public void bar (void) {
6270
dnl Parse the compiler output and extract the necessary
6271
dnl objects, libraries and library flags.
6272
if AC_TRY_EVAL(ac_compile); then
6273
# Parse the compiler output and extract the necessary
6274
# objects, libraries and library flags.
6276
# Sentinel used to keep track of whether or not we are before
6277
# the conftest object file.
6278
pre_test_object_deps_done=no
6280
# The `*' in the case matches for architectures that use `case' in
6281
# $output_verbose_cmd can trigger glob expansion during the loop
6282
# eval without this substitution.
6283
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
6285
for p in `eval $output_verbose_link_cmd`; do
6289
# Some compilers place space between "-{L,R}" and the path.
6292
|| test $p = "-R"; then
6299
if test "$pre_test_object_deps_done" = no; then
6302
# Internal compiler library paths should come after those
6303
# provided the user. The postdeps already come after the
6304
# user supplied libs so there is no need to process them.
6305
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6306
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6308
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6311
# The "-l" case would never come before the object being
6312
# linked, so don't bother handling this case.
6315
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6316
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6318
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6324
# This assumes that the test object file only shows up
6325
# once in the compiler output.
6326
if test "$p" = "conftest.$objext"; then
6327
pre_test_object_deps_done=yes
6331
if test "$pre_test_object_deps_done" = no; then
6332
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
6333
_LT_AC_TAGVAR(predep_objects, $1)="$p"
6335
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
6338
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
6339
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
6341
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
6346
*) ;; # Ignore the rest.
6354
echo "libtool.m4: error: problem compiling $1 test program"
6357
$rm -f confest.$objext
6359
# PORTME: override above test on systems where it is broken
6363
# Interix 3.5 installs completely hosed .la files for C++, so rather than
6364
# hack all around it, let's just trust "g++" to DTRT.
6365
_LT_AC_TAGVAR(predep_objects,$1)=
6366
_LT_AC_TAGVAR(postdep_objects,$1)=
6367
_LT_AC_TAGVAR(postdeps,$1)=
6371
case `$CC -V 2>&1 | sed 5q` in
6375
# The more standards-conforming stlport4 library is
6376
# incompatible with the Cstd library. Avoid specifying
6377
# it if it's in CXXFLAGS. Ignore libCrun as
6378
# -library=stlport4 depends on it.
6379
case " $CXX $CXXFLAGS " in
6380
*" -library=stlport4 "*)
6381
solaris_use_stlport4=yes
6384
if test "$solaris_use_stlport4" != yes; then
6385
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6392
case $cc_basename in
6394
# The more standards-conforming stlport4 library is
6395
# incompatible with the Cstd library. Avoid specifying
6396
# it if it's in CXXFLAGS. Ignore libCrun as
6397
# -library=stlport4 depends on it.
6398
case " $CXX $CXXFLAGS " in
6399
*" -library=stlport4 "*)
6400
solaris_use_stlport4=yes
6404
# Adding this requires a known-good setup of shared libraries for
6405
# Sun compiler versions before 5.6, else PIC objects from an old
6406
# archive will be linked into the output, leading to subtle bugs.
6407
if test "$solaris_use_stlport4" != yes; then
6408
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6416
case " $_LT_AC_TAGVAR(postdeps, $1) " in
6417
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6419
])# AC_LIBTOOL_POSTDEP_PREDEP
6421
# AC_LIBTOOL_LANG_F77_CONFIG
6422
# --------------------------
6423
# Ensure that the configuration vars for the C compiler are
6424
# suitably defined. Those variables are subsequently used by
6425
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6426
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
6427
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
6428
[AC_REQUIRE([AC_PROG_F77])
6429
AC_LANG_PUSH(Fortran 77)
6431
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6432
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6433
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6434
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6435
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6436
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6437
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6438
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6439
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6440
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6441
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6442
_LT_AC_TAGVAR(module_cmds, $1)=
6443
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6444
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6445
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6446
_LT_AC_TAGVAR(no_undefined_flag, $1)=
6447
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6448
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6450
# Source file extension for f77 test sources.
6453
# Object file extension for compiled f77 test sources.
6455
_LT_AC_TAGVAR(objext, $1)=$objext
6457
# Code to be used in simple compile tests
6458
lt_simple_compile_test_code="\
6464
# Code to be used in simple link tests
6465
lt_simple_link_test_code="\
6470
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6473
# save warnings/boilerplate of simple test code
6474
_LT_COMPILER_BOILERPLATE
6475
_LT_LINKER_BOILERPLATE
6477
# Allow CC to be a program name with arguments.
6481
_LT_AC_TAGVAR(compiler, $1)=$CC
6482
_LT_CC_BASENAME([$compiler])
6484
AC_MSG_CHECKING([if libtool supports shared libraries])
6485
AC_MSG_RESULT([$can_build_shared])
6487
AC_MSG_CHECKING([whether to build shared libraries])
6488
test "$can_build_shared" = "no" && enable_shared=no
6490
# On AIX, shared libraries and static libraries use the same namespace, and
6491
# are all built from PIC.
6494
test "$enable_shared" = yes && enable_static=no
6495
if test -n "$RANLIB"; then
6496
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6497
postinstall_cmds='$RANLIB $lib'
6501
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6502
test "$enable_shared" = yes && enable_static=no
6506
AC_MSG_RESULT([$enable_shared])
6508
AC_MSG_CHECKING([whether to build static libraries])
6509
# Make sure either enable_shared or enable_static is yes.
6510
test "$enable_shared" = yes || enable_static=yes
6511
AC_MSG_RESULT([$enable_static])
6513
_LT_AC_TAGVAR(GCC, $1)="$G77"
6514
_LT_AC_TAGVAR(LD, $1)="$LD"
6516
AC_LIBTOOL_PROG_COMPILER_PIC($1)
6517
AC_LIBTOOL_PROG_CC_C_O($1)
6518
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6519
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6520
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6521
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6523
AC_LIBTOOL_CONFIG($1)
6527
])# AC_LIBTOOL_LANG_F77_CONFIG
6530
# AC_LIBTOOL_LANG_GCJ_CONFIG
6531
# --------------------------
6532
# Ensure that the configuration vars for the C compiler are
6533
# suitably defined. Those variables are subsequently used by
6534
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6535
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6536
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6539
# Source file extension for Java test sources.
6542
# Object file extension for compiled Java test sources.
6544
_LT_AC_TAGVAR(objext, $1)=$objext
6546
# Code to be used in simple compile tests
6547
lt_simple_compile_test_code="class foo {}"
6549
# Code to be used in simple link tests
6550
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6552
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6555
# save warnings/boilerplate of simple test code
6556
_LT_COMPILER_BOILERPLATE
6557
_LT_LINKER_BOILERPLATE
6559
# Allow CC to be a program name with arguments.
6563
_LT_AC_TAGVAR(compiler, $1)=$CC
6564
_LT_CC_BASENAME([$compiler])
6566
# GCJ did not exist at the time GCC didn't implicitly link libc in.
6567
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6569
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6571
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6572
AC_LIBTOOL_PROG_COMPILER_PIC($1)
6573
AC_LIBTOOL_PROG_CC_C_O($1)
6574
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6575
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6576
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6577
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6579
AC_LIBTOOL_CONFIG($1)
6583
])# AC_LIBTOOL_LANG_GCJ_CONFIG
6586
# AC_LIBTOOL_LANG_RC_CONFIG
6587
# -------------------------
6588
# Ensure that the configuration vars for the Windows resource compiler are
6589
# suitably defined. Those variables are subsequently used by
6590
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6591
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6592
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6595
# Source file extension for RC test sources.
6598
# Object file extension for compiled RC test sources.
6600
_LT_AC_TAGVAR(objext, $1)=$objext
6602
# Code to be used in simple compile tests
6603
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6605
# Code to be used in simple link tests
6606
lt_simple_link_test_code="$lt_simple_compile_test_code"
6608
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6611
# save warnings/boilerplate of simple test code
6612
_LT_COMPILER_BOILERPLATE
6613
_LT_LINKER_BOILERPLATE
6615
# Allow CC to be a program name with arguments.
6619
_LT_AC_TAGVAR(compiler, $1)=$CC
6620
_LT_CC_BASENAME([$compiler])
6621
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6623
AC_LIBTOOL_CONFIG($1)
6627
])# AC_LIBTOOL_LANG_RC_CONFIG
6630
# AC_LIBTOOL_CONFIG([TAGNAME])
6631
# ----------------------------
6632
# If TAGNAME is not passed, then create an initial libtool script
6633
# with a default configuration from the untagged config vars. Otherwise
6634
# add code to config.status for appending the configuration named by
6635
# TAGNAME from the matching tagged config vars.
6636
AC_DEFUN([AC_LIBTOOL_CONFIG],
6637
[# The else clause should only fire when bootstrapping the
6638
# libtool distribution, otherwise you forgot to ship ltmain.sh
6639
# with your package, and you will get complaints that there are
6640
# no rules to generate ltmain.sh.
6641
if test -f "$ltmain"; then
6642
# See if we are running on zsh, and set the options which allow our commands through
6643
# without removal of \ escapes.
6644
if test -n "${ZSH_VERSION+set}" ; then
6645
setopt NO_GLOB_SUBST
6647
# Now quote all the things that may contain metacharacters while being
6648
# careful not to overquote the AC_SUBSTed values. We take copies of the
6649
# variables and quote the copies for generation of the libtool script.
6650
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
6652
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6653
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6654
deplibs_check_method reload_flag reload_cmds need_locks \
6655
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6656
lt_cv_sys_global_symbol_to_c_name_address \
6657
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6658
old_postinstall_cmds old_postuninstall_cmds \
6659
_LT_AC_TAGVAR(compiler, $1) \
6660
_LT_AC_TAGVAR(CC, $1) \
6661
_LT_AC_TAGVAR(LD, $1) \
6662
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6663
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6664
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6665
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6666
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6667
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6668
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6669
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6670
_LT_AC_TAGVAR(old_archive_cmds, $1) \
6671
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6672
_LT_AC_TAGVAR(predep_objects, $1) \
6673
_LT_AC_TAGVAR(postdep_objects, $1) \
6674
_LT_AC_TAGVAR(predeps, $1) \
6675
_LT_AC_TAGVAR(postdeps, $1) \
6676
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6677
_LT_AC_TAGVAR(archive_cmds, $1) \
6678
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6679
_LT_AC_TAGVAR(postinstall_cmds, $1) \
6680
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
6681
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6682
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
6683
_LT_AC_TAGVAR(no_undefined_flag, $1) \
6684
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
6685
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6686
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6687
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6688
_LT_AC_TAGVAR(hardcode_automatic, $1) \
6689
_LT_AC_TAGVAR(module_cmds, $1) \
6690
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
6691
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6692
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
6693
_LT_AC_TAGVAR(exclude_expsyms, $1) \
6694
_LT_AC_TAGVAR(include_expsyms, $1); do
6697
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
6698
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6699
_LT_AC_TAGVAR(archive_cmds, $1) | \
6700
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6701
_LT_AC_TAGVAR(module_cmds, $1) | \
6702
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6703
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6704
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6705
extract_expsyms_cmds | reload_cmds | finish_cmds | \
6706
postinstall_cmds | postuninstall_cmds | \
6707
old_postinstall_cmds | old_postuninstall_cmds | \
6708
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6709
# Double-quote double-evaled strings.
6710
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6713
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6719
*'\[$]0 --fallback-echo"')
6720
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6725
[cfgfile="${ofile}T"
6726
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6728
AC_MSG_NOTICE([creating $ofile])],
6731
cat <<__EOF__ >> "$cfgfile"
6735
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6736
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6737
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6739
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
6740
# Free Software Foundation, Inc.
6742
# This file is part of GNU Libtool:
6743
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6745
# This program is free software; you can redistribute it and/or modify
6746
# it under the terms of the GNU General Public License as published by
6747
# the Free Software Foundation; either version 2 of the License, or
6748
# (at your option) any later version.
6750
# This program is distributed in the hope that it will be useful, but
6751
# WITHOUT ANY WARRANTY; without even the implied warranty of
6752
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6753
# General Public License for more details.
6755
# You should have received a copy of the GNU General Public License
6756
# along with this program; if not, write to the Free Software
6757
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6759
# As a special exception to the GNU General Public License, if you
6760
# distribute this file as part of a program that contains a
6761
# configuration script generated by Autoconf, you may include it under
6762
# the same distribution terms that you use for the rest of that program.
6764
# A sed program that does not truncate output.
6767
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6768
Xsed="$SED -e 1s/^X//"
6770
# The HP-UX ksh and POSIX shell print the target directory to stdout
6772
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6774
# The names of the tagged configurations supported by this script.
6777
# ### BEGIN LIBTOOL CONFIG],
6778
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6780
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6782
# Shell to use when invoking shell scripts.
6785
# Whether or not to build shared libraries.
6786
build_libtool_libs=$enable_shared
6788
# Whether or not to build static libraries.
6789
build_old_libs=$enable_static
6791
# Whether or not to add -lc for building shared libraries.
6792
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6794
# Whether or not to disallow shared libs when runtime libs are static
6795
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6797
# Whether or not to optimize for fast installation.
6798
fast_install=$enable_fast_install
6801
host_alias=$host_alias
6806
build_alias=$build_alias
6810
# An echo program that does not interpret backslashes.
6815
AR_FLAGS=$lt_AR_FLAGS
6820
# LTCC compiler flags.
6821
LTCFLAGS=$lt_LTCFLAGS
6823
# A language-specific compiler.
6824
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6826
# Is the compiler the GNU C compiler?
6827
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6832
# The linker used to build libraries.
6833
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6835
# Whether we need hard or soft links.
6838
# A BSD-compatible nm program.
6841
# A symbol stripping program
6844
# Used to examine libraries when file_magic_cmd begins "file"
6845
MAGIC_CMD=$MAGIC_CMD
6847
# Used on cygwin: DLL creation program.
6850
# Used on cygwin: object dumper.
6853
# Used on cygwin: assembler.
6856
# The name of the directory that contains temporary libtool files.
6859
# How to create reloadable object files.
6860
reload_flag=$lt_reload_flag
6861
reload_cmds=$lt_reload_cmds
6863
# How to pass a linker flag through the compiler.
6864
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6866
# Object file suffix (normally "o").
6869
# Old archive suffix (normally "a").
6872
# Shared library suffix (normally ".so").
6873
shrext_cmds='$shrext_cmds'
6875
# Executable file suffix (normally "").
6878
# Additional compiler flags for building library objects.
6879
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6882
# What is the maximum length of a command?
6883
max_cmd_len=$lt_cv_sys_max_cmd_len
6885
# Does compiler simultaneously support -c and -o options?
6886
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6888
# Must we lock files when doing compilation?
6889
need_locks=$lt_need_locks
6891
# Do we need the lib prefix for modules?
6892
need_lib_prefix=$need_lib_prefix
6894
# Do we need a version for libraries?
6895
need_version=$need_version
6897
# Whether dlopen is supported.
6898
dlopen_support=$enable_dlopen
6900
# Whether dlopen of programs is supported.
6901
dlopen_self=$enable_dlopen_self
6903
# Whether dlopen of statically linked programs is supported.
6904
dlopen_self_static=$enable_dlopen_self_static
6906
# Compiler flag to prevent dynamic linking.
6907
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6909
# Compiler flag to turn off builtin functions.
6910
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6912
# Compiler flag to allow reflexive dlopens.
6913
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6915
# Compiler flag to generate shared objects directly from archives.
6916
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6918
# Compiler flag to generate thread-safe objects.
6919
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6921
# Library versioning type.
6922
version_type=$version_type
6924
# Format of library name prefix.
6925
libname_spec=$lt_libname_spec
6927
# List of archive names. First name is the real one, the rest are links.
6928
# The last name is the one that the linker finds with -lNAME.
6929
library_names_spec=$lt_library_names_spec
6931
# The coded name of the library, if different from the real name.
6932
soname_spec=$lt_soname_spec
6934
# Commands used to build and install an old-style archive.
6936
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6937
old_postinstall_cmds=$lt_old_postinstall_cmds
6938
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6940
# Create an old-style archive from a shared archive.
6941
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6943
# Create a temporary old-style archive to link instead of a shared archive.
6944
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6946
# Commands used to build and install a shared archive.
6947
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6948
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6949
postinstall_cmds=$lt_postinstall_cmds
6950
postuninstall_cmds=$lt_postuninstall_cmds
6952
# Commands used to build a loadable module (assumed same as above if empty)
6953
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6954
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6956
# Commands to strip libraries.
6957
old_striplib=$lt_old_striplib
6958
striplib=$lt_striplib
6960
# Dependencies to place before the objects being linked to create a
6962
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6964
# Dependencies to place after the objects being linked to create a
6966
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6968
# Dependencies to place before the objects being linked to create a
6970
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6972
# Dependencies to place after the objects being linked to create a
6974
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6976
# The library search path used internally by the compiler when linking
6978
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6980
# Method to check whether dependent libraries are shared objects.
6981
deplibs_check_method=$lt_deplibs_check_method
6983
# Command to use when deplibs_check_method == file_magic.
6984
file_magic_cmd=$lt_file_magic_cmd
6986
# Flag that allows shared libraries with undefined symbols to be built.
6987
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6989
# Flag that forces no undefined symbols.
6990
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6992
# Commands used to finish a libtool library installation in a directory.
6993
finish_cmds=$lt_finish_cmds
6995
# Same as above, but a single script fragment to be evaled but not shown.
6996
finish_eval=$lt_finish_eval
6998
# Take the output of nm and produce a listing of raw symbols and C names.
6999
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
7001
# Transform the output of nm in a proper C declaration
7002
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
7004
# Transform the output of nm in a C name address pair
7005
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
7007
# This is the shared library runtime path variable.
7008
runpath_var=$runpath_var
7010
# This is the shared library path variable.
7011
shlibpath_var=$shlibpath_var
7013
# Is shlibpath searched before the hard-coded library search path?
7014
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7016
# How to hardcode a shared library path into an executable.
7017
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
7019
# Whether we should hardcode library paths into libraries.
7020
hardcode_into_libs=$hardcode_into_libs
7022
# Flag to hardcode \$libdir into a binary during linking.
7023
# This must work even if \$libdir does not exist.
7024
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
7026
# If ld is used when linking, flag to hardcode \$libdir into
7027
# a binary during linking. This must work even if \$libdir does
7029
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
7031
# Whether we need a single -rpath flag with a separated argument.
7032
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
7034
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
7036
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
7038
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7040
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
7042
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7043
# the resulting binary.
7044
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
7046
# Set to yes if building a shared library automatically hardcodes DIR into the library
7047
# and all subsequent libraries and executables linked against it.
7048
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
7050
# Variables whose values should be saved in libtool wrapper scripts and
7051
# restored at relink time.
7052
variables_saved_for_relink="$variables_saved_for_relink"
7054
# Whether libtool must link a program against all its dependency libraries.
7055
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
7057
# Compile-time system search path for libraries
7058
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7060
# Run-time system search path for libraries
7061
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7063
# Fix the shell variable \$srcfile for the compiler.
7064
fix_srcfile_path=$lt_fix_srcfile_path
7066
# Set to yes if exported symbols are required.
7067
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
7069
# The commands to list exported symbols.
7070
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
7072
# The commands to extract the exported symbol list from a shared archive.
7073
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7075
# Symbols that should not be listed in the preloaded symbols.
7076
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
7078
# Symbols that must always be exported.
7079
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
7082
[# ### END LIBTOOL CONFIG],
7083
[# ### END LIBTOOL TAG CONFIG: $tagname])
7090
cat <<\EOF >> "$cfgfile"
7092
# AIX sometimes has problems with the GCC collect2 program. For some
7093
# reason, if we set the COLLECT_NAMES environment variable, the problems
7094
# vanish in a puff of smoke.
7095
if test "X${COLLECT_NAMES+set}" != Xset; then
7097
export COLLECT_NAMES
7103
# We use sed instead of cat because bash on DJGPP gets confused if
7104
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7105
# text mode, it properly converts lines to CR/LF. This bash problem
7106
# is reportedly fixed, but why not run on old versions too?
7107
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7109
mv -f "$cfgfile" "$ofile" || \
7110
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7114
# If there is no Makefile yet, we rely on a make rule to execute
7115
# `config.status --recheck' to rerun these tests and create the
7116
# libtool script then.
7117
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
7118
if test -f "$ltmain_in"; then
7119
test -f Makefile && make "$ltmain"
7122
])# AC_LIBTOOL_CONFIG
7125
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
7126
# -------------------------------------------
7127
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
7128
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
7130
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5907
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
5908
dnl aclocal-1.4 backwards compatibility:
5909
dnl AC_DEFUN([AC_CHECK_LIBM], [])
5912
# _LT_COMPILER_NO_RTTI([TAGNAME])
5913
# -------------------------------
5914
m4_defun([_LT_COMPILER_NO_RTTI],
5915
[m4_require([_LT_TAG_COMPILER])dnl
5917
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7132
5919
if test "$GCC" = yes; then
7133
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5920
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7135
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5922
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
7136
5923
lt_cv_prog_compiler_rtti_exceptions,
7137
5924
[-fno-rtti -fno-exceptions], [],
7138
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5925
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
7140
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
7143
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
7144
# ---------------------------------
7145
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
7146
[AC_REQUIRE([AC_CANONICAL_HOST])
7147
AC_REQUIRE([LT_AC_PROG_SED])
7148
AC_REQUIRE([AC_PROG_NM])
7149
AC_REQUIRE([AC_OBJEXT])
5927
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
5928
[Compiler flag to turn off builtin functions])
5929
])# _LT_COMPILER_NO_RTTI
5932
# _LT_CMD_GLOBAL_SYMBOLS
5933
# ----------------------
5934
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
5935
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5936
AC_REQUIRE([AC_PROG_CC])dnl
5937
AC_REQUIRE([LT_PATH_NM])dnl
5938
AC_REQUIRE([LT_PATH_LD])dnl
5939
m4_require([_LT_DECL_SED])dnl
5940
m4_require([_LT_DECL_EGREP])dnl
5941
m4_require([_LT_TAG_COMPILER])dnl
7150
5943
# Check for command to grab the raw symbol name followed by C symbol from nm.
7151
5944
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
7152
5945
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
7745
6597
# +Z the default
7748
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6600
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7751
6603
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7752
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6604
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7755
6607
irix5* | irix6* | nonstopux*)
7756
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6608
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7757
6609
# PIC (with -KPIC) is the default.
7758
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7762
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7763
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6610
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7766
6613
linux* | k*bsd*-gnu)
7767
6614
case $cc_basename in
7769
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7770
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7771
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6615
# old Intel for x86_64 which still supported -KPIC.
6617
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6618
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6619
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6621
# icc used to be incompatible with GCC.
6622
# ICC 10 doesn't accept -KPIC any more.
6624
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6625
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6626
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6628
# Lahey Fortran 8.1.
6630
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6631
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
6632
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
7773
6634
pgcc* | pgf77* | pgf90* | pgf95*)
7774
6635
# Portland Group compilers (*not* the Pentium gcc compiler,
7775
6636
# which looks to be a dead project)
7776
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7777
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7778
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6637
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6638
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6639
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7781
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6642
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7782
6643
# All Alpha code is PIC.
7783
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6644
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6647
# IBM XL C 8.0/Fortran 10.1 on PPC
6648
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6649
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6650
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7786
case `$CC -V 2>&1 | sed 5q` in
6653
case `$CC -V 2>&1 | sed 5q` in
7789
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7790
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7791
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6656
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6657
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6658
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7794
6661
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7795
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7796
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7797
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6662
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6663
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6664
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6672
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6673
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6677
# QNX uses GNU C++, but need to define -shared option too, otherwise
6679
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7804
6682
osf3* | osf4* | osf5*)
7805
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6683
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7806
6684
# All OSF/1 code is PIC.
7807
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6685
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7811
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6689
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7815
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7816
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6693
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6694
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7817
6695
case $cc_basename in
7818
6696
f77* | f90* | f95*)
7819
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6697
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7821
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6699
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7826
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7827
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7828
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6704
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6705
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6706
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7831
6709
sysv4 | sysv4.2uw2* | sysv4.3*)
7832
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7833
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7834
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6710
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6711
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6712
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7838
6716
if test -d /usr/nec ;then
7839
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7840
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6717
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6718
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7844
6722
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7845
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7846
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7847
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6723
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6724
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6725
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7851
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7852
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6729
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6730
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7856
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7857
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6734
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6735
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7861
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6739
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7866
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6745
# For platforms which do not support PIC, -DPIC is meaningless:
6747
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6750
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
6753
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
6754
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
6755
[How to pass a linker flag through the compiler])
7869
6758
# Check to make sure the PIC flag actually works.
7871
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7872
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7873
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
7874
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7875
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6760
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6761
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
6762
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
6763
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
6764
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
7877
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6766
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7879
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7880
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6768
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6769
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7883
# For platforms which do not support PIC, -DPIC is meaningless:
7885
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7888
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6771
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
6772
[Additional compiler flags for building library objects])
7893
6775
# Check to make sure the static flag actually works.
7895
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
7896
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7897
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6777
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
6778
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6779
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
7898
6780
$lt_tmp_static_flag,
7900
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7904
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7905
# ------------------------------------
6782
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
6783
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
6784
[Compiler flag to prevent dynamic linking])
6785
])# _LT_COMPILER_PIC
6788
# _LT_LINKER_SHLIBS([TAGNAME])
6789
# ----------------------------
7906
6790
# See if the linker supports building shared libraries.
7907
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7908
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6791
m4_defun([_LT_LINKER_SHLIBS],
6792
[AC_REQUIRE([LT_PATH_LD])dnl
6793
AC_REQUIRE([LT_PATH_NM])dnl
6794
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6795
m4_require([_LT_DECL_EGREP])dnl
6796
m4_require([_LT_DECL_SED])dnl
6797
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
6798
m4_require([_LT_TAG_COMPILER])dnl
7909
6799
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7911
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6800
m4_if([$1], [CXX], [
6801
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7912
6802
case $host_os in
7914
6804
# If we're using GNU nm, then we don't want the "-C" option.
7915
6805
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7916
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7917
_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'
6806
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6807
_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'
7919
_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'
6809
_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'
7923
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6813
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7926
_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'
6815
cygwin* | mingw* | cegcc*)
6816
_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'
7929
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6819
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6822
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7934
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7935
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7936
_LT_AC_TAGVAR(archive_cmds, $1)=
7937
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7938
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7939
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7940
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7941
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7942
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7943
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7944
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7945
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7946
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7947
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7948
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7949
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7950
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7951
_LT_AC_TAGVAR(module_cmds, $1)=
7952
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7953
_LT_AC_TAGVAR(always_export_symbols, $1)=no
7954
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6825
_LT_TAGVAR(allow_undefined_flag, $1)=
6826
_LT_TAGVAR(always_export_symbols, $1)=no
6827
_LT_TAGVAR(archive_cmds, $1)=
6828
_LT_TAGVAR(archive_expsym_cmds, $1)=
6829
_LT_TAGVAR(compiler_needs_object, $1)=no
6830
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6831
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6832
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6833
_LT_TAGVAR(hardcode_automatic, $1)=no
6834
_LT_TAGVAR(hardcode_direct, $1)=no
6835
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6836
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6837
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6838
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6839
_LT_TAGVAR(hardcode_minus_L, $1)=no
6840
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6841
_LT_TAGVAR(inherit_rpath, $1)=no
6842
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6843
_LT_TAGVAR(module_cmds, $1)=
6844
_LT_TAGVAR(module_expsym_cmds, $1)=
6845
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
6846
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6847
_LT_TAGVAR(thread_safe_flag_spec, $1)=
6848
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7955
6849
# include_expsyms should be a list of space-separated symbols to be *always*
7956
6850
# included in the symbol list
7957
_LT_AC_TAGVAR(include_expsyms, $1)=
6851
_LT_TAGVAR(include_expsyms, $1)=
7958
6852
# exclude_expsyms can be an extended regexp of symbols to exclude
7959
6853
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7960
6854
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7961
6855
# as well as any symbol that contains `d'.
7962
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6856
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7963
6857
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7964
6858
# platforms (ab)use it in PIC code, but their linkers get confused if
7965
6859
# the symbol is explicitly referenced. Since portable code cannot
7966
6860
# rely on this symbol name, it's probably fine to never include it in
7967
6861
# preloaded symbol tables.
6862
# Exclude shared library initialization/finalization symbols.
6863
dnl Note also adjust exclude_expsyms for C++ above.
7968
6864
extract_expsyms_cmds=
7969
# Just being paranoid about ensuring that cc_basename is set.
7970
_LT_CC_BASENAME([$compiler])
7971
6866
case $host_os in
7972
cygwin* | mingw* | pw32*)
6867
cygwin* | mingw* | pw32* | cegcc*)
7973
6868
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7974
6869
# When not using gcc, we currently assume that we are using
7975
6870
# Microsoft Visual C++.
8558
7454
irix5* | irix6* | nonstopux*)
8559
7455
if test "$GCC" = yes; then
8560
_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'
7456
_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'
7457
# Try to use the -exported_symbol ld option, if it does not
7458
# work, assume that -exports_file does not work either and
7459
# implicitly export all symbols.
7460
save_LDFLAGS="$LDFLAGS"
7461
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7462
AC_LINK_IFELSE(int foo(void) {},
7463
_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'
7465
LDFLAGS="$save_LDFLAGS"
8562
_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'
8563
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7467
_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'
7468
_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'
8565
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8566
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8567
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7470
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7471
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7472
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7473
_LT_TAGVAR(inherit_rpath, $1)=yes
7474
_LT_TAGVAR(link_all_deplibs, $1)=yes
8571
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8572
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7478
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7479
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8574
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7481
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8576
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8577
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8578
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7483
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7484
_LT_TAGVAR(hardcode_direct, $1)=yes
7485
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8582
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8583
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8584
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8585
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8586
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7489
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7490
_LT_TAGVAR(hardcode_direct, $1)=yes
7491
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7492
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7493
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8590
7500
if test -f /usr/libexec/ld.so; then
8591
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8592
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8593
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8594
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8595
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8596
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8597
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7501
_LT_TAGVAR(hardcode_direct, $1)=yes
7502
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7503
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7504
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7505
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7506
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7507
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7508
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8599
7510
case $host_os in
8600
7511
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8601
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8602
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7512
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7513
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8605
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8606
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7516
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7517
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8611
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7522
_LT_TAGVAR(ld_shlibs, $1)=no
8616
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8617
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8618
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8619
_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'
8620
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7527
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7528
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7529
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7530
_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'
7531
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8624
7535
if test "$GCC" = yes; then
8625
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8626
_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'
7536
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7537
_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'
8628
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8629
_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'
7539
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7540
_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'
8631
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8632
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7542
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7543
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7544
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8635
7547
osf4* | osf5*) # as osf3* with the addition of -msym flag
8636
7548
if test "$GCC" = yes; then
8637
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8638
_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'
8639
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7549
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7550
_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'
7551
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8641
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8642
_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'
8643
_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~
8644
$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'
7553
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7554
_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'
7555
_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~
7556
$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'
8646
7558
# Both c and cxx compiler support -rpath directly
8647
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7559
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8649
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7561
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7562
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8653
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7566
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8654
7567
if test "$GCC" = yes; then
8656
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8657
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8658
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7569
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7570
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7571
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8661
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8663
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7573
case `$CC -V 2>&1` in
7576
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7577
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7578
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7582
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7583
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7584
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8665
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8666
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7588
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7589
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8667
7590
case $host_os in
8668
7591
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8670
7593
# The compiler driver will combine and reorder linker options,
8671
7594
# but understands `-z linker_flag'. GCC discards it without `$wl',
8672
7595
# but is careful enough not to reorder.
8673
# Supported since Solaris 2.6 (maybe 2.5.1?)
7596
# Supported since Solaris 2.6 (maybe 2.5.1?)
8674
7597
if test "$GCC" = yes; then
8675
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7598
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8677
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7600
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8681
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7604
_LT_TAGVAR(link_all_deplibs, $1)=yes
8685
7608
if test "x$host_vendor" = xsequent; then
8686
7609
# Use $CC to link under sequent, because it throws in some extra .o
8687
7610
# files that make .init and .fini sections work.
8688
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7611
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8690
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7613
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8692
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8693
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8694
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8695
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7615
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7616
_LT_TAGVAR(hardcode_direct, $1)=yes
7617
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7618
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8699
7622
case $host_vendor in
8701
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8702
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7624
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8705
7628
## LD is ld it makes a PLAMLIB
8706
7629
## CC just makes a GrossModule.
8707
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8708
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8709
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7630
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7631
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7632
_LT_TAGVAR(hardcode_direct, $1)=no
8712
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8713
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7635
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8716
7639
runpath_var='LD_RUN_PATH'
8717
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7640
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8721
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8723
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7644
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7645
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7646
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8727
7650
if test -d /usr/nec; then
8728
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7651
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7652
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8730
7653
runpath_var=LD_RUN_PATH
8731
7654
hardcode_runpath_var=yes
8732
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7655
_LT_TAGVAR(ld_shlibs, $1)=yes
8736
7659
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8737
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8738
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8739
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7660
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7661
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7662
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8740
7663
runpath_var='LD_RUN_PATH'
8742
7665
if test "$GCC" = yes; then
8743
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7666
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7667
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7669
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7670
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816
7754
libobjs=conftest.$ac_objext
8818
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8819
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7756
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7757
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8820
7758
compiler_flags=-v
8821
7759
linker_flags=-v
8823
7761
output_objdir=.
8824
7762
libname=conftest
8825
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8826
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
8827
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7763
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7764
_LT_TAGVAR(allow_undefined_flag, $1)=
7765
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8829
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7767
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8831
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7769
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8833
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7771
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8835
7773
cat conftest.err 1>&5
8838
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7776
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
8844
])# AC_LIBTOOL_PROG_LD_SHLIBS
8847
# _LT_AC_FILE_LTDLL_C
8848
# -------------------
8849
# Be careful that the start marker always follows a newline.
8850
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8851
# /* ltdll.c starts here */
8852
# #define WIN32_LEAN_AND_MEAN
8853
# #include <windows.h>
8854
# #undef WIN32_LEAN_AND_MEAN
8855
# #include <stdio.h>
8857
# #ifndef __CYGWIN__
8858
# # ifdef __CYGWIN32__
8859
# # define __CYGWIN__ __CYGWIN32__
8863
# #ifdef __cplusplus
8866
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8867
# #ifdef __cplusplus
8872
# #include <cygwin/cygwin_dll.h>
8873
# DECLARE_CYGWIN_DLL( DllMain );
8875
# HINSTANCE __hDllInstance_base;
8878
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8880
# __hDllInstance_base = hInst;
8883
# /* ltdll.c ends here */
8884
])# _LT_AC_FILE_LTDLL_C
8887
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7783
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
7784
[Whether or not to add -lc for building shared libraries])
7785
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
7786
[enable_shared_with_static_runtimes], [0],
7787
[Whether or not to disallow shared libs when runtime libs are static])
7788
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
7789
[Compiler flag to allow reflexive dlopens])
7790
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
7791
[Compiler flag to generate shared objects directly from archives])
7792
_LT_TAGDECL([], [compiler_needs_object], [1],
7793
[Whether the compiler copes with passing no objects directly])
7794
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
7795
[Create an old-style archive from a shared archive])
7796
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
7797
[Create a temporary old-style archive to link instead of a shared archive])
7798
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
7799
_LT_TAGDECL([], [archive_expsym_cmds], [2])
7800
_LT_TAGDECL([], [module_cmds], [2],
7801
[Commands used to build a loadable module if different from building
7803
_LT_TAGDECL([], [module_expsym_cmds], [2])
7804
_LT_TAGDECL([], [with_gnu_ld], [1],
7805
[Whether we are building with GNU ld or not])
7806
_LT_TAGDECL([], [allow_undefined_flag], [1],
7807
[Flag that allows shared libraries with undefined symbols to be built])
7808
_LT_TAGDECL([], [no_undefined_flag], [1],
7809
[Flag that enforces no undefined symbols])
7810
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
7811
[Flag to hardcode $libdir into a binary during linking.
7812
This must work even if $libdir does not exist])
7813
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
7814
[[If ld is used when linking, flag to hardcode $libdir into a binary
7815
during linking. This must work even if $libdir does not exist]])
7816
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
7817
[Whether we need a single "-rpath" flag with a separated argument])
7818
_LT_TAGDECL([], [hardcode_direct], [0],
7819
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7820
DIR into the resulting binary])
7821
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
7822
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7823
DIR into the resulting binary and the resulting library dependency is
7824
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
7825
library is relocated])
7826
_LT_TAGDECL([], [hardcode_minus_L], [0],
7827
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
7828
into the resulting binary])
7829
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
7830
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
7831
into the resulting binary])
7832
_LT_TAGDECL([], [hardcode_automatic], [0],
7833
[Set to "yes" if building a shared library automatically hardcodes DIR
7834
into the library and all subsequent libraries and executables linked
7836
_LT_TAGDECL([], [inherit_rpath], [0],
7837
[Set to yes if linker adds runtime paths of dependent libraries
7838
to runtime path list])
7839
_LT_TAGDECL([], [link_all_deplibs], [0],
7840
[Whether libtool must link a program against all its dependency libraries])
7841
_LT_TAGDECL([], [fix_srcfile_path], [1],
7842
[Fix the shell variable $srcfile for the compiler])
7843
_LT_TAGDECL([], [always_export_symbols], [0],
7844
[Set to "yes" if exported symbols are required])
7845
_LT_TAGDECL([], [export_symbols_cmds], [2],
7846
[The commands to list exported symbols])
7847
_LT_TAGDECL([], [exclude_expsyms], [1],
7848
[Symbols that should not be listed in the preloaded symbols])
7849
_LT_TAGDECL([], [include_expsyms], [1],
7850
[Symbols that must always be exported])
7851
_LT_TAGDECL([], [prelink_cmds], [2],
7852
[Commands necessary for linking programs (against libraries) with templates])
7853
_LT_TAGDECL([], [file_list_spec], [1],
7854
[Specify filename containing input files])
7855
dnl FIXME: Not yet implemented
7856
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
7857
dnl [Compiler flag to generate thread safe objects])
7858
])# _LT_LINKER_SHLIBS
7861
# _LT_LANG_C_CONFIG([TAG])
7862
# ------------------------
7863
# Ensure that the configuration variables for a C compiler are suitably
7864
# defined. These variables are subsequently used by _LT_CONFIG to write
7865
# the compiler configuration to `libtool'.
7866
m4_defun([_LT_LANG_C_CONFIG],
7867
[m4_require([_LT_DECL_EGREP])dnl
7871
# Source file extension for C test sources.
7874
# Object file extension for compiled C test sources.
7876
_LT_TAGVAR(objext, $1)=$objext
7878
# Code to be used in simple compile tests
7879
lt_simple_compile_test_code="int some_variable = 0;"
7881
# Code to be used in simple link tests
7882
lt_simple_link_test_code='int main(){return(0);}'
7885
# Save the default compiler, since it gets overwritten when the other
7886
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7887
compiler_DEFAULT=$CC
7889
# save warnings/boilerplate of simple test code
7890
_LT_COMPILER_BOILERPLATE
7891
_LT_LINKER_BOILERPLATE
7893
if test -n "$compiler"; then
7894
_LT_COMPILER_NO_RTTI($1)
7895
_LT_COMPILER_PIC($1)
7896
_LT_COMPILER_C_O($1)
7897
_LT_COMPILER_FILE_LOCKS($1)
7898
_LT_LINKER_SHLIBS($1)
7899
_LT_SYS_DYNAMIC_LINKER($1)
7900
_LT_LINKER_HARDCODE_LIBPATH($1)
7904
# Report which library types will actually be built
7905
AC_MSG_CHECKING([if libtool supports shared libraries])
7906
AC_MSG_RESULT([$can_build_shared])
7908
AC_MSG_CHECKING([whether to build shared libraries])
7909
test "$can_build_shared" = "no" && enable_shared=no
7911
# On AIX, shared libraries and static libraries use the same namespace, and
7912
# are all built from PIC.
7915
test "$enable_shared" = yes && enable_static=no
7916
if test -n "$RANLIB"; then
7917
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7918
postinstall_cmds='$RANLIB $lib'
7923
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7924
test "$enable_shared" = yes && enable_static=no
7928
AC_MSG_RESULT([$enable_shared])
7930
AC_MSG_CHECKING([whether to build static libraries])
7931
# Make sure either enable_shared or enable_static is yes.
7932
test "$enable_shared" = yes || enable_static=yes
7933
AC_MSG_RESULT([$enable_static])
7939
])# _LT_LANG_C_CONFIG
7944
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
7945
# compiler, we have our own version here.
7946
m4_defun([_LT_PROG_CXX],
7948
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
7950
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7951
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7952
(test "X$CXX" != "Xg++"))) ; then
7955
_lt_caught_CXX_error=yes
7957
popdef([AC_MSG_ERROR])
7960
dnl aclocal-1.4 backwards compatibility:
7961
dnl AC_DEFUN([_LT_PROG_CXX], [])
7964
# _LT_LANG_CXX_CONFIG([TAG])
7965
# --------------------------
7966
# Ensure that the configuration variables for a C++ compiler are suitably
7967
# defined. These variables are subsequently used by _LT_CONFIG to write
7968
# the compiler configuration to `libtool'.
7969
m4_defun([_LT_LANG_CXX_CONFIG],
7970
[AC_REQUIRE([_LT_PROG_CXX])dnl
7971
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7972
m4_require([_LT_DECL_EGREP])dnl
7975
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7976
_LT_TAGVAR(allow_undefined_flag, $1)=
7977
_LT_TAGVAR(always_export_symbols, $1)=no
7978
_LT_TAGVAR(archive_expsym_cmds, $1)=
7979
_LT_TAGVAR(compiler_needs_object, $1)=no
7980
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7981
_LT_TAGVAR(hardcode_direct, $1)=no
7982
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7983
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7984
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7985
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7986
_LT_TAGVAR(hardcode_minus_L, $1)=no
7987
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7988
_LT_TAGVAR(hardcode_automatic, $1)=no
7989
_LT_TAGVAR(inherit_rpath, $1)=no
7990
_LT_TAGVAR(module_cmds, $1)=
7991
_LT_TAGVAR(module_expsym_cmds, $1)=
7992
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7993
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7994
_LT_TAGVAR(no_undefined_flag, $1)=
7995
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7996
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7998
# Source file extension for C++ test sources.
8001
# Object file extension for compiled C++ test sources.
8003
_LT_TAGVAR(objext, $1)=$objext
8005
# No sense in running all these tests if we already determined that
8006
# the CXX compiler isn't working. Some variables (like enable_shared)
8007
# are currently assumed to apply to all compilers on this platform,
8008
# and will be corrupted by setting them based on a non-working compiler.
8009
if test "$_lt_caught_CXX_error" != yes; then
8010
# Code to be used in simple compile tests
8011
lt_simple_compile_test_code="int some_variable = 0;"
8013
# Code to be used in simple link tests
8014
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
8016
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8019
# save warnings/boilerplate of simple test code
8020
_LT_COMPILER_BOILERPLATE
8021
_LT_LINKER_BOILERPLATE
8023
# Allow CC to be a program name with arguments.
8028
lt_save_with_gnu_ld=$with_gnu_ld
8029
lt_save_path_LD=$lt_cv_path_LD
8030
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8031
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8033
$as_unset lt_cv_prog_gnu_ld
8035
if test -n "${lt_cv_path_LDCXX+set}"; then
8036
lt_cv_path_LD=$lt_cv_path_LDCXX
8038
$as_unset lt_cv_path_LD
8040
test -z "${LDCXX+set}" || LD=$LDCXX
8043
_LT_TAGVAR(compiler, $1)=$CC
8044
_LT_CC_BASENAME([$compiler])
8046
if test -n "$compiler"; then
8047
# We don't want -fno-exception when compiling C++ code, so set the
8048
# no_builtin_flag separately
8049
if test "$GXX" = yes; then
8050
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8052
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8055
if test "$GXX" = yes; then
8056
# Set up default GNU C++ configuration
8060
# Check if GNU C++ uses GNU ld as the underlying linker, since the
8061
# archiving commands below assume that GNU ld is being used.
8062
if test "$with_gnu_ld" = yes; then
8063
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8064
_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'
8066
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8067
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8069
# If archive_cmds runs LD, not CC, wlarc should be empty
8070
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8071
# investigate it a little bit more. (MM)
8074
# ancient GNU ld didn't support --whole-archive et. al.
8075
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
8076
$GREP 'no-whole-archive' > /dev/null; then
8077
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8079
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8085
# A generic and very simple default shared library creation
8086
# command for GNU C++ for the case where it uses the native
8087
# linker, instead of GNU ld. If possible, this setting should
8088
# overridden to take advantage of the native linker features on
8089
# the platform it is being used on.
8090
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8093
# Commands to make compiler produce verbose output that lists
8094
# what "hidden" libraries, object files and flags are used when
8095
# linking a shared library.
8096
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8104
# PORTME: fill in a description of your system's C++ link characteristics
8105
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8106
_LT_TAGVAR(ld_shlibs, $1)=yes
8109
# FIXME: insert proper C++ library support
8110
_LT_TAGVAR(ld_shlibs, $1)=no
8113
if test "$host_cpu" = ia64; then
8114
# On IA64, the linker does run time linking by default, so we don't
8115
# have to do anything special.
8116
aix_use_runtimelinking=no
8117
exp_sym_flag='-Bexport'
8120
aix_use_runtimelinking=no
8122
# Test if we are trying to use run time linking or normal
8123
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8124
# need to do runtime linking.
8125
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8126
for ld_flag in $LDFLAGS; do
8129
aix_use_runtimelinking=yes
8137
exp_sym_flag='-bexport'
8138
no_entry_flag='-bnoentry'
8141
# When large executables or shared objects are built, AIX ld can
8142
# have problems creating the table of contents. If linking a library
8143
# or program results in "error TOC overflow" add -mminimal-toc to
8144
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8145
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8147
_LT_TAGVAR(archive_cmds, $1)=''
8148
_LT_TAGVAR(hardcode_direct, $1)=yes
8149
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8150
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8151
_LT_TAGVAR(link_all_deplibs, $1)=yes
8152
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
8154
if test "$GXX" = yes; then
8155
case $host_os in aix4.[[012]]|aix4.[[012]].*)
8156
# We only want to do this on AIX 4.2 and lower, the check
8157
# below for broken collect2 doesn't work under 4.3+
8158
collect2name=`${CC} -print-prog-name=collect2`
8159
if test -f "$collect2name" &&
8160
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8162
# We have reworked collect2
8165
# We have old collect2
8166
_LT_TAGVAR(hardcode_direct, $1)=unsupported
8167
# It fails to find uninstalled libraries when the uninstalled
8168
# path is not listed in the libpath. Setting hardcode_minus_L
8169
# to unsupported forces relinking
8170
_LT_TAGVAR(hardcode_minus_L, $1)=yes
8171
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8172
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8175
shared_flag='-shared'
8176
if test "$aix_use_runtimelinking" = yes; then
8177
shared_flag="$shared_flag "'${wl}-G'
8181
if test "$host_cpu" = ia64; then
8182
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8183
# chokes on -Wl,-G. The following line is correct:
8186
if test "$aix_use_runtimelinking" = yes; then
8187
shared_flag='${wl}-G'
8189
shared_flag='${wl}-bM:SRE'
8194
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
8195
# It seems that -bexpall does not export symbols beginning with
8196
# underscore (_), so it is better to generate a list of symbols to
8198
_LT_TAGVAR(always_export_symbols, $1)=yes
8199
if test "$aix_use_runtimelinking" = yes; then
8200
# Warning - without using the other runtime loading flags (-brtl),
8201
# -berok will link without error, but may produce a broken library.
8202
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
8203
# Determine the default libpath from the value encoded in an empty
8205
_LT_SYS_MODULE_PATH_AIX
8206
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8208
_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"
8210
if test "$host_cpu" = ia64; then
8211
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8212
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8213
_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"
8215
# Determine the default libpath from the value encoded in an
8217
_LT_SYS_MODULE_PATH_AIX
8218
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8219
# Warning - without using the other run time loading flags,
8220
# -berok will link without error, but may produce a broken library.
8221
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8222
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8223
# Exported symbols can be pulled into shared objects from archives
8224
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8225
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8226
# This is similar to how AIX traditionally builds its shared
8228
_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'
8234
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8235
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8236
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8237
# support --undefined. This deserves some investigation. FIXME
8238
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240
_LT_TAGVAR(ld_shlibs, $1)=no
8245
case $cc_basename in
8247
# FIXME: insert proper C++ library support
8248
_LT_TAGVAR(ld_shlibs, $1)=no
8253
cygwin* | mingw* | pw32* | cegcc*)
8254
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8255
# as there is no search path for DLLs.
8256
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8257
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8258
_LT_TAGVAR(always_export_symbols, $1)=no
8259
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8261
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8262
_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'
8263
# If the export-symbols file already is a .def file (1st line
8264
# is EXPORTS), use it as is; otherwise, prepend...
8265
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8266
cp $export_symbols $output_objdir/$soname.def;
8268
echo EXPORTS > $output_objdir/$soname.def;
8269
cat $export_symbols >> $output_objdir/$soname.def;
8271
$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'
8273
_LT_TAGVAR(ld_shlibs, $1)=no
8276
darwin* | rhapsody*)
8277
_LT_DARWIN_LINKER_FEATURES($1)
8281
case $cc_basename in
8283
# FIXME: insert proper C++ library support
8284
_LT_TAGVAR(ld_shlibs, $1)=no
8287
# Green Hills C++ Compiler
8288
# FIXME: insert proper C++ library support
8289
_LT_TAGVAR(ld_shlibs, $1)=no
8292
# FIXME: insert proper C++ library support
8293
_LT_TAGVAR(ld_shlibs, $1)=no
8299
# C++ shared libraries reported to be fairly broken before
8301
_LT_TAGVAR(ld_shlibs, $1)=no
8305
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8308
freebsd* | dragonfly*)
8309
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8311
_LT_TAGVAR(ld_shlibs, $1)=yes
8318
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8319
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8320
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8321
_LT_TAGVAR(hardcode_direct, $1)=yes
8322
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8323
# but as the default
8324
# location of the library.
8326
case $cc_basename in
8328
# FIXME: insert proper C++ library support
8329
_LT_TAGVAR(ld_shlibs, $1)=no
8332
_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'
8333
# Commands to make compiler produce verbose output that lists
8334
# what "hidden" libraries, object files and flags are used when
8335
# linking a shared library.
8337
# There doesn't appear to be a way to prevent this compiler from
8338
# explicitly linking system object files so we need to strip them
8339
# from the output so that they don't get included in the library
8341
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'
8344
if test "$GXX" = yes; then
8345
_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'
8347
# FIXME: insert proper C++ library support
8348
_LT_TAGVAR(ld_shlibs, $1)=no
8355
if test $with_gnu_ld = no; then
8356
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8357
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8363
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8369
_LT_TAGVAR(hardcode_direct, $1)=no
8370
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8373
_LT_TAGVAR(hardcode_direct, $1)=yes
8374
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8375
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8376
# but as the default
8377
# location of the library.
8381
case $cc_basename in
8383
# FIXME: insert proper C++ library support
8384
_LT_TAGVAR(ld_shlibs, $1)=no
8389
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8392
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8395
_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'
8398
# Commands to make compiler produce verbose output that lists
8399
# what "hidden" libraries, object files and flags are used when
8400
# linking a shared library.
8402
# There doesn't appear to be a way to prevent this compiler from
8403
# explicitly linking system object files so we need to strip them
8404
# from the output so that they don't get included in the library
8406
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'
8409
if test "$GXX" = yes; then
8410
if test $with_gnu_ld = no; then
8413
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8416
_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'
8419
_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'
8424
# FIXME: insert proper C++ library support
8425
_LT_TAGVAR(ld_shlibs, $1)=no
8432
_LT_TAGVAR(hardcode_direct, $1)=no
8433
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8434
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8435
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8436
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8437
# Instead, shared libraries are loaded at an image base (0x10000000 by
8438
# default) and relocated if they conflict, which is a slow very memory
8439
# consuming and fragmenting process. To avoid this, we pick a random,
8440
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8441
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8442
_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'
8443
_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'
8446
case $cc_basename in
8449
_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'
8451
# Archives containing C++ object files must be created using
8452
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
8453
# necessary to make sure instantiated templates are included
8455
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8458
if test "$GXX" = yes; then
8459
if test "$with_gnu_ld" = no; then
8460
_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'
8462
_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'
8465
_LT_TAGVAR(link_all_deplibs, $1)=yes
8468
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8469
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8470
_LT_TAGVAR(inherit_rpath, $1)=yes
8473
linux* | k*bsd*-gnu)
8474
case $cc_basename in
8476
# Kuck and Associates, Inc. (KAI) C++ Compiler
8478
# KCC will only create a shared library if the output file
8479
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8480
# to its proper name (with version) after linking.
8481
_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'
8482
_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'
8483
# Commands to make compiler produce verbose output that lists
8484
# what "hidden" libraries, object files and flags are used when
8485
# linking a shared library.
8487
# There doesn't appear to be a way to prevent this compiler from
8488
# explicitly linking system object files so we need to strip them
8489
# from the output so that they don't get included in the library
8491
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'
8493
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8494
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8496
# Archives containing C++ object files must be created using
8497
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
8498
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8503
# version 8.0 and above of icpc choke on multiply defined symbols
8504
# if we add $predep_objects and $postdep_objects, however 7.1 and
8505
# earlier do not add the objects themselves.
8506
case `$CC -V 2>&1` in
8508
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509
_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'
8511
*) # Version 8.0 or newer
8514
ia64*) tmp_idyn=' -i_dynamic';;
8516
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517
_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'
8520
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8521
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8522
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8523
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8526
# Portland Group C++ compiler
8528
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
8529
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8531
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8532
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
8533
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
8535
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8536
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
8538
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8540
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8541
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8542
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
8544
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8545
$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'
8547
*) # Version 6 will use weak symbols
8548
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8549
_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'
8553
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8554
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8555
_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'
8559
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560
_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'
8562
runpath_var=LD_RUN_PATH
8563
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8564
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8566
# Commands to make compiler produce verbose output that lists
8567
# what "hidden" libraries, object files and flags are used when
8568
# linking a shared library.
8570
# There doesn't appear to be a way to prevent this compiler from
8571
# explicitly linking system object files so we need to strip them
8572
# from the output so that they don't get included in the library
8574
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'
8577
# IBM XL 8.0 on PPC, with GNU ld
8578
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8579
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8580
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581
if test "x$supports_anon_versioning" = xyes; then
8582
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8583
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8584
echo "local: *; };" >> $output_objdir/$libname.ver~
8585
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8589
case `$CC -V 2>&1 | sed 5q` in
8592
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8593
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8594
_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'
8595
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8596
_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'
8597
_LT_TAGVAR(compiler_needs_object, $1)=yes
8599
# Not sure whether something based on
8600
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
8602
output_verbose_link_cmd='echo'
8604
# Archives containing C++ object files must be created using
8605
# "CC -xar", where "CC" is the Sun C++ compiler. This is
8606
# necessary to make sure instantiated templates are included
8608
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8616
# FIXME: insert proper C++ library support
8617
_LT_TAGVAR(ld_shlibs, $1)=no
8621
# FIXME: insert proper C++ library support
8622
_LT_TAGVAR(ld_shlibs, $1)=no
8626
case $cc_basename in
8628
# FIXME: insert proper C++ library support
8629
_LT_TAGVAR(ld_shlibs, $1)=no
8632
# FIXME: insert proper C++ library support
8633
_LT_TAGVAR(ld_shlibs, $1)=no
8639
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8640
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8642
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8643
_LT_TAGVAR(hardcode_direct, $1)=yes
8644
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8646
# Workaround some broken pre-1.5 toolchains
8647
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8651
_LT_TAGVAR(ld_shlibs, $1)=yes
8655
# C++ shared libraries are fairly broken
8656
_LT_TAGVAR(ld_shlibs, $1)=no
8660
if test -f /usr/libexec/ld.so; then
8661
_LT_TAGVAR(hardcode_direct, $1)=yes
8662
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8663
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8664
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8665
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8666
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8667
_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'
8668
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8669
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8671
output_verbose_link_cmd=echo
8673
_LT_TAGVAR(ld_shlibs, $1)=no
8677
osf3* | osf4* | osf5*)
8678
case $cc_basename in
8680
# Kuck and Associates, Inc. (KAI) C++ Compiler
8682
# KCC will only create a shared library if the output file
8683
# ends with ".so" (or ".sl" for HP-UX), so rename the library
8684
# to its proper name (with version) after linking.
8685
_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'
8687
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8688
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8690
# Archives containing C++ object files must be created using
8691
# the KAI C++ compiler.
8693
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
8694
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
8698
# Rational C++ 2.4.1
8699
# FIXME: insert proper C++ library support
8700
_LT_TAGVAR(ld_shlibs, $1)=no
8705
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8706
_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'
8707
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8710
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8711
_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'
8712
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8713
echo "-hidden">> $lib.exp~
8714
$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~
8716
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8720
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8722
# Commands to make compiler produce verbose output that lists
8723
# what "hidden" libraries, object files and flags are used when
8724
# linking a shared library.
8726
# There doesn't appear to be a way to prevent this compiler from
8727
# explicitly linking system object files so we need to strip them
8728
# from the output so that they don't get included in the library
8730
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'
8733
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8734
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8737
_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'
8740
_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'
8744
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8745
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8747
# Commands to make compiler produce verbose output that lists
8748
# what "hidden" libraries, object files and flags are used when
8749
# linking a shared library.
8750
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8753
# FIXME: insert proper C++ library support
8754
_LT_TAGVAR(ld_shlibs, $1)=no
8761
# FIXME: insert proper C++ library support
8762
_LT_TAGVAR(ld_shlibs, $1)=no
8766
case $cc_basename in
8769
# FIXME: insert proper C++ library support
8770
_LT_TAGVAR(ld_shlibs, $1)=no
8774
# FIXME: insert proper C++ library support
8775
_LT_TAGVAR(ld_shlibs, $1)=no
8778
# FIXME: insert proper C++ library support
8779
_LT_TAGVAR(ld_shlibs, $1)=no
8785
case $cc_basename in
8787
# Sun C++ 4.2, 5.x and Centerline C++
8788
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
8789
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8790
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8791
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8792
$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'
8794
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8795
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8797
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8799
# The compiler driver will combine and reorder linker options,
8800
# but understands `-z linker_flag'.
8801
# Supported since Solaris 2.6 (maybe 2.5.1?)
8802
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8805
_LT_TAGVAR(link_all_deplibs, $1)=yes
8807
output_verbose_link_cmd='echo'
8809
# Archives containing C++ object files must be created using
8810
# "CC -xar", where "CC" is the Sun C++ compiler. This is
8811
# necessary to make sure instantiated templates are included
8813
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8816
# Green Hills C++ Compiler
8817
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8819
# The C++ compiler must be used to create the archive.
8820
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8823
# GNU C++ compiler with Solaris linker
8824
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8825
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8826
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
8827
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8828
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8829
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8831
# Commands to make compiler produce verbose output that lists
8832
# what "hidden" libraries, object files and flags are used when
8833
# linking a shared library.
8834
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8836
# g++ 2.7 appears to require `-G' NOT `-shared' on this
8838
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8839
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8840
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8842
# Commands to make compiler produce verbose output that lists
8843
# what "hidden" libraries, object files and flags are used when
8844
# linking a shared library.
8845
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8848
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8850
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8852
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8860
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8861
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8862
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8863
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8864
runpath_var='LD_RUN_PATH'
8866
case $cc_basename in
8868
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8869
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8872
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8873
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8878
sysv5* | sco3.2v5* | sco5v6*)
8879
# Note: We can NOT use -z defs as we might desire, because we do not
8880
# link with -lc, and that would cause any symbols used from libc to
8881
# always be unresolved, which means just about no library would
8882
# ever link correctly. If we're not using GNU ld we use -z text
8883
# though, which does catch some bad symbols but isn't as heavy-handed
8885
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8886
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8887
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8888
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8889
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
8890
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8891
_LT_TAGVAR(link_all_deplibs, $1)=yes
8892
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8893
runpath_var='LD_RUN_PATH'
8895
case $cc_basename in
8897
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8898
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8901
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8902
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8908
case $cc_basename in
8910
# NonStop-UX NCC 3.20
8911
# FIXME: insert proper C++ library support
8912
_LT_TAGVAR(ld_shlibs, $1)=no
8915
# FIXME: insert proper C++ library support
8916
_LT_TAGVAR(ld_shlibs, $1)=no
8922
# FIXME: insert proper C++ library support
8923
_LT_TAGVAR(ld_shlibs, $1)=no
8927
# FIXME: insert proper C++ library support
8928
_LT_TAGVAR(ld_shlibs, $1)=no
8932
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8933
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8935
_LT_TAGVAR(GCC, $1)="$GXX"
8936
_LT_TAGVAR(LD, $1)="$LD"
8939
## There is no encapsulation within the following macros, do not change
8940
## the running order or otherwise move them around unless you know exactly
8941
## what you are doing...
8942
_LT_SYS_HIDDEN_LIBDEPS($1)
8943
_LT_COMPILER_PIC($1)
8944
_LT_COMPILER_C_O($1)
8945
_LT_COMPILER_FILE_LOCKS($1)
8946
_LT_LINKER_SHLIBS($1)
8947
_LT_SYS_DYNAMIC_LINKER($1)
8948
_LT_LINKER_HARDCODE_LIBPATH($1)
8951
fi # test -n "$compiler"
8957
with_gnu_ld=$lt_save_with_gnu_ld
8958
lt_cv_path_LDCXX=$lt_cv_path_LD
8959
lt_cv_path_LD=$lt_save_path_LD
8960
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8961
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8962
fi # test "$_lt_caught_CXX_error" != yes
8965
])# _LT_LANG_CXX_CONFIG
8968
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8888
8969
# ---------------------------------
8889
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
8893
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
8894
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8895
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8896
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8897
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8898
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
8899
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
8901
# This is just to silence aclocal about the macro not being used
8902
ifelse([AC_DISABLE_FAST_INSTALL])
8904
AC_DEFUN([LT_AC_PROG_GCJ],
8905
[AC_CHECK_TOOL(GCJ, gcj, no)
8906
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8910
AC_DEFUN([LT_AC_PROG_RC],
8911
[AC_CHECK_TOOL(RC, windres, no)
8915
# Cheap backport of AS_EXECUTABLE_P and required macros
8916
# from Autoconf 2.59; we should not use $as_executable_p directly.
8920
m4_ifndef([_AS_TEST_PREPARE],
8921
[m4_defun([_AS_TEST_PREPARE],
8922
[if test -x / >/dev/null 2>&1; then
8923
as_executable_p='test -x'
8970
# Figure out "hidden" library dependencies from verbose
8971
# compiler output when linking a shared library.
8972
# Parse the compiler output and extract the necessary
8973
# objects, libraries and library flags.
8974
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8975
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8976
# Dependencies to place before and after the object being linked:
8977
_LT_TAGVAR(predep_objects, $1)=
8978
_LT_TAGVAR(postdep_objects, $1)=
8979
_LT_TAGVAR(predeps, $1)=
8980
_LT_TAGVAR(postdeps, $1)=
8981
_LT_TAGVAR(compiler_lib_search_path, $1)=
8983
dnl we can't use the lt_simple_compile_test_code here,
8984
dnl because it contains code intended for an executable,
8985
dnl not a library. It's possible we should let each
8986
dnl tag define a new lt_????_link_test_code variable,
8987
dnl but it's only used here...
8988
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
8990
void foo (void) { a = 0; }
8992
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8996
Foo (void) { a = 0; }
9001
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
9009
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
9017
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
9020
public void bar (void) {
9026
dnl Parse the compiler output and extract the necessary
9027
dnl objects, libraries and library flags.
9028
if AC_TRY_EVAL(ac_compile); then
9029
# Parse the compiler output and extract the necessary
9030
# objects, libraries and library flags.
9032
# Sentinel used to keep track of whether or not we are before
9033
# the conftest object file.
9034
pre_test_object_deps_done=no
9036
for p in `eval "$output_verbose_link_cmd"`; do
9040
# Some compilers place space between "-{L,R}" and the path.
9042
if test $p = "-L" ||
9043
test $p = "-R"; then
9050
if test "$pre_test_object_deps_done" = no; then
9053
# Internal compiler library paths should come after those
9054
# provided the user. The postdeps already come after the
9055
# user supplied libs so there is no need to process them.
9056
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
9057
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
9059
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
9062
# The "-l" case would never come before the object being
9063
# linked, so don't bother handling this case.
9066
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
9067
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
9069
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
9075
# This assumes that the test object file only shows up
9076
# once in the compiler output.
9077
if test "$p" = "conftest.$objext"; then
9078
pre_test_object_deps_done=yes
9082
if test "$pre_test_object_deps_done" = no; then
9083
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
9084
_LT_TAGVAR(predep_objects, $1)="$p"
9086
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
9089
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
9090
_LT_TAGVAR(postdep_objects, $1)="$p"
9092
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
9097
*) ;; # Ignore the rest.
8925
as_executable_p='test -f'
8927
])])# _AS_TEST_PREPARE
8931
# Check whether a file is executable.
8932
m4_ifndef([AS_EXECUTABLE_P],
8933
[m4_defun([AS_EXECUTABLE_P],
8934
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
8935
$as_executable_p $1[]dnl
8936
])])# AS_EXECUTABLE_P
9105
echo "libtool.m4: error: problem compiling $1 test program"
9108
$RM -f confest.$objext
9110
# PORTME: override above test on systems where it is broken
9114
# Interix 3.5 installs completely hosed .la files for C++, so rather than
9115
# hack all around it, let's just trust "g++" to DTRT.
9116
_LT_TAGVAR(predep_objects,$1)=
9117
_LT_TAGVAR(postdep_objects,$1)=
9118
_LT_TAGVAR(postdeps,$1)=
9122
case `$CC -V 2>&1 | sed 5q` in
9126
# The more standards-conforming stlport4 library is
9127
# incompatible with the Cstd library. Avoid specifying
9128
# it if it's in CXXFLAGS. Ignore libCrun as
9129
# -library=stlport4 depends on it.
9130
case " $CXX $CXXFLAGS " in
9131
*" -library=stlport4 "*)
9132
solaris_use_stlport4=yes
9136
if test "$solaris_use_stlport4" != yes; then
9137
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
9144
case $cc_basename in
9146
# The more standards-conforming stlport4 library is
9147
# incompatible with the Cstd library. Avoid specifying
9148
# it if it's in CXXFLAGS. Ignore libCrun as
9149
# -library=stlport4 depends on it.
9150
case " $CXX $CXXFLAGS " in
9151
*" -library=stlport4 "*)
9152
solaris_use_stlport4=yes
9156
# Adding this requires a known-good setup of shared libraries for
9157
# Sun compiler versions before 5.6, else PIC objects from an old
9158
# archive will be linked into the output, leading to subtle bugs.
9159
if test "$solaris_use_stlport4" != yes; then
9160
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
9168
case " $_LT_TAGVAR(postdeps, $1) " in
9169
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
9171
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
9172
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
9173
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
9175
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
9176
[The directories searched by this compiler when creating a shared library])
9177
_LT_TAGDECL([], [predep_objects], [1],
9178
[Dependencies to place before and after the objects being linked to
9179
create a shared library])
9180
_LT_TAGDECL([], [postdep_objects], [1])
9181
_LT_TAGDECL([], [predeps], [1])
9182
_LT_TAGDECL([], [postdeps], [1])
9183
_LT_TAGDECL([], [compiler_lib_search_path], [1],
9184
[The library search path used internally by the compiler when linking
9186
])# _LT_SYS_HIDDEN_LIBDEPS
9191
# Since AC_PROG_F77 is broken, in that it returns the empty string
9192
# if there is no fortran compiler, we have our own version here.
9193
m4_defun([_LT_PROG_F77],
9195
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
9197
if test -z "$F77" || test "X$F77" = "Xno"; then
9200
popdef([AC_MSG_ERROR])
9203
dnl aclocal-1.4 backwards compatibility:
9204
dnl AC_DEFUN([_LT_PROG_F77], [])
9207
# _LT_LANG_F77_CONFIG([TAG])
9208
# --------------------------
9209
# Ensure that the configuration variables for a Fortran 77 compiler are
9210
# suitably defined. These variables are subsequently used by _LT_CONFIG
9211
# to write the compiler configuration to `libtool'.
9212
m4_defun([_LT_LANG_F77_CONFIG],
9213
[AC_REQUIRE([_LT_PROG_F77])dnl
9214
AC_LANG_PUSH(Fortran 77)
9216
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9217
_LT_TAGVAR(allow_undefined_flag, $1)=
9218
_LT_TAGVAR(always_export_symbols, $1)=no
9219
_LT_TAGVAR(archive_expsym_cmds, $1)=
9220
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
9221
_LT_TAGVAR(hardcode_direct, $1)=no
9222
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9223
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9224
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9225
_LT_TAGVAR(hardcode_libdir_separator, $1)=
9226
_LT_TAGVAR(hardcode_minus_L, $1)=no
9227
_LT_TAGVAR(hardcode_automatic, $1)=no
9228
_LT_TAGVAR(inherit_rpath, $1)=no
9229
_LT_TAGVAR(module_cmds, $1)=
9230
_LT_TAGVAR(module_expsym_cmds, $1)=
9231
_LT_TAGVAR(link_all_deplibs, $1)=unknown
9232
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9233
_LT_TAGVAR(no_undefined_flag, $1)=
9234
_LT_TAGVAR(whole_archive_flag_spec, $1)=
9235
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9237
# Source file extension for f77 test sources.
9240
# Object file extension for compiled f77 test sources.
9242
_LT_TAGVAR(objext, $1)=$objext
9244
# No sense in running all these tests if we already determined that
9245
# the F77 compiler isn't working. Some variables (like enable_shared)
9246
# are currently assumed to apply to all compilers on this platform,
9247
# and will be corrupted by setting them based on a non-working compiler.
9248
if test "$_lt_disable_F77" != yes; then
9249
# Code to be used in simple compile tests
9250
lt_simple_compile_test_code="\
9256
# Code to be used in simple link tests
9257
lt_simple_link_test_code="\
9262
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9265
# save warnings/boilerplate of simple test code
9266
_LT_COMPILER_BOILERPLATE
9267
_LT_LINKER_BOILERPLATE
9269
# Allow CC to be a program name with arguments.
9274
_LT_TAGVAR(compiler, $1)=$CC
9275
_LT_CC_BASENAME([$compiler])
9277
if test -n "$compiler"; then
9278
AC_MSG_CHECKING([if libtool supports shared libraries])
9279
AC_MSG_RESULT([$can_build_shared])
9281
AC_MSG_CHECKING([whether to build shared libraries])
9282
test "$can_build_shared" = "no" && enable_shared=no
9284
# On AIX, shared libraries and static libraries use the same namespace, and
9285
# are all built from PIC.
9288
test "$enable_shared" = yes && enable_static=no
9289
if test -n "$RANLIB"; then
9290
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9291
postinstall_cmds='$RANLIB $lib'
9295
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9296
test "$enable_shared" = yes && enable_static=no
9300
AC_MSG_RESULT([$enable_shared])
9302
AC_MSG_CHECKING([whether to build static libraries])
9303
# Make sure either enable_shared or enable_static is yes.
9304
test "$enable_shared" = yes || enable_static=yes
9305
AC_MSG_RESULT([$enable_static])
9307
_LT_TAGVAR(GCC, $1)="$G77"
9308
_LT_TAGVAR(LD, $1)="$LD"
9311
## There is no encapsulation within the following macros, do not change
9312
## the running order or otherwise move them around unless you know exactly
9313
## what you are doing...
9314
_LT_COMPILER_PIC($1)
9315
_LT_COMPILER_C_O($1)
9316
_LT_COMPILER_FILE_LOCKS($1)
9317
_LT_LINKER_SHLIBS($1)
9318
_LT_SYS_DYNAMIC_LINKER($1)
9319
_LT_LINKER_HARDCODE_LIBPATH($1)
9322
fi # test -n "$compiler"
9326
fi # test "$_lt_disable_F77" != yes
9329
])# _LT_LANG_F77_CONFIG
9334
# Since AC_PROG_FC is broken, in that it returns the empty string
9335
# if there is no fortran compiler, we have our own version here.
9336
m4_defun([_LT_PROG_FC],
9338
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
9340
if test -z "$FC" || test "X$FC" = "Xno"; then
9343
popdef([AC_MSG_ERROR])
9346
dnl aclocal-1.4 backwards compatibility:
9347
dnl AC_DEFUN([_LT_PROG_FC], [])
9350
# _LT_LANG_FC_CONFIG([TAG])
9351
# -------------------------
9352
# Ensure that the configuration variables for a Fortran compiler are
9353
# suitably defined. These variables are subsequently used by _LT_CONFIG
9354
# to write the compiler configuration to `libtool'.
9355
m4_defun([_LT_LANG_FC_CONFIG],
9356
[AC_REQUIRE([_LT_PROG_FC])dnl
9357
AC_LANG_PUSH(Fortran)
9359
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9360
_LT_TAGVAR(allow_undefined_flag, $1)=
9361
_LT_TAGVAR(always_export_symbols, $1)=no
9362
_LT_TAGVAR(archive_expsym_cmds, $1)=
9363
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
9364
_LT_TAGVAR(hardcode_direct, $1)=no
9365
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9366
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9367
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9368
_LT_TAGVAR(hardcode_libdir_separator, $1)=
9369
_LT_TAGVAR(hardcode_minus_L, $1)=no
9370
_LT_TAGVAR(hardcode_automatic, $1)=no
9371
_LT_TAGVAR(inherit_rpath, $1)=no
9372
_LT_TAGVAR(module_cmds, $1)=
9373
_LT_TAGVAR(module_expsym_cmds, $1)=
9374
_LT_TAGVAR(link_all_deplibs, $1)=unknown
9375
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9376
_LT_TAGVAR(no_undefined_flag, $1)=
9377
_LT_TAGVAR(whole_archive_flag_spec, $1)=
9378
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9380
# Source file extension for fc test sources.
9381
ac_ext=${ac_fc_srcext-f}
9383
# Object file extension for compiled fc test sources.
9385
_LT_TAGVAR(objext, $1)=$objext
9387
# No sense in running all these tests if we already determined that
9388
# the FC compiler isn't working. Some variables (like enable_shared)
9389
# are currently assumed to apply to all compilers on this platform,
9390
# and will be corrupted by setting them based on a non-working compiler.
9391
if test "$_lt_disable_FC" != yes; then
9392
# Code to be used in simple compile tests
9393
lt_simple_compile_test_code="\
9399
# Code to be used in simple link tests
9400
lt_simple_link_test_code="\
9405
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9408
# save warnings/boilerplate of simple test code
9409
_LT_COMPILER_BOILERPLATE
9410
_LT_LINKER_BOILERPLATE
9412
# Allow CC to be a program name with arguments.
9417
GCC=$ac_cv_fc_compiler_gnu
9419
_LT_TAGVAR(compiler, $1)=$CC
9420
_LT_CC_BASENAME([$compiler])
9422
if test -n "$compiler"; then
9423
AC_MSG_CHECKING([if libtool supports shared libraries])
9424
AC_MSG_RESULT([$can_build_shared])
9426
AC_MSG_CHECKING([whether to build shared libraries])
9427
test "$can_build_shared" = "no" && enable_shared=no
9429
# On AIX, shared libraries and static libraries use the same namespace, and
9430
# are all built from PIC.
9433
test "$enable_shared" = yes && enable_static=no
9434
if test -n "$RANLIB"; then
9435
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9436
postinstall_cmds='$RANLIB $lib'
9440
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9441
test "$enable_shared" = yes && enable_static=no
9445
AC_MSG_RESULT([$enable_shared])
9447
AC_MSG_CHECKING([whether to build static libraries])
9448
# Make sure either enable_shared or enable_static is yes.
9449
test "$enable_shared" = yes || enable_static=yes
9450
AC_MSG_RESULT([$enable_static])
9452
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
9453
_LT_TAGVAR(LD, $1)="$LD"
9456
## There is no encapsulation within the following macros, do not change
9457
## the running order or otherwise move them around unless you know exactly
9458
## what you are doing...
9459
_LT_SYS_HIDDEN_LIBDEPS($1)
9460
_LT_COMPILER_PIC($1)
9461
_LT_COMPILER_C_O($1)
9462
_LT_COMPILER_FILE_LOCKS($1)
9463
_LT_LINKER_SHLIBS($1)
9464
_LT_SYS_DYNAMIC_LINKER($1)
9465
_LT_LINKER_HARDCODE_LIBPATH($1)
9468
fi # test -n "$compiler"
9472
fi # test "$_lt_disable_FC" != yes
9475
])# _LT_LANG_FC_CONFIG
9478
# _LT_LANG_GCJ_CONFIG([TAG])
9479
# --------------------------
9480
# Ensure that the configuration variables for the GNU Java Compiler compiler
9481
# are suitably defined. These variables are subsequently used by _LT_CONFIG
9482
# to write the compiler configuration to `libtool'.
9483
m4_defun([_LT_LANG_GCJ_CONFIG],
9484
[AC_REQUIRE([LT_PROG_GCJ])dnl
9487
# Source file extension for Java test sources.
9490
# Object file extension for compiled Java test sources.
9492
_LT_TAGVAR(objext, $1)=$objext
9494
# Code to be used in simple compile tests
9495
lt_simple_compile_test_code="class foo {}"
9497
# Code to be used in simple link tests
9498
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
9500
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9503
# save warnings/boilerplate of simple test code
9504
_LT_COMPILER_BOILERPLATE
9505
_LT_LINKER_BOILERPLATE
9507
# Allow CC to be a program name with arguments.
9513
_LT_TAGVAR(compiler, $1)=$CC
9514
_LT_TAGVAR(LD, $1)="$LD"
9515
_LT_CC_BASENAME([$compiler])
9517
# GCJ did not exist at the time GCC didn't implicitly link libc in.
9518
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9520
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9522
if test -n "$compiler"; then
9523
_LT_COMPILER_NO_RTTI($1)
9524
_LT_COMPILER_PIC($1)
9525
_LT_COMPILER_C_O($1)
9526
_LT_COMPILER_FILE_LOCKS($1)
9527
_LT_LINKER_SHLIBS($1)
9528
_LT_LINKER_HARDCODE_LIBPATH($1)
9537
])# _LT_LANG_GCJ_CONFIG
9540
# _LT_LANG_RC_CONFIG([TAG])
9541
# -------------------------
9542
# Ensure that the configuration variables for the Windows resource compiler
9543
# are suitably defined. These variables are subsequently used by _LT_CONFIG
9544
# to write the compiler configuration to `libtool'.
9545
m4_defun([_LT_LANG_RC_CONFIG],
9546
[AC_REQUIRE([LT_PROG_RC])dnl
9549
# Source file extension for RC test sources.
9552
# Object file extension for compiled RC test sources.
9554
_LT_TAGVAR(objext, $1)=$objext
9556
# Code to be used in simple compile tests
9557
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
9559
# Code to be used in simple link tests
9560
lt_simple_link_test_code="$lt_simple_compile_test_code"
9562
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9565
# save warnings/boilerplate of simple test code
9566
_LT_COMPILER_BOILERPLATE
9567
_LT_LINKER_BOILERPLATE
9569
# Allow CC to be a program name with arguments.
9575
_LT_TAGVAR(compiler, $1)=$CC
9576
_LT_CC_BASENAME([$compiler])
9577
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
9579
if test -n "$compiler"; then
9587
])# _LT_LANG_RC_CONFIG
9592
AC_DEFUN([LT_PROG_GCJ],
9593
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
9594
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
9595
[AC_CHECK_TOOL(GCJ, gcj,)
9596
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9597
AC_SUBST(GCJFLAGS)])])[]dnl
9601
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
9602
dnl aclocal-1.4 backwards compatibility:
9603
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
9608
AC_DEFUN([LT_PROG_RC],
9609
[AC_CHECK_TOOL(RC, windres,)
9613
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
9614
dnl aclocal-1.4 backwards compatibility:
9615
dnl AC_DEFUN([LT_AC_PROG_RC], [])
9620
# If we don't have a new enough Autoconf to choose the best grep
9621
# available, choose the one first in the user's PATH.
9622
m4_defun([_LT_DECL_EGREP],
9623
[AC_REQUIRE([AC_PROG_EGREP])dnl
9624
AC_REQUIRE([AC_PROG_FGREP])dnl
9625
test -z "$GREP" && GREP=grep
9626
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
9627
_LT_DECL([], [EGREP], [1], [An ERE matcher])
9628
_LT_DECL([], [FGREP], [1], [A literal string matcher])
9629
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
9636
# If we don't have a new enough Autoconf to choose the best objdump
9637
# available, choose the one first in the user's PATH.
9638
m4_defun([_LT_DECL_OBJDUMP],
9639
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
9640
test -z "$OBJDUMP" && OBJDUMP=objdump
9641
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
9648
# Check for a fully-functional sed program, that truncates
9649
# as few characters as possible. Prefer GNU sed if found.
9650
m4_defun([_LT_DECL_SED],
9652
test -z "$SED" && SED=sed
9653
Xsed="$SED -e 1s/^X//"
9654
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
9655
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
9656
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
9659
m4_ifndef([AC_PROG_SED], [
8938
9660
# NOTE: This macro has been submitted for inclusion into #
8939
9661
# GNU Autoconf as AC_PROG_SED. When it is available in #
8940
9662
# a released version of Autoconf we should remove this #
8941
9663
# macro and use it instead. #
8944
# Check for a fully-functional sed program, that truncates
8945
# as few characters as possible. Prefer GNU sed if found.
8946
AC_DEFUN([LT_AC_PROG_SED],
9665
m4_defun([AC_PROG_SED],
8947
9666
[AC_MSG_CHECKING([for a sed that does not truncate output])
8948
9667
AC_CACHE_VAL(lt_cv_path_SED,
8949
9668
[# Loop through the user's path and test for sed and gsed.
9383
# This macro is obsolescent and should go away soon.
9384
AC_DEFUN([gl_AC_TYPE_LONG_LONG],
10352
# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
10353
# This fixes a bug in Autoconf 2.61, but can be removed once we
10354
# assume 2.62 everywhere.
10356
# Note: If the type 'unsigned long long int' exists but is only 32 bits
10357
# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
10358
# will not be defined. In this case you can treat 'unsigned long long int'
10359
# like 'unsigned long int'.
10361
AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
9386
AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
9387
ac_cv_type_long_long=$ac_cv_type_long_long_int
9388
if test $ac_cv_type_long_long = yes; then
9389
AC_DEFINE(HAVE_LONG_LONG, 1,
9390
[Define if you have the 'long long' type.])
10363
AC_CACHE_CHECK([for unsigned long long int],
10364
[ac_cv_type_unsigned_long_long_int],
10366
[_AC_TYPE_LONG_LONG_SNIPPET],
10367
[ac_cv_type_unsigned_long_long_int=yes],
10368
[ac_cv_type_unsigned_long_long_int=no])])
10369
if test $ac_cv_type_unsigned_long_long_int = yes; then
10370
AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,
10371
[Define to 1 if the system has the type `unsigned long long int'.])
10375
# Expands to a C program that can be used to test for simultaneous support
10376
# of 'long long' and 'unsigned long long'. We don't want to say that
10377
# 'long long' is available if 'unsigned long long' is not, or vice versa,
10378
# because too many programs rely on the symmetry between signed and unsigned
10379
# integer types (excluding 'bool').
10380
AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
10383
[[/* Test preprocessor. */
10384
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10385
error in preprocessor;
10387
#if ! (18446744073709551615ULL <= -1ull)
10388
error in preprocessor;
10390
/* Test literals. */
10391
long long int ll = 9223372036854775807ll;
10392
long long int nll = -9223372036854775807LL;
10393
unsigned long long int ull = 18446744073709551615ULL;
10394
/* Test constant expressions. */
10395
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10397
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10400
[[/* Test availability of runtime routines for shift and division. */
10401
long long int llmax = 9223372036854775807ll;
10402
unsigned long long int ullmax = 18446744073709551615ull;
10403
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10404
| (llmax / ll) | (llmax % ll)
10405
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10406
| (ullmax / ull) | (ullmax % ull));]])
10409
# Helper functions for option handling. -*- Autoconf -*-
10411
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
10412
# Written by Gary V. Vaughan, 2004
10414
# This file is free software; the Free Software Foundation gives
10415
# unlimited permission to copy and/or distribute it, with or without
10416
# modifications, as long as this notice is preserved.
10418
# serial 6 ltoptions.m4
10420
# This is to help aclocal find these macros, as it can't see m4_define.
10421
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
10424
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
10425
# ------------------------------------------
10426
m4_define([_LT_MANGLE_OPTION],
10427
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
10430
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
10431
# ---------------------------------------
10432
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
10433
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
10435
m4_define([_LT_SET_OPTION],
10436
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
10437
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
10438
_LT_MANGLE_DEFUN([$1], [$2]),
10439
[m4_warning([Unknown $1 option `$2'])])[]dnl
10443
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
10444
# ------------------------------------------------------------
10445
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10446
m4_define([_LT_IF_OPTION],
10447
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
10450
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
10451
# -------------------------------------------------------
10452
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
10454
m4_define([_LT_UNLESS_OPTIONS],
10455
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
10456
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
10457
[m4_define([$0_found])])])[]dnl
10458
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
10463
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
10464
# ----------------------------------------
10465
# OPTION-LIST is a space-separated list of Libtool options associated
10466
# with MACRO-NAME. If any OPTION has a matching handler declared with
10467
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
10468
# the unknown option and exit.
10469
m4_defun([_LT_SET_OPTIONS],
10471
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
10472
[_LT_SET_OPTION([$1], _LT_Option)])
10474
m4_if([$1],[LT_INIT],[
10476
dnl Simply set some default values (i.e off) if boolean options were not
10478
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
10480
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
10483
dnl If no reference was made to various pairs of opposing options, then
10484
dnl we run the default mode handler for the pair. For example, if neither
10485
dnl `shared' nor `disable-shared' was passed, we enable building of shared
10486
dnl archives by default:
10487
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
10488
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
10489
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
10490
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
10491
[_LT_ENABLE_FAST_INSTALL])
10493
])# _LT_SET_OPTIONS
10497
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
10498
# -----------------------------------------
10499
m4_define([_LT_MANGLE_DEFUN],
10500
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
10503
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
10504
# -----------------------------------------------
10505
m4_define([LT_OPTION_DEFINE],
10506
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
10507
])# LT_OPTION_DEFINE
10512
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
10515
AU_DEFUN([AC_LIBTOOL_DLOPEN],
10516
[_LT_SET_OPTION([LT_INIT], [dlopen])
10517
AC_DIAGNOSE([obsolete],
10518
[$0: Remove this warning and the call to _LT_SET_OPTION when you
10519
put the `dlopen' option into LT_INIT's first parameter.])
10522
dnl aclocal-1.4 backwards compatibility:
10523
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
10528
# Declare package support for building win32 dll's.
10529
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
10530
[enable_win32_dll=yes
10533
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
10534
AC_CHECK_TOOL(AS, as, false)
10535
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
10536
AC_CHECK_TOOL(OBJDUMP, objdump, false)
10540
test -z "$AS" && AS=as
10541
_LT_DECL([], [AS], [0], [Assembler program])dnl
10543
test -z "$DLLTOOL" && DLLTOOL=dlltool
10544
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
10546
test -z "$OBJDUMP" && OBJDUMP=objdump
10547
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
10550
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
10551
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
10552
_LT_SET_OPTION([LT_INIT], [win32-dll])
10553
AC_DIAGNOSE([obsolete],
10554
[$0: Remove this warning and the call to _LT_SET_OPTION when you
10555
put the `win32-dll' option into LT_INIT's first parameter.])
10558
dnl aclocal-1.4 backwards compatibility:
10559
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
10562
# _LT_ENABLE_SHARED([DEFAULT])
10563
# ----------------------------
10564
# implement the --enable-shared flag, and supports the `shared' and
10565
# `disable-shared' LT_INIT options.
10566
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
10567
m4_define([_LT_ENABLE_SHARED],
10568
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
10569
AC_ARG_ENABLE([shared],
10570
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
10571
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
10572
[p=${PACKAGE-default}
10574
yes) enable_shared=yes ;;
10575
no) enable_shared=no ;;
10578
# Look at the argument we got. We use all the common list separators.
10579
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10580
for pkg in $enableval; do
10582
if test "X$pkg" = "X$p"; then
10589
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
10591
_LT_DECL([build_libtool_libs], [enable_shared], [0],
10592
[Whether or not to build shared libraries])
10593
])# _LT_ENABLE_SHARED
10595
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
10596
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
10599
AC_DEFUN([AC_ENABLE_SHARED],
10600
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
10603
AC_DEFUN([AC_DISABLE_SHARED],
10604
[_LT_SET_OPTION([LT_INIT], [disable-shared])
10607
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
10608
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
10610
dnl aclocal-1.4 backwards compatibility:
10611
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
10612
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
10616
# _LT_ENABLE_STATIC([DEFAULT])
10617
# ----------------------------
10618
# implement the --enable-static flag, and support the `static' and
10619
# `disable-static' LT_INIT options.
10620
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
10621
m4_define([_LT_ENABLE_STATIC],
10622
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
10623
AC_ARG_ENABLE([static],
10624
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
10625
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
10626
[p=${PACKAGE-default}
10628
yes) enable_static=yes ;;
10629
no) enable_static=no ;;
10632
# Look at the argument we got. We use all the common list separators.
10633
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10634
for pkg in $enableval; do
10636
if test "X$pkg" = "X$p"; then
10643
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
10645
_LT_DECL([build_old_libs], [enable_static], [0],
10646
[Whether or not to build static libraries])
10647
])# _LT_ENABLE_STATIC
10649
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
10650
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
10653
AC_DEFUN([AC_ENABLE_STATIC],
10654
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
10657
AC_DEFUN([AC_DISABLE_STATIC],
10658
[_LT_SET_OPTION([LT_INIT], [disable-static])
10661
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
10662
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
10664
dnl aclocal-1.4 backwards compatibility:
10665
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
10666
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
10670
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
10671
# ----------------------------------
10672
# implement the --enable-fast-install flag, and support the `fast-install'
10673
# and `disable-fast-install' LT_INIT options.
10674
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
10675
m4_define([_LT_ENABLE_FAST_INSTALL],
10676
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
10677
AC_ARG_ENABLE([fast-install],
10678
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
10679
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
10680
[p=${PACKAGE-default}
10682
yes) enable_fast_install=yes ;;
10683
no) enable_fast_install=no ;;
10685
enable_fast_install=no
10686
# Look at the argument we got. We use all the common list separators.
10687
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10688
for pkg in $enableval; do
10690
if test "X$pkg" = "X$p"; then
10691
enable_fast_install=yes
10697
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
10699
_LT_DECL([fast_install], [enable_fast_install], [0],
10700
[Whether or not to optimize for fast installation])dnl
10701
])# _LT_ENABLE_FAST_INSTALL
10703
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
10704
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
10707
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
10708
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
10709
AC_DIAGNOSE([obsolete],
10710
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
10711
the `fast-install' option into LT_INIT's first parameter.])
10714
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
10715
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
10716
AC_DIAGNOSE([obsolete],
10717
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
10718
the `disable-fast-install' option into LT_INIT's first parameter.])
10721
dnl aclocal-1.4 backwards compatibility:
10722
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
10723
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
10726
# _LT_WITH_PIC([MODE])
10727
# --------------------
10728
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
10730
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
10731
m4_define([_LT_WITH_PIC],
10732
[AC_ARG_WITH([pic],
10733
[AS_HELP_STRING([--with-pic],
10734
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
10735
[pic_mode="$withval"],
10736
[pic_mode=default])
10738
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
10740
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
10743
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
10744
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
10747
AU_DEFUN([AC_LIBTOOL_PICMODE],
10748
[_LT_SET_OPTION([LT_INIT], [pic-only])
10749
AC_DIAGNOSE([obsolete],
10750
[$0: Remove this warning and the call to _LT_SET_OPTION when you
10751
put the `pic-only' option into LT_INIT's first parameter.])
10754
dnl aclocal-1.4 backwards compatibility:
10755
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
10758
m4_define([_LTDL_MODE], [])
10759
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
10760
[m4_define([_LTDL_MODE], [nonrecursive])])
10761
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
10762
[m4_define([_LTDL_MODE], [recursive])])
10763
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
10764
[m4_define([_LTDL_MODE], [subproject])])
10766
m4_define([_LTDL_TYPE], [])
10767
LT_OPTION_DEFINE([LTDL_INIT], [installable],
10768
[m4_define([_LTDL_TYPE], [installable])])
10769
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
10770
[m4_define([_LTDL_TYPE], [convenience])])
10772
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
10774
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
10775
# Written by Gary V. Vaughan, 2004
10777
# This file is free software; the Free Software Foundation gives
10778
# unlimited permission to copy and/or distribute it, with or without
10779
# modifications, as long as this notice is preserved.
10781
# serial 6 ltsugar.m4
10783
# This is to help aclocal find these macros, as it can't see m4_define.
10784
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
10787
# lt_join(SEP, ARG1, [ARG2...])
10788
# -----------------------------
10789
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
10790
# associated separator.
10791
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
10792
# versions in m4sugar had bugs.
10793
m4_define([lt_join],
10794
[m4_if([$#], [1], [],
10796
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
10797
m4_define([_lt_join],
10798
[m4_if([$#$2], [2], [],
10799
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
10805
# Manipulate m4 lists.
10806
# These macros are necessary as long as will still need to support
10807
# Autoconf-2.59 which quotes differently.
10808
m4_define([lt_car], [[$1]])
10809
m4_define([lt_cdr],
10810
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
10812
[m4_dquote(m4_shift($@))])])
10813
m4_define([lt_unquote], $1)
10816
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
10817
# ------------------------------------------
10818
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
10819
# Note that neither SEPARATOR nor STRING are expanded; they are appended
10820
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
10821
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
10822
# than defined and empty).
10824
# This macro is needed until we can rely on Autoconf 2.62, since earlier
10825
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
10826
m4_define([lt_append],
10828
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
10832
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
10833
# ----------------------------------------------------------
10834
# Produce a SEP delimited list of all paired combinations of elements of
10835
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
10836
# has the form PREFIXmINFIXSUFFIXn.
10837
# Needed until we can rely on m4_combine added in Autoconf 2.62.
10838
m4_define([lt_combine],
10839
[m4_if(m4_eval([$# > 3]), [1],
10840
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
10841
[[m4_foreach([_Lt_prefix], [$2],
10842
[m4_foreach([_Lt_suffix],
10843
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
10844
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
10847
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
10848
# -----------------------------------------------------------------------
10849
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
10850
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
10851
m4_define([lt_if_append_uniq],
10853
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
10854
[lt_append([$1], [$2], [$3])$4],
10856
[lt_append([$1], [$2], [$3])$4])])
10859
# lt_dict_add(DICT, KEY, VALUE)
10860
# -----------------------------
10861
m4_define([lt_dict_add],
10862
[m4_define([$1($2)], [$3])])
10865
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
10866
# --------------------------------------------
10867
m4_define([lt_dict_add_subkey],
10868
[m4_define([$1($2:$3)], [$4])])
10871
# lt_dict_fetch(DICT, KEY, [SUBKEY])
10872
# ----------------------------------
10873
m4_define([lt_dict_fetch],
10875
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
10876
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
10879
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
10880
# -----------------------------------------------------------------
10881
m4_define([lt_if_dict_fetch],
10882
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
10887
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
10888
# --------------------------------------------------------------
10889
m4_define([lt_dict_filter],
10890
[m4_if([$5], [], [],
10891
[lt_join(m4_quote(m4_default([$4], [[, ]])),
10892
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
10893
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
10896
# ltversion.m4 -- version numbers -*- Autoconf -*-
10898
# Copyright (C) 2004 Free Software Foundation, Inc.
10899
# Written by Scott James Remnant, 2004
10901
# This file is free software; the Free Software Foundation gives
10902
# unlimited permission to copy and/or distribute it, with or without
10903
# modifications, as long as this notice is preserved.
10905
# Generated from ltversion.in.
10907
# serial 3017 ltversion.m4
10908
# This file is part of GNU Libtool
10910
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
10911
m4_define([LT_PACKAGE_REVISION], [1.3017])
10913
AC_DEFUN([LTVERSION_VERSION],
10914
[macro_version='2.2.6b'
10915
macro_revision='1.3017'
10916
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10917
_LT_DECL(, macro_revision, 0)
10920
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
10922
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
10923
# Written by Scott James Remnant, 2004.
10925
# This file is free software; the Free Software Foundation gives
10926
# unlimited permission to copy and/or distribute it, with or without
10927
# modifications, as long as this notice is preserved.
10929
# serial 4 lt~obsolete.m4
10931
# These exist entirely to fool aclocal when bootstrapping libtool.
10933
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
10934
# which have later been changed to m4_define as they aren't part of the
10935
# exported API, or moved to Autoconf or Automake where they belong.
10937
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
10938
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
10939
# using a macro with the same name in our local m4/libtool.m4 it'll
10940
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
10941
# and doesn't know about Autoconf macros at all.)
10943
# So we provide this file, which has a silly filename so it's always
10944
# included after everything else. This provides aclocal with the
10945
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
10946
# because those macros already exist, or will be overwritten later.
10947
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
10949
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
10950
# Yes, that means every name once taken will need to remain here until
10951
# we give up compatibility with versions before 1.7, at which point
10952
# we need to keep only those names which we still refer to.
10954
# This is to help aclocal find these macros, as it can't see m4_define.
10955
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
10957
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
10958
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
10959
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
10960
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
10961
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
10962
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
10963
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
10964
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
10965
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
10966
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
10967
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
10968
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
10969
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
10970
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
10971
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
10972
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
10973
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
10974
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
10975
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
10976
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
10977
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
10978
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
10979
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
10980
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
10981
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
10982
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
10983
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
10984
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
10985
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
10986
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
10987
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
10988
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
10989
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
10990
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
10991
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
10992
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
10993
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
10994
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
10995
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
10996
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
10997
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
10998
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
10999
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
11000
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
11001
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
11002
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
11003
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
11004
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
11005
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
11006
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
11007
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
11008
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
11009
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
11010
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
11011
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9394
11013
# nls.m4 serial 3 (gettext-0.15)
9395
11014
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
9396
11015
dnl This file is free software; the Free Software Foundation