1029
# _LT_SYS_MODULE_PATH_AIX
1030
# -----------------------
1134
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1135
# ----------------------------------
1031
1136
# Links a minimal program and checks the executable
1032
1137
# for the system default hardcoded library path. In most cases,
1033
1138
# this is /usr/lib:/lib, but when the MPI compilers are used
1034
1139
# the location of the communication and MPI libs are included too.
1035
1140
# If we don't find anything, use the default library path according
1036
1141
# to the aix ld manual.
1142
# Store the results from the different compilers for each TAGNAME.
1143
# Allow to override them for all tags through lt_cv_aix_libpath.
1037
1144
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1038
1145
[m4_require([_LT_DECL_SED])dnl
1039
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1040
lt_aix_libpath_sed='
1041
/Import File Strings/,/^$/ {
1047
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1048
# Check for a 64-bit object if we didn't find anything.
1049
if test -z "$aix_libpath"; then
1050
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1052
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1146
if test "${lt_cv_aix_libpath+set}" = set; then
1147
aix_libpath=$lt_cv_aix_libpath
1149
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1150
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1151
lt_aix_libpath_sed='[
1152
/Import File Strings/,/^$/ {
1154
s/^0 *\([^ ]*\) *$/\1/
1158
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1159
# Check for a 64-bit object if we didn't find anything.
1160
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1161
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1163
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1164
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1167
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1053
1169
])# _LT_SYS_MODULE_PATH_AIX
1056
1172
# _LT_SHELL_INIT(ARG)
1057
1173
# -------------------
1058
1174
m4_define([_LT_SHELL_INIT],
1059
[ifdef([AC_DIVERSION_NOTICE],
1060
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1061
[AC_DIVERT_PUSH(NOTICE)])
1175
[m4_divert_text([M4SH-INIT], [$1
1176
])])# _LT_SHELL_INIT
1067
1180
# _LT_PROG_ECHO_BACKSLASH
1068
1181
# -----------------------
1069
# Add some code to the start of the generated configure script which
1070
# will find an echo command which doesn't interpret backslashes.
1182
# Find how we can fake an echo command that does not interpret backslash.
1183
# In particular, with Autoconf 2.60 or later we add some code to the start
1184
# of the generated configure script which will find a shell with a builtin
1185
# printf (which we can use as an echo command).
1071
1186
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1073
# Check that we are running under the correct shell.
1074
SHELL=${CONFIG_SHELL-/bin/sh}
1078
# Remove one level of quotation (which was required for Make).
1079
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1187
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1188
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1189
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1191
AC_MSG_CHECKING([how to print strings])
1192
# Test print first, because it will be a builtin if present.
1193
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1194
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1196
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1199
# Use this function as a fallback that always works.
1200
func_fallback_echo ()
1202
eval 'cat <<_LTECHO_EOF
1206
ECHO='func_fallback_echo'
1209
# func_echo_all arg...
1210
# Invoke $ECHO with all args, space-separated.
1217
printf*) AC_MSG_RESULT([printf]) ;;
1218
print*) AC_MSG_RESULT([print -r]) ;;
1219
*) AC_MSG_RESULT([cat]) ;;
1083
ECHO=${lt_ECHO-echo}
1084
if test "X[$]1" = X--no-reexec; then
1085
# Discard the --no-reexec flag, and continue.
1087
elif test "X[$]1" = X--fallback-echo; then
1088
# Avoid inline document here, it may be left over
1090
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1091
# Yippee, $ECHO works!
1094
# Restart under the correct shell.
1095
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1098
if test "X[$]1" = X--fallback-echo; then
1099
# used as fallback echo
1107
# The HP-UX ksh and POSIX shell print the target directory to stdout
1109
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1111
if test -z "$lt_ECHO"; then
1112
if test "X${echo_test_string+set}" != Xset; then
1113
# find a string as large as possible, as long as the shell can cope with it
1114
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1115
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1116
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1117
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1124
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1125
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1126
test "X$echo_testing_string" = "X$echo_test_string"; then
1129
# The Solaris, AIX, and Digital Unix default echo programs unquote
1130
# backslashes. This makes it impossible to quote backslashes using
1131
# echo "$something" | sed 's/\\/\\\\/g'
1133
# So, first we look for a working echo in the user's PATH.
1135
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1136
for dir in $PATH /usr/ucb; do
1138
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1139
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1140
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1141
test "X$echo_testing_string" = "X$echo_test_string"; then
1148
if test "X$ECHO" = Xecho; then
1149
# We didn't find a better echo, so look for alternatives.
1150
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1151
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1152
test "X$echo_testing_string" = "X$echo_test_string"; then
1153
# This shell has a builtin print -r that does the trick.
1155
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1156
test "X$CONFIG_SHELL" != X/bin/ksh; then
1157
# If we have ksh, try running configure again with it.
1158
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1159
export ORIGINAL_CONFIG_SHELL
1160
CONFIG_SHELL=/bin/ksh
1162
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1166
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1167
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1168
test "X$echo_testing_string" = "X$echo_test_string"; then
1169
# Cool, printf works
1171
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172
test "X$echo_testing_string" = 'X\t' &&
1173
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174
test "X$echo_testing_string" = "X$echo_test_string"; then
1175
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1177
SHELL="$CONFIG_SHELL"
1179
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1180
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1181
test "X$echo_testing_string" = 'X\t' &&
1182
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1183
test "X$echo_testing_string" = "X$echo_test_string"; then
1184
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1186
# maybe with a smaller string...
1189
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1190
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1197
if test "$prev" != 'sed 50q "[$]0"'; then
1198
echo_test_string=`eval $prev`
1199
export echo_test_string
1200
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1202
# Oops. We lost completely, so just stick with echo.
1211
# Copy echo and quote the copy suitably for passing to libtool from
1212
# the Makefile, instead of quoting the original, which is used later.
1214
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1215
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1222
m4_ifdef([_AS_DETECT_SUGGESTED],
1223
[_AS_DETECT_SUGGESTED([
1224
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1225
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1226
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1227
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1228
PATH=/empty FPATH=/empty; export PATH FPATH
1229
test "X`printf %s $ECHO`" = "X$ECHO" \
1230
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1220
1232
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1221
_LT_DECL([], [ECHO], [1],
1222
[An echo program that does not interpret backslashes])
1233
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1223
1234
])# _LT_PROG_ECHO_BACKSLASH
1239
AC_DEFUN([_LT_WITH_SYSROOT],
1240
[AC_MSG_CHECKING([for sysroot])
1241
AC_ARG_WITH([sysroot],
1242
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1243
(or the compiler's sysroot if not specified).],
1244
[], [with_sysroot=no])
1246
dnl lt_sysroot will always be passed unquoted. We quote it here
1247
dnl in case the user passed a directory name.
1249
case ${with_sysroot} in #(
1251
if test "$GCC" = yes; then
1252
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1256
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1261
AC_MSG_RESULT([${with_sysroot}])
1262
AC_MSG_ERROR([The sysroot must be an absolute path.])
1266
AC_MSG_RESULT([${lt_sysroot:-no}])
1267
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1268
[dependent libraries, and in which our libraries should be installed.])])
1226
1270
# _LT_ENABLE_LOCK
1227
1271
# ---------------
1228
1272
m4_defun([_LT_ENABLE_LOCK],
2244
2378
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2245
2379
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2246
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2381
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2248
2383
mingw* | cegcc*)
2249
2384
# MinGW DLLs use traditional 'lib' prefix
2250
2385
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2252
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2253
# It is most probably a Windows format PATH printed by
2254
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2255
# path with ; separators, and with drive letters. We can handle the
2256
# drive letters (cygwin fileutils understands them), so leave them,
2257
# especially as we might pass files found there to a mingw objdump,
2258
# which wouldn't understand a cygwinified path. Ahh.
2259
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2261
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2265
2388
# pw32 DLLs use 'pw' prefix rather than 'lib'
2266
2389
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2392
dynamic_linker='Win32 ld.exe'
2397
libname_spec='$name'
2398
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2399
library_names_spec='${libname}.dll.lib'
2403
sys_lib_search_path_spec=
2409
# Let DOS variable expansion print the short 8.3 style file name.
2410
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2411
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2414
# Convert to MSYS style.
2415
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2418
# Convert to unix form, then to dos form, then back to unix form
2419
# but this time dos style (no spaces!) so that the unix form looks
2420
# like /cygdrive/c/PROGRA~1:/cygdr...
2421
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2422
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2423
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2426
sys_lib_search_path_spec="$LIB"
2427
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2428
# It is most probably a Windows format PATH.
2429
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2431
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2433
# FIXME: find the short name or the path components, as spaces are
2434
# common. (e.g. "Program Files" -> "PROGRA~1")
2438
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2439
postinstall_cmds='base_file=`basename \${file}`~
2440
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2441
dldir=$destdir/`dirname \$dlpath`~
2442
test -d \$dldir || mkdir -p \$dldir~
2443
$install_prog $dir/$dlname \$dldir/$dlname'
2444
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2445
dlpath=$dir/\$dldll~
2447
shlibpath_overrides_runpath=yes
2448
dynamic_linker='Win32 link.exe'
2452
# Assume MSVC wrapper
2272
2453
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2454
dynamic_linker='Win32 ld.exe'
2275
dynamic_linker='Win32 ld.exe'
2276
2457
# FIXME: first we should search . and the directory the executable is in
2277
2458
shlibpath_var=PATH
3275
3503
dnl AC_DEFUN([AM_PROG_NM], [])
3276
3504
dnl AC_DEFUN([AC_PROG_NM], [])
3506
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3507
# --------------------------------
3508
# how to determine the name of the shared library
3509
# associated with a specific link library.
3510
# -- PORTME fill in with the dynamic library characteristics
3511
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3512
[m4_require([_LT_DECL_EGREP])
3513
m4_require([_LT_DECL_OBJDUMP])
3514
m4_require([_LT_DECL_DLLTOOL])
3515
AC_CACHE_CHECK([how to associate runtime and link libraries],
3516
lt_cv_sharedlib_from_linklib_cmd,
3517
[lt_cv_sharedlib_from_linklib_cmd='unknown'
3520
cygwin* | mingw* | pw32* | cegcc*)
3521
# two different shell functions defined in ltmain.sh
3522
# decide which to use based on capabilities of $DLLTOOL
3523
case `$DLLTOOL --help 2>&1` in
3524
*--identify-strict*)
3525
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3528
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3533
# fallback: assume linklib IS sharedlib
3534
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3538
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3539
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3541
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3542
[Command to associate shared and link libraries])
3543
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3546
# _LT_PATH_MANIFEST_TOOL
3547
# ----------------------
3548
# locate the manifest tool
3549
m4_defun([_LT_PATH_MANIFEST_TOOL],
3550
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3551
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3552
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3553
[lt_cv_path_mainfest_tool=no
3554
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3555
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3556
cat conftest.err >&AS_MESSAGE_LOG_FD
3557
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3558
lt_cv_path_mainfest_tool=yes
3561
if test "x$lt_cv_path_mainfest_tool" != xyes; then
3564
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3565
])# _LT_PATH_MANIFEST_TOOL
4712
5136
# Microsoft Visual C++.
4713
5137
# hardcode_libdir_flag_spec is actually meaningless, as there is
4714
5138
# no search path for DLLs.
4715
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4716
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4717
# Tell ltmain to make .lib files, not .a files.
4719
# Tell ltmain to make .dll files, not .so files.
4721
# FIXME: Setting linknames here is a bad hack.
4722
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4723
# The linker will automatically build a .lib file if we build a DLL.
4724
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4725
# FIXME: Should let the user specify the lib program.
4726
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4727
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4728
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5139
case $cc_basename in
5142
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5143
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5144
_LT_TAGVAR(always_export_symbols, $1)=yes
5145
_LT_TAGVAR(file_list_spec, $1)='@'
5146
# Tell ltmain to make .lib files, not .a files.
5148
# Tell ltmain to make .dll files, not .so files.
5150
# FIXME: Setting linknames here is a bad hack.
5151
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5152
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5153
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5155
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5157
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5159
# The linker will not automatically build a static lib if we build a DLL.
5160
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5161
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5162
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5163
_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'
5165
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5166
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5167
lt_tool_outputfile="@TOOL_OUTPUT@"~
5168
case $lt_outputfile in
5171
lt_outputfile="$lt_outputfile.exe"
5172
lt_tool_outputfile="$lt_tool_outputfile.exe"
5175
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5176
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5177
$RM "$lt_outputfile.manifest";
5181
# Assume MSVC wrapper
5182
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5183
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5184
# Tell ltmain to make .lib files, not .a files.
5186
# Tell ltmain to make .dll files, not .so files.
5188
# FIXME: Setting linknames here is a bad hack.
5189
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5190
# The linker will automatically build a .lib file if we build a DLL.
5191
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5192
# FIXME: Should let the user specify the lib program.
5193
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5194
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4731
5199
darwin* | rhapsody*)
4855
5325
irix5* | irix6* | nonstopux*)
4856
5326
if test "$GCC" = yes; then
4857
_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'
5327
_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'
4858
5328
# Try to use the -exported_symbol ld option, if it does not
4859
5329
# work, assume that -exports_file does not work either and
4860
5330
# implicitly export all symbols.
4861
save_LDFLAGS="$LDFLAGS"
4862
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4863
AC_LINK_IFELSE(int foo(void) {},
4864
_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'
4866
LDFLAGS="$save_LDFLAGS"
5331
# This should be the same for all languages, so no per-tag cache variable.
5332
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5333
[lt_cv_irix_exported_symbol],
5334
[save_LDFLAGS="$LDFLAGS"
5335
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5338
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5339
[C++], [[int foo (void) { return 0; }]],
5346
[lt_cv_irix_exported_symbol=yes],
5347
[lt_cv_irix_exported_symbol=no])
5348
LDFLAGS="$save_LDFLAGS"])
5349
if test "$lt_cv_irix_exported_symbol" = yes; then
5350
_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'
4868
_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'
4869
_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'
5353
_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'
5354
_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'
4871
5356
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4872
5357
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5145
5630
# Test whether the compiler implicitly links with -lc since on some
5146
5631
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5147
5632
# to ld, don't add -lc before -lgcc.
5148
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5150
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5633
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5634
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5636
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5152
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5155
libobjs=conftest.$ac_objext
5157
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5158
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5164
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5165
_LT_TAGVAR(allow_undefined_flag, $1)=
5166
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5168
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5170
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5172
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5174
cat conftest.err 1>&5
5177
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5638
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5641
libobjs=conftest.$ac_objext
5643
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5644
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5650
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5651
_LT_TAGVAR(allow_undefined_flag, $1)=
5652
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5654
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5656
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5658
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5660
cat conftest.err 1>&5
5664
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5654
6131
cygwin* | mingw* | pw32* | cegcc*)
5655
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5656
# as there is no search path for DLLs.
5657
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5658
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5659
_LT_TAGVAR(always_export_symbols, $1)=no
5660
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6132
case $GXX,$cc_basename in
6135
# hardcode_libdir_flag_spec is actually meaningless, as there is
6136
# no search path for DLLs.
6137
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6138
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6139
_LT_TAGVAR(always_export_symbols, $1)=yes
6140
_LT_TAGVAR(file_list_spec, $1)='@'
6141
# Tell ltmain to make .lib files, not .a files.
6143
# Tell ltmain to make .dll files, not .so files.
6145
# FIXME: Setting linknames here is a bad hack.
6146
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6147
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6148
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6150
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6152
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6154
# The linker will not automatically build a static lib if we build a DLL.
6155
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6156
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6158
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6159
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6160
lt_tool_outputfile="@TOOL_OUTPUT@"~
6161
case $lt_outputfile in
6164
lt_outputfile="$lt_outputfile.exe"
6165
lt_tool_outputfile="$lt_tool_outputfile.exe"
6168
func_to_tool_file "$lt_outputfile"~
6169
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6170
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6171
$RM "$lt_outputfile.manifest";
6176
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6177
# as there is no search path for DLLs.
6178
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6179
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6180
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6181
_LT_TAGVAR(always_export_symbols, $1)=no
6182
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5662
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5663
_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'
5664
# If the export-symbols file already is a .def file (1st line
5665
# is EXPORTS), use it as is; otherwise, prepend...
5666
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5667
cp $export_symbols $output_objdir/$soname.def;
5669
echo EXPORTS > $output_objdir/$soname.def;
5670
cat $export_symbols >> $output_objdir/$soname.def;
5672
$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'
5674
_LT_TAGVAR(ld_shlibs, $1)=no
6184
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6185
_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'
6186
# If the export-symbols file already is a .def file (1st line
6187
# is EXPORTS), use it as is; otherwise, prepend...
6188
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6189
cp $export_symbols $output_objdir/$soname.def;
6191
echo EXPORTS > $output_objdir/$soname.def;
6192
cat $export_symbols >> $output_objdir/$soname.def;
6194
$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'
6196
_LT_TAGVAR(ld_shlibs, $1)=no
5677
6201
darwin* | rhapsody*)
5678
6202
_LT_DARWIN_LINKER_FEATURES($1)
7174
7822
])# _LT_CHECK_SHELL_FEATURES
7177
# _LT_PROG_XSI_SHELLFNS
7178
# ---------------------
7179
# Bourne and XSI compatible variants of some useful shell functions.
7180
m4_defun([_LT_PROG_XSI_SHELLFNS],
7183
cat << \_LT_EOF >> "$cfgfile"
7185
# func_dirname file append nondir_replacement
7186
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7187
# otherwise set result to NONDIR_REPLACEMENT.
7191
*/*) func_dirname_result="${1%/*}${2}" ;;
7192
* ) func_dirname_result="${3}" ;;
7196
# func_basename file
7199
func_basename_result="${1##*/}"
7202
# func_dirname_and_basename file append nondir_replacement
7203
# perform func_basename and func_dirname in a single function
7205
# dirname: Compute the dirname of FILE. If nonempty,
7206
# add APPEND to the result, otherwise set result
7207
# to NONDIR_REPLACEMENT.
7208
# value returned in "$func_dirname_result"
7209
# basename: Compute filename of FILE.
7210
# value retuned in "$func_basename_result"
7211
# Implementation must be kept synchronized with func_dirname
7212
# and func_basename. For efficiency, we do not delegate to
7213
# those functions but instead duplicate the functionality here.
7214
func_dirname_and_basename ()
7217
*/*) func_dirname_result="${1%/*}${2}" ;;
7218
* ) func_dirname_result="${3}" ;;
7220
func_basename_result="${1##*/}"
7223
# func_stripname prefix suffix name
7224
# strip PREFIX and SUFFIX off of NAME.
7225
# PREFIX and SUFFIX must not contain globbing or regex special
7226
# characters, hashes, percent signs, but SUFFIX may contain a leading
7227
# dot (in which case that matches only a dot).
7230
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7231
# positional parameters, so assign one to ordinary parameter first.
7232
func_stripname_result=${3}
7233
func_stripname_result=${func_stripname_result#"${1}"}
7234
func_stripname_result=${func_stripname_result%"${2}"}
7240
func_opt_split_opt=${1%%=*}
7241
func_opt_split_arg=${1#*=}
7248
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7249
*) func_lo2o_result=${1} ;;
7253
# func_xform libobj-or-source
7256
func_xform_result=${1%.*}.lo
7259
# func_arith arithmetic-term...
7262
func_arith_result=$(( $[*] ))
7266
# STRING may not start with a hyphen.
7269
func_len_result=${#1}
7274
*) # Bourne compatible functions.
7275
cat << \_LT_EOF >> "$cfgfile"
7277
# func_dirname file append nondir_replacement
7278
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7279
# otherwise set result to NONDIR_REPLACEMENT.
7282
# Extract subdirectory from the argument.
7283
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7284
if test "X$func_dirname_result" = "X${1}"; then
7285
func_dirname_result="${3}"
7287
func_dirname_result="$func_dirname_result${2}"
7291
# func_basename file
7294
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7297
dnl func_dirname_and_basename
7298
dnl A portable version of this function is already defined in general.m4sh
7299
dnl so there is no need for it here.
7301
# func_stripname prefix suffix name
7302
# strip PREFIX and SUFFIX off of NAME.
7303
# PREFIX and SUFFIX must not contain globbing or regex special
7304
# characters, hashes, percent signs, but SUFFIX may contain a leading
7305
# dot (in which case that matches only a dot).
7306
# func_strip_suffix prefix name
7310
.*) func_stripname_result=`$ECHO "X${3}" \
7311
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7312
*) func_stripname_result=`$ECHO "X${3}" \
7313
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7318
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7319
my_sed_long_arg='1s/^-[[^=]]*=//'
7324
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7325
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7331
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7334
# func_xform libobj-or-source
7337
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7340
# func_arith arithmetic-term...
7343
func_arith_result=`expr "$[@]"`
7347
# STRING may not start with a hyphen.
7350
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7356
case $lt_shell_append in
7358
cat << \_LT_EOF >> "$cfgfile"
7360
# func_append var value
7361
# Append VALUE to the end of shell variable VAR.
7369
cat << \_LT_EOF >> "$cfgfile"
7371
# func_append var value
7372
# Append VALUE to the end of shell variable VAR.
7375
eval "$[1]=\$$[1]\$[2]"
7825
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7826
# ------------------------------------------------------
7827
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7828
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7829
m4_defun([_LT_PROG_FUNCTION_REPLACE],
7831
sed -e '/^$1 ()$/,/^} # $1 /c\
7834
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7835
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7836
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7837
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7838
test 0 -eq $? || _lt_function_replace_fail=:
7842
# _LT_PROG_REPLACE_SHELLFNS
7843
# -------------------------
7844
# Replace existing portable implementations of several shell functions with
7845
# equivalent extended shell implementations where those features are available..
7846
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7847
[if test x"$xsi_shell" = xyes; then
7848
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7850
*/*) func_dirname_result="${1%/*}${2}" ;;
7851
* ) func_dirname_result="${3}" ;;
7854
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7855
func_basename_result="${1##*/}"])
7857
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7859
*/*) func_dirname_result="${1%/*}${2}" ;;
7860
* ) func_dirname_result="${3}" ;;
7862
func_basename_result="${1##*/}"])
7864
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7865
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7866
# positional parameters, so assign one to ordinary parameter first.
7867
func_stripname_result=${3}
7868
func_stripname_result=${func_stripname_result#"${1}"}
7869
func_stripname_result=${func_stripname_result%"${2}"}])
7871
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7872
func_split_long_opt_name=${1%%=*}
7873
func_split_long_opt_arg=${1#*=}])
7875
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7876
func_split_short_opt_arg=${1#??}
7877
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7879
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7881
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7882
*) func_lo2o_result=${1} ;;
7885
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7887
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7889
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7892
if test x"$lt_shell_append" = xyes; then
7893
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7895
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7896
func_quote_for_eval "${2}"
7897
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7898
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7900
# Save a `func_append' function call where possible by direct use of '+='
7901
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7902
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7903
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7904
test 0 -eq $? || _lt_function_replace_fail=:
7906
# Save a `func_append' function call even when '+=' is not available
7907
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7908
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7909
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7910
test 0 -eq $? || _lt_function_replace_fail=:
7913
if test x"$_lt_function_replace_fail" = x":"; then
7914
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7918
# _LT_PATH_CONVERSION_FUNCTIONS
7919
# -----------------------------
7920
# Determine which file name conversion functions should be used by
7921
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7922
# for certain cross-compile configurations and native mingw.
7923
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7924
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7925
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7926
AC_MSG_CHECKING([how to convert $build file names to $host format])
7927
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7931
*-*-mingw* ) # actually msys
7932
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7935
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7937
* ) # otherwise, assume *nix
7938
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7944
*-*-mingw* ) # actually msys
7945
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7948
lt_cv_to_host_file_cmd=func_convert_file_noop
7950
* ) # otherwise, assume *nix
7951
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7955
* ) # unhandled hosts (and "normal" native builds)
7956
lt_cv_to_host_file_cmd=func_convert_file_noop
7960
to_host_file_cmd=$lt_cv_to_host_file_cmd
7961
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7962
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7963
[0], [convert $build file names to $host format])dnl
7965
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7966
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7967
[#assume ordinary cross tools, or native build.
7968
lt_cv_to_tool_file_cmd=func_convert_file_noop
7972
*-*-mingw* ) # actually msys
7973
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7979
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7980
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7981
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7982
[0], [convert $build files to toolchain format])dnl
7983
])# _LT_PATH_CONVERSION_FUNCTIONS
7383
7985
# Helper functions for option handling. -*- Autoconf -*-
7385
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7987
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7386
7989
# Written by Gary V. Vaughan, 2004
7388
7991
# This file is free software; the Free Software Foundation gives
7389
7992
# unlimited permission to copy and/or distribute it, with or without
7390
7993
# modifications, as long as this notice is preserved.
7392
# serial 6 ltoptions.m4
7995
# serial 7 ltoptions.m4
7394
7997
# This is to help aclocal find these macros, as it can't see m4_define.
7395
7998
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])