2051
# _LT_SYS_MODULE_PATH_AIX
2052
# -----------------------
2180
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
2181
# ----------------------------------
2053
2182
# Links a minimal program and checks the executable
2054
2183
# for the system default hardcoded library path. In most cases,
2055
2184
# this is /usr/lib:/lib, but when the MPI compilers are used
2056
2185
# the location of the communication and MPI libs are included too.
2057
2186
# If we don't find anything, use the default library path according
2058
2187
# to the aix ld manual.
2188
# Store the results from the different compilers for each TAGNAME.
2189
# Allow to override them for all tags through lt_cv_aix_libpath.
2059
2190
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2060
2191
[m4_require([_LT_DECL_SED])dnl
2061
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2062
lt_aix_libpath_sed='
2063
/Import File Strings/,/^$/ {
2069
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2070
# Check for a 64-bit object if we didn't find anything.
2071
if test -z "$aix_libpath"; then
2072
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2074
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2192
if test "${lt_cv_aix_libpath+set}" = set; then
2193
aix_libpath=$lt_cv_aix_libpath
2195
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
2196
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
2197
lt_aix_libpath_sed='[
2198
/Import File Strings/,/^$/ {
2200
s/^0 *\([^ ]*\) *$/\1/
2204
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2205
# Check for a 64-bit object if we didn't find anything.
2206
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2207
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2209
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2210
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
2213
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
2075
2215
])# _LT_SYS_MODULE_PATH_AIX
2078
2218
# _LT_SHELL_INIT(ARG)
2079
2219
# -------------------
2080
2220
m4_define([_LT_SHELL_INIT],
2081
[ifdef([AC_DIVERSION_NOTICE],
2082
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2083
[AC_DIVERT_PUSH(NOTICE)])
2221
[m4_divert_text([M4SH-INIT], [$1
2222
])])# _LT_SHELL_INIT
2089
2226
# _LT_PROG_ECHO_BACKSLASH
2090
2227
# -----------------------
2091
# Add some code to the start of the generated configure script which
2092
# will find an echo command which doesn't interpret backslashes.
2228
# Find how we can fake an echo command that does not interpret backslash.
2229
# In particular, with Autoconf 2.60 or later we add some code to the start
2230
# of the generated configure script which will find a shell with a builtin
2231
# printf (which we can use as an echo command).
2093
2232
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2095
# Check that we are running under the correct shell.
2096
SHELL=${CONFIG_SHELL-/bin/sh}
2100
# Remove one level of quotation (which was required for Make).
2101
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2233
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2234
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2235
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2237
AC_MSG_CHECKING([how to print strings])
2238
# Test print first, because it will be a builtin if present.
2239
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2240
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2242
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2245
# Use this function as a fallback that always works.
2246
func_fallback_echo ()
2248
eval 'cat <<_LTECHO_EOF
2252
ECHO='func_fallback_echo'
2255
# func_echo_all arg...
2256
# Invoke $ECHO with all args, space-separated.
2263
printf*) AC_MSG_RESULT([printf]) ;;
2264
print*) AC_MSG_RESULT([print -r]) ;;
2265
*) AC_MSG_RESULT([cat]) ;;
2105
ECHO=${lt_ECHO-echo}
2106
if test "X[$]1" = X--no-reexec; then
2107
# Discard the --no-reexec flag, and continue.
2109
elif test "X[$]1" = X--fallback-echo; then
2110
# Avoid inline document here, it may be left over
2112
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2113
# Yippee, $ECHO works!
2116
# Restart under the correct shell.
2117
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2120
if test "X[$]1" = X--fallback-echo; then
2121
# used as fallback echo
2129
# The HP-UX ksh and POSIX shell print the target directory to stdout
2131
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2133
if test -z "$lt_ECHO"; then
2134
if test "X${echo_test_string+set}" != Xset; then
2135
# find a string as large as possible, as long as the shell can cope with it
2136
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2137
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2138
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2139
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2146
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2147
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2148
test "X$echo_testing_string" = "X$echo_test_string"; then
2151
# The Solaris, AIX, and Digital Unix default echo programs unquote
2152
# backslashes. This makes it impossible to quote backslashes using
2153
# echo "$something" | sed 's/\\/\\\\/g'
2155
# So, first we look for a working echo in the user's PATH.
2157
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2158
for dir in $PATH /usr/ucb; do
2160
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2161
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2162
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2163
test "X$echo_testing_string" = "X$echo_test_string"; then
2170
if test "X$ECHO" = Xecho; then
2171
# We didn't find a better echo, so look for alternatives.
2172
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2173
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2174
test "X$echo_testing_string" = "X$echo_test_string"; then
2175
# This shell has a builtin print -r that does the trick.
2177
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2178
test "X$CONFIG_SHELL" != X/bin/ksh; then
2179
# If we have ksh, try running configure again with it.
2180
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2181
export ORIGINAL_CONFIG_SHELL
2182
CONFIG_SHELL=/bin/ksh
2184
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2188
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2189
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2190
test "X$echo_testing_string" = "X$echo_test_string"; then
2191
# Cool, printf works
2193
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2194
test "X$echo_testing_string" = 'X\t' &&
2195
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2196
test "X$echo_testing_string" = "X$echo_test_string"; then
2197
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2199
SHELL="$CONFIG_SHELL"
2201
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2202
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2203
test "X$echo_testing_string" = 'X\t' &&
2204
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2205
test "X$echo_testing_string" = "X$echo_test_string"; then
2206
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2208
# maybe with a smaller string...
2211
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2212
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2219
if test "$prev" != 'sed 50q "[$]0"'; then
2220
echo_test_string=`eval $prev`
2221
export echo_test_string
2222
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2224
# Oops. We lost completely, so just stick with echo.
2233
# Copy echo and quote the copy suitably for passing to libtool from
2234
# the Makefile, instead of quoting the original, which is used later.
2236
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2237
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2268
m4_ifdef([_AS_DETECT_SUGGESTED],
2269
[_AS_DETECT_SUGGESTED([
2270
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2271
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2272
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2273
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2274
PATH=/empty FPATH=/empty; export PATH FPATH
2275
test "X`printf %s $ECHO`" = "X$ECHO" \
2276
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2242
2278
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2243
_LT_DECL([], [ECHO], [1],
2244
[An echo program that does not interpret backslashes])
2279
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2245
2280
])# _LT_PROG_ECHO_BACKSLASH
2285
AC_DEFUN([_LT_WITH_SYSROOT],
2286
[AC_MSG_CHECKING([for sysroot])
2287
AC_ARG_WITH([sysroot],
2288
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
2289
(or the compiler's sysroot if not specified).],
2290
[], [with_sysroot=no])
2292
dnl lt_sysroot will always be passed unquoted. We quote it here
2293
dnl in case the user passed a directory name.
2295
case ${with_sysroot} in #(
2297
if test "$GCC" = yes; then
2298
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
2302
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
2307
AC_MSG_RESULT([${with_sysroot}])
2308
AC_MSG_ERROR([The sysroot must be an absolute path.])
2312
AC_MSG_RESULT([${lt_sysroot:-no}])
2313
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
2314
[dependent libraries, and in which our libraries should be installed.])])
2248
2316
# _LT_ENABLE_LOCK
2249
2317
# ---------------
2250
2318
m4_defun([_LT_ENABLE_LOCK],
3266
3424
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
3267
3425
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3268
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3427
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3270
3429
mingw* | cegcc*)
3271
3430
# MinGW DLLs use traditional 'lib' prefix
3272
3431
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3273
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3274
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3275
# It is most probably a Windows format PATH printed by
3276
# mingw gcc, but we are running on Cygwin. Gcc prints its search
3277
# path with ; separators, and with drive letters. We can handle the
3278
# drive letters (cygwin fileutils understands them), so leave them,
3279
# especially as we might pass files found there to a mingw objdump,
3280
# which wouldn't understand a cygwinified path. Ahh.
3281
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3283
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3287
3434
# pw32 DLLs use 'pw' prefix rather than 'lib'
3288
3435
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3438
dynamic_linker='Win32 ld.exe'
3443
libname_spec='$name'
3444
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3445
library_names_spec='${libname}.dll.lib'
3449
sys_lib_search_path_spec=
3455
# Let DOS variable expansion print the short 8.3 style file name.
3456
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3457
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3460
# Convert to MSYS style.
3461
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3464
# Convert to unix form, then to dos form, then back to unix form
3465
# but this time dos style (no spaces!) so that the unix form looks
3466
# like /cygdrive/c/PROGRA~1:/cygdr...
3467
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3468
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3469
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3472
sys_lib_search_path_spec="$LIB"
3473
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3474
# It is most probably a Windows format PATH.
3475
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3477
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3479
# FIXME: find the short name or the path components, as spaces are
3480
# common. (e.g. "Program Files" -> "PROGRA~1")
3484
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3485
postinstall_cmds='base_file=`basename \${file}`~
3486
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3487
dldir=$destdir/`dirname \$dlpath`~
3488
test -d \$dldir || mkdir -p \$dldir~
3489
$install_prog $dir/$dlname \$dldir/$dlname'
3490
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3491
dlpath=$dir/\$dldll~
3493
shlibpath_overrides_runpath=yes
3494
dynamic_linker='Win32 link.exe'
3498
# Assume MSVC wrapper
3294
3499
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3500
dynamic_linker='Win32 ld.exe'
3297
dynamic_linker='Win32 ld.exe'
3298
3503
# FIXME: first we should search . and the directory the executable is in
3299
3504
shlibpath_var=PATH
4285
4564
dnl AC_DEFUN([AM_PROG_NM], [])
4286
4565
dnl AC_DEFUN([AC_PROG_NM], [])
4567
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4568
# --------------------------------
4569
# how to determine the name of the shared library
4570
# associated with a specific link library.
4571
# -- PORTME fill in with the dynamic library characteristics
4572
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4573
[m4_require([_LT_DECL_EGREP])
4574
m4_require([_LT_DECL_OBJDUMP])
4575
m4_require([_LT_DECL_DLLTOOL])
4576
AC_CACHE_CHECK([how to associate runtime and link libraries],
4577
lt_cv_sharedlib_from_linklib_cmd,
4578
[lt_cv_sharedlib_from_linklib_cmd='unknown'
4581
cygwin* | mingw* | pw32* | cegcc*)
4582
# two different shell functions defined in ltmain.sh
4583
# decide which to use based on capabilities of $DLLTOOL
4584
case `$DLLTOOL --help 2>&1` in
4585
*--identify-strict*)
4586
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4589
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4594
# fallback: assume linklib IS sharedlib
4595
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4599
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4600
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4602
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4603
[Command to associate shared and link libraries])
4604
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4607
# _LT_PATH_MANIFEST_TOOL
4608
# ----------------------
4609
# locate the manifest tool
4610
m4_defun([_LT_PATH_MANIFEST_TOOL],
4611
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4612
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4613
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4614
[lt_cv_path_mainfest_tool=no
4615
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4616
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4617
cat conftest.err >&AS_MESSAGE_LOG_FD
4618
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4619
lt_cv_path_mainfest_tool=yes
4622
if test "x$lt_cv_path_mainfest_tool" != xyes; then
4625
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4626
])# _LT_PATH_MANIFEST_TOOL
5715
6197
# Microsoft Visual C++.
5716
6198
# hardcode_libdir_flag_spec is actually meaningless, as there is
5717
6199
# no search path for DLLs.
5718
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5719
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5720
# Tell ltmain to make .lib files, not .a files.
5722
# Tell ltmain to make .dll files, not .so files.
5724
# FIXME: Setting linknames here is a bad hack.
5725
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5726
# The linker will automatically build a .lib file if we build a DLL.
5727
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5728
# FIXME: Should let the user specify the lib program.
5729
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5730
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5731
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6200
case $cc_basename in
6203
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6204
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6205
_LT_TAGVAR(always_export_symbols, $1)=yes
6206
_LT_TAGVAR(file_list_spec, $1)='@'
6207
# Tell ltmain to make .lib files, not .a files.
6209
# Tell ltmain to make .dll files, not .so files.
6211
# FIXME: Setting linknames here is a bad hack.
6212
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6213
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6214
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6216
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6218
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6220
# The linker will not automatically build a static lib if we build a DLL.
6221
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6222
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6223
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6224
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6226
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6227
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6228
lt_tool_outputfile="@TOOL_OUTPUT@"~
6229
case $lt_outputfile in
6232
lt_outputfile="$lt_outputfile.exe"
6233
lt_tool_outputfile="$lt_tool_outputfile.exe"
6236
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6237
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6238
$RM "$lt_outputfile.manifest";
6242
# Assume MSVC wrapper
6243
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6244
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6245
# Tell ltmain to make .lib files, not .a files.
6247
# Tell ltmain to make .dll files, not .so files.
6249
# FIXME: Setting linknames here is a bad hack.
6250
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6251
# The linker will automatically build a .lib file if we build a DLL.
6252
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6253
# FIXME: Should let the user specify the lib program.
6254
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6255
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5734
6260
darwin* | rhapsody*)
5858
6386
irix5* | irix6* | nonstopux*)
5859
6387
if test "$GCC" = yes; then
5860
_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'
6388
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5861
6389
# Try to use the -exported_symbol ld option, if it does not
5862
6390
# work, assume that -exports_file does not work either and
5863
6391
# implicitly export all symbols.
5864
save_LDFLAGS="$LDFLAGS"
5865
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5866
AC_LINK_IFELSE(int foo(void) {},
5867
_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'
5869
LDFLAGS="$save_LDFLAGS"
6392
# This should be the same for all languages, so no per-tag cache variable.
6393
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
6394
[lt_cv_irix_exported_symbol],
6395
[save_LDFLAGS="$LDFLAGS"
6396
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6399
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
6400
[C++], [[int foo (void) { return 0; }]],
6407
[lt_cv_irix_exported_symbol=yes],
6408
[lt_cv_irix_exported_symbol=no])
6409
LDFLAGS="$save_LDFLAGS"])
6410
if test "$lt_cv_irix_exported_symbol" = yes; then
6411
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5871
_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'
5872
_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'
6414
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6415
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5874
6417
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5875
6418
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6148
6691
# Test whether the compiler implicitly links with -lc since on some
6149
6692
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6150
6693
# to ld, don't add -lc before -lgcc.
6151
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6153
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6694
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6695
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6697
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6155
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6158
libobjs=conftest.$ac_objext
6160
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6161
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6167
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6168
_LT_TAGVAR(allow_undefined_flag, $1)=
6169
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6171
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6173
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6175
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6177
cat conftest.err 1>&5
6180
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6699
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6702
libobjs=conftest.$ac_objext
6704
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6705
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6711
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6712
_LT_TAGVAR(allow_undefined_flag, $1)=
6713
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6715
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6717
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6719
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6721
cat conftest.err 1>&5
6725
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6657
7192
cygwin* | mingw* | pw32* | cegcc*)
6658
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6659
# as there is no search path for DLLs.
6660
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6661
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6662
_LT_TAGVAR(always_export_symbols, $1)=no
6663
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7193
case $GXX,$cc_basename in
7196
# hardcode_libdir_flag_spec is actually meaningless, as there is
7197
# no search path for DLLs.
7198
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7199
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7200
_LT_TAGVAR(always_export_symbols, $1)=yes
7201
_LT_TAGVAR(file_list_spec, $1)='@'
7202
# Tell ltmain to make .lib files, not .a files.
7204
# Tell ltmain to make .dll files, not .so files.
7206
# FIXME: Setting linknames here is a bad hack.
7207
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
7208
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7209
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
7211
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7213
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7215
# The linker will not automatically build a static lib if we build a DLL.
7216
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7217
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7219
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7220
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7221
lt_tool_outputfile="@TOOL_OUTPUT@"~
7222
case $lt_outputfile in
7225
lt_outputfile="$lt_outputfile.exe"
7226
lt_tool_outputfile="$lt_tool_outputfile.exe"
7229
func_to_tool_file "$lt_outputfile"~
7230
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
7231
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7232
$RM "$lt_outputfile.manifest";
7237
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7238
# as there is no search path for DLLs.
7239
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7240
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7241
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7242
_LT_TAGVAR(always_export_symbols, $1)=no
7243
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6665
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6666
_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'
6667
# If the export-symbols file already is a .def file (1st line
6668
# is EXPORTS), use it as is; otherwise, prepend...
6669
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6670
cp $export_symbols $output_objdir/$soname.def;
6672
echo EXPORTS > $output_objdir/$soname.def;
6673
cat $export_symbols >> $output_objdir/$soname.def;
6675
$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'
6677
_LT_TAGVAR(ld_shlibs, $1)=no
7245
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7246
_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'
7247
# If the export-symbols file already is a .def file (1st line
7248
# is EXPORTS), use it as is; otherwise, prepend...
7249
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7250
cp $export_symbols $output_objdir/$soname.def;
7252
echo EXPORTS > $output_objdir/$soname.def;
7253
cat $export_symbols >> $output_objdir/$soname.def;
7255
$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'
7257
_LT_TAGVAR(ld_shlibs, $1)=no
6680
7262
darwin* | rhapsody*)
6681
7263
_LT_DARWIN_LINKER_FEATURES($1)
8177
8886
])# _LT_CHECK_SHELL_FEATURES
8180
# _LT_PROG_XSI_SHELLFNS
8181
# ---------------------
8182
# Bourne and XSI compatible variants of some useful shell functions.
8183
m4_defun([_LT_PROG_XSI_SHELLFNS],
8186
cat << \_LT_EOF >> "$cfgfile"
8188
# func_dirname file append nondir_replacement
8189
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8190
# otherwise set result to NONDIR_REPLACEMENT.
8194
*/*) func_dirname_result="${1%/*}${2}" ;;
8195
* ) func_dirname_result="${3}" ;;
8199
# func_basename file
8202
func_basename_result="${1##*/}"
8205
# func_dirname_and_basename file append nondir_replacement
8206
# perform func_basename and func_dirname in a single function
8208
# dirname: Compute the dirname of FILE. If nonempty,
8209
# add APPEND to the result, otherwise set result
8210
# to NONDIR_REPLACEMENT.
8211
# value returned in "$func_dirname_result"
8212
# basename: Compute filename of FILE.
8213
# value retuned in "$func_basename_result"
8214
# Implementation must be kept synchronized with func_dirname
8215
# and func_basename. For efficiency, we do not delegate to
8216
# those functions but instead duplicate the functionality here.
8217
func_dirname_and_basename ()
8220
*/*) func_dirname_result="${1%/*}${2}" ;;
8221
* ) func_dirname_result="${3}" ;;
8223
func_basename_result="${1##*/}"
8226
# func_stripname prefix suffix name
8227
# strip PREFIX and SUFFIX off of NAME.
8228
# PREFIX and SUFFIX must not contain globbing or regex special
8229
# characters, hashes, percent signs, but SUFFIX may contain a leading
8230
# dot (in which case that matches only a dot).
8233
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8234
# positional parameters, so assign one to ordinary parameter first.
8235
func_stripname_result=${3}
8236
func_stripname_result=${func_stripname_result#"${1}"}
8237
func_stripname_result=${func_stripname_result%"${2}"}
8243
func_opt_split_opt=${1%%=*}
8244
func_opt_split_arg=${1#*=}
8251
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8252
*) func_lo2o_result=${1} ;;
8256
# func_xform libobj-or-source
8259
func_xform_result=${1%.*}.lo
8262
# func_arith arithmetic-term...
8265
func_arith_result=$(( $[*] ))
8269
# STRING may not start with a hyphen.
8272
func_len_result=${#1}
8277
*) # Bourne compatible functions.
8278
cat << \_LT_EOF >> "$cfgfile"
8280
# func_dirname file append nondir_replacement
8281
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8282
# otherwise set result to NONDIR_REPLACEMENT.
8285
# Extract subdirectory from the argument.
8286
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8287
if test "X$func_dirname_result" = "X${1}"; then
8288
func_dirname_result="${3}"
8290
func_dirname_result="$func_dirname_result${2}"
8294
# func_basename file
8297
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8300
dnl func_dirname_and_basename
8301
dnl A portable version of this function is already defined in general.m4sh
8302
dnl so there is no need for it here.
8304
# func_stripname prefix suffix name
8305
# strip PREFIX and SUFFIX off of NAME.
8306
# PREFIX and SUFFIX must not contain globbing or regex special
8307
# characters, hashes, percent signs, but SUFFIX may contain a leading
8308
# dot (in which case that matches only a dot).
8309
# func_strip_suffix prefix name
8313
.*) func_stripname_result=`$ECHO "X${3}" \
8314
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8315
*) func_stripname_result=`$ECHO "X${3}" \
8316
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8321
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8322
my_sed_long_arg='1s/^-[[^=]]*=//'
8327
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8328
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8334
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8337
# func_xform libobj-or-source
8340
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8343
# func_arith arithmetic-term...
8346
func_arith_result=`expr "$[@]"`
8350
# STRING may not start with a hyphen.
8353
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8359
case $lt_shell_append in
8361
cat << \_LT_EOF >> "$cfgfile"
8363
# func_append var value
8364
# Append VALUE to the end of shell variable VAR.
8372
cat << \_LT_EOF >> "$cfgfile"
8374
# func_append var value
8375
# Append VALUE to the end of shell variable VAR.
8378
eval "$[1]=\$$[1]\$[2]"
8889
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8890
# ------------------------------------------------------
8891
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8892
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8893
m4_defun([_LT_PROG_FUNCTION_REPLACE],
8895
sed -e '/^$1 ()$/,/^} # $1 /c\
8898
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8899
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8900
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8901
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8902
test 0 -eq $? || _lt_function_replace_fail=:
8906
# _LT_PROG_REPLACE_SHELLFNS
8907
# -------------------------
8908
# Replace existing portable implementations of several shell functions with
8909
# equivalent extended shell implementations where those features are available..
8910
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8911
[if test x"$xsi_shell" = xyes; then
8912
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8914
*/*) func_dirname_result="${1%/*}${2}" ;;
8915
* ) func_dirname_result="${3}" ;;
8918
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8919
func_basename_result="${1##*/}"])
8921
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8923
*/*) func_dirname_result="${1%/*}${2}" ;;
8924
* ) func_dirname_result="${3}" ;;
8926
func_basename_result="${1##*/}"])
8928
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8929
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8930
# positional parameters, so assign one to ordinary parameter first.
8931
func_stripname_result=${3}
8932
func_stripname_result=${func_stripname_result#"${1}"}
8933
func_stripname_result=${func_stripname_result%"${2}"}])
8935
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8936
func_split_long_opt_name=${1%%=*}
8937
func_split_long_opt_arg=${1#*=}])
8939
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8940
func_split_short_opt_arg=${1#??}
8941
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8943
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8945
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8946
*) func_lo2o_result=${1} ;;
8949
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8951
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8953
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8956
if test x"$lt_shell_append" = xyes; then
8957
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8959
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8960
func_quote_for_eval "${2}"
8961
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8962
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8964
# Save a `func_append' function call where possible by direct use of '+='
8965
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8966
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8967
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8968
test 0 -eq $? || _lt_function_replace_fail=:
8970
# Save a `func_append' function call even when '+=' is not available
8971
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8972
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8973
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8974
test 0 -eq $? || _lt_function_replace_fail=:
8977
if test x"$_lt_function_replace_fail" = x":"; then
8978
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8982
# _LT_PATH_CONVERSION_FUNCTIONS
8983
# -----------------------------
8984
# Determine which file name conversion functions should be used by
8985
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8986
# for certain cross-compile configurations and native mingw.
8987
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8988
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8989
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8990
AC_MSG_CHECKING([how to convert $build file names to $host format])
8991
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8995
*-*-mingw* ) # actually msys
8996
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8999
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9001
* ) # otherwise, assume *nix
9002
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9008
*-*-mingw* ) # actually msys
9009
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9012
lt_cv_to_host_file_cmd=func_convert_file_noop
9014
* ) # otherwise, assume *nix
9015
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9019
* ) # unhandled hosts (and "normal" native builds)
9020
lt_cv_to_host_file_cmd=func_convert_file_noop
9024
to_host_file_cmd=$lt_cv_to_host_file_cmd
9025
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
9026
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
9027
[0], [convert $build file names to $host format])dnl
9029
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
9030
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
9031
[#assume ordinary cross tools, or native build.
9032
lt_cv_to_tool_file_cmd=func_convert_file_noop
9036
*-*-mingw* ) # actually msys
9037
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9043
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9044
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
9045
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
9046
[0], [convert $build files to toolchain format])dnl
9047
])# _LT_PATH_CONVERSION_FUNCTIONS
8386
9049
# Helper functions for option handling. -*- Autoconf -*-
8388
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9051
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8389
9053
# Written by Gary V. Vaughan, 2004
8391
9055
# This file is free software; the Free Software Foundation gives
8392
9056
# unlimited permission to copy and/or distribute it, with or without
8393
9057
# modifications, as long as this notice is preserved.
8395
# serial 6 ltoptions.m4
9059
# serial 7 ltoptions.m4
8397
9061
# This is to help aclocal find these macros, as it can't see m4_define.
8398
9062
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])