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
3518
dnl AC_DEFUN([AM_PROG_NM], [])
3276
3519
dnl AC_DEFUN([AC_PROG_NM], [])
3521
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3522
# --------------------------------
3523
# how to determine the name of the shared library
3524
# associated with a specific link library.
3525
# -- PORTME fill in with the dynamic library characteristics
3526
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3527
[m4_require([_LT_DECL_EGREP])
3528
m4_require([_LT_DECL_OBJDUMP])
3529
m4_require([_LT_DECL_DLLTOOL])
3530
AC_CACHE_CHECK([how to associate runtime and link libraries],
3531
lt_cv_sharedlib_from_linklib_cmd,
3532
[lt_cv_sharedlib_from_linklib_cmd='unknown'
3535
cygwin* | mingw* | pw32* | cegcc*)
3536
# two different shell functions defined in ltmain.sh
3537
# decide which to use based on capabilities of $DLLTOOL
3538
case `$DLLTOOL --help 2>&1` in
3539
*--identify-strict*)
3540
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3543
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3548
# fallback: assume linklib IS sharedlib
3549
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3553
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3554
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3556
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3557
[Command to associate shared and link libraries])
3558
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3561
# _LT_PATH_MANIFEST_TOOL
3562
# ----------------------
3563
# locate the manifest tool
3564
m4_defun([_LT_PATH_MANIFEST_TOOL],
3565
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3566
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3567
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3568
[lt_cv_path_mainfest_tool=no
3569
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3570
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3571
cat conftest.err >&AS_MESSAGE_LOG_FD
3572
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3573
lt_cv_path_mainfest_tool=yes
3576
if test "x$lt_cv_path_mainfest_tool" != xyes; then
3579
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3580
])# _LT_PATH_MANIFEST_TOOL
4713
5151
# Microsoft Visual C++.
4714
5152
# hardcode_libdir_flag_spec is actually meaningless, as there is
4715
5153
# no search path for DLLs.
4716
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4717
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4718
# Tell ltmain to make .lib files, not .a files.
4720
# Tell ltmain to make .dll files, not .so files.
4722
# FIXME: Setting linknames here is a bad hack.
4723
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4724
# The linker will automatically build a .lib file if we build a DLL.
4725
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4726
# FIXME: Should let the user specify the lib program.
4727
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4728
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4729
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5154
case $cc_basename in
5157
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5158
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5159
_LT_TAGVAR(always_export_symbols, $1)=yes
5160
_LT_TAGVAR(file_list_spec, $1)='@'
5161
# Tell ltmain to make .lib files, not .a files.
5163
# Tell ltmain to make .dll files, not .so files.
5165
# FIXME: Setting linknames here is a bad hack.
5166
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5167
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5168
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5170
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5172
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5174
# The linker will not automatically build a static lib if we build a DLL.
5175
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5176
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5177
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5178
_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'
5180
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5181
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5182
lt_tool_outputfile="@TOOL_OUTPUT@"~
5183
case $lt_outputfile in
5186
lt_outputfile="$lt_outputfile.exe"
5187
lt_tool_outputfile="$lt_tool_outputfile.exe"
5190
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5191
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5192
$RM "$lt_outputfile.manifest";
5196
# Assume MSVC wrapper
5197
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5198
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5199
# Tell ltmain to make .lib files, not .a files.
5201
# Tell ltmain to make .dll files, not .so files.
5203
# FIXME: Setting linknames here is a bad hack.
5204
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5205
# The linker will automatically build a .lib file if we build a DLL.
5206
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5207
# FIXME: Should let the user specify the lib program.
5208
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5209
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4732
5214
darwin* | rhapsody*)
4856
5340
irix5* | irix6* | nonstopux*)
4857
5341
if test "$GCC" = yes; then
4858
_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'
5342
_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'
4859
5343
# Try to use the -exported_symbol ld option, if it does not
4860
5344
# work, assume that -exports_file does not work either and
4861
5345
# implicitly export all symbols.
4862
save_LDFLAGS="$LDFLAGS"
4863
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4864
AC_LINK_IFELSE(int foo(void) {},
4865
_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'
4867
LDFLAGS="$save_LDFLAGS"
5346
# This should be the same for all languages, so no per-tag cache variable.
5347
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5348
[lt_cv_irix_exported_symbol],
5349
[save_LDFLAGS="$LDFLAGS"
5350
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5353
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5354
[C++], [[int foo (void) { return 0; }]],
5361
[lt_cv_irix_exported_symbol=yes],
5362
[lt_cv_irix_exported_symbol=no])
5363
LDFLAGS="$save_LDFLAGS"])
5364
if test "$lt_cv_irix_exported_symbol" = yes; then
5365
_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'
4869
_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'
4870
_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'
5368
_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'
5369
_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'
4872
5371
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4873
5372
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5146
5645
# Test whether the compiler implicitly links with -lc since on some
5147
5646
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5148
5647
# to ld, don't add -lc before -lgcc.
5149
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5151
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5648
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5649
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5651
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5153
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5156
libobjs=conftest.$ac_objext
5158
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5159
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5165
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5166
_LT_TAGVAR(allow_undefined_flag, $1)=
5167
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5169
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5171
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5173
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5175
cat conftest.err 1>&5
5178
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5653
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5656
libobjs=conftest.$ac_objext
5658
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5659
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5665
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5666
_LT_TAGVAR(allow_undefined_flag, $1)=
5667
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5669
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5671
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5673
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5675
cat conftest.err 1>&5
5679
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5655
6146
cygwin* | mingw* | pw32* | cegcc*)
5656
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5657
# as there is no search path for DLLs.
5658
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5659
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5660
_LT_TAGVAR(always_export_symbols, $1)=no
5661
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6147
case $GXX,$cc_basename in
6150
# hardcode_libdir_flag_spec is actually meaningless, as there is
6151
# no search path for DLLs.
6152
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6153
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6154
_LT_TAGVAR(always_export_symbols, $1)=yes
6155
_LT_TAGVAR(file_list_spec, $1)='@'
6156
# Tell ltmain to make .lib files, not .a files.
6158
# Tell ltmain to make .dll files, not .so files.
6160
# FIXME: Setting linknames here is a bad hack.
6161
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6162
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6163
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6165
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6167
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6169
# The linker will not automatically build a static lib if we build a DLL.
6170
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6171
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6173
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6174
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6175
lt_tool_outputfile="@TOOL_OUTPUT@"~
6176
case $lt_outputfile in
6179
lt_outputfile="$lt_outputfile.exe"
6180
lt_tool_outputfile="$lt_tool_outputfile.exe"
6183
func_to_tool_file "$lt_outputfile"~
6184
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6185
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6186
$RM "$lt_outputfile.manifest";
6191
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6192
# as there is no search path for DLLs.
6193
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6194
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6195
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6196
_LT_TAGVAR(always_export_symbols, $1)=no
6197
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5663
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5664
_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'
5665
# If the export-symbols file already is a .def file (1st line
5666
# is EXPORTS), use it as is; otherwise, prepend...
5667
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5668
cp $export_symbols $output_objdir/$soname.def;
5670
echo EXPORTS > $output_objdir/$soname.def;
5671
cat $export_symbols >> $output_objdir/$soname.def;
5673
$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'
5675
_LT_TAGVAR(ld_shlibs, $1)=no
6199
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6200
_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'
6201
# If the export-symbols file already is a .def file (1st line
6202
# is EXPORTS), use it as is; otherwise, prepend...
6203
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6204
cp $export_symbols $output_objdir/$soname.def;
6206
echo EXPORTS > $output_objdir/$soname.def;
6207
cat $export_symbols >> $output_objdir/$soname.def;
6209
$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'
6211
_LT_TAGVAR(ld_shlibs, $1)=no
5678
6216
darwin* | rhapsody*)
5679
6217
_LT_DARWIN_LINKER_FEATURES($1)
7175
7840
])# _LT_CHECK_SHELL_FEATURES
7178
# _LT_PROG_XSI_SHELLFNS
7179
# ---------------------
7180
# Bourne and XSI compatible variants of some useful shell functions.
7181
m4_defun([_LT_PROG_XSI_SHELLFNS],
7184
cat << \_LT_EOF >> "$cfgfile"
7186
# func_dirname file append nondir_replacement
7187
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7188
# otherwise set result to NONDIR_REPLACEMENT.
7192
*/*) func_dirname_result="${1%/*}${2}" ;;
7193
* ) func_dirname_result="${3}" ;;
7197
# func_basename file
7200
func_basename_result="${1##*/}"
7203
# func_dirname_and_basename file append nondir_replacement
7204
# perform func_basename and func_dirname in a single function
7206
# dirname: Compute the dirname of FILE. If nonempty,
7207
# add APPEND to the result, otherwise set result
7208
# to NONDIR_REPLACEMENT.
7209
# value returned in "$func_dirname_result"
7210
# basename: Compute filename of FILE.
7211
# value retuned in "$func_basename_result"
7212
# Implementation must be kept synchronized with func_dirname
7213
# and func_basename. For efficiency, we do not delegate to
7214
# those functions but instead duplicate the functionality here.
7215
func_dirname_and_basename ()
7218
*/*) func_dirname_result="${1%/*}${2}" ;;
7219
* ) func_dirname_result="${3}" ;;
7221
func_basename_result="${1##*/}"
7224
# func_stripname prefix suffix name
7225
# strip PREFIX and SUFFIX off of NAME.
7226
# PREFIX and SUFFIX must not contain globbing or regex special
7227
# characters, hashes, percent signs, but SUFFIX may contain a leading
7228
# dot (in which case that matches only a dot).
7231
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7232
# positional parameters, so assign one to ordinary parameter first.
7233
func_stripname_result=${3}
7234
func_stripname_result=${func_stripname_result#"${1}"}
7235
func_stripname_result=${func_stripname_result%"${2}"}
7241
func_opt_split_opt=${1%%=*}
7242
func_opt_split_arg=${1#*=}
7249
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7250
*) func_lo2o_result=${1} ;;
7254
# func_xform libobj-or-source
7257
func_xform_result=${1%.*}.lo
7260
# func_arith arithmetic-term...
7263
func_arith_result=$(( $[*] ))
7267
# STRING may not start with a hyphen.
7270
func_len_result=${#1}
7275
*) # Bourne compatible functions.
7276
cat << \_LT_EOF >> "$cfgfile"
7278
# func_dirname file append nondir_replacement
7279
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7280
# otherwise set result to NONDIR_REPLACEMENT.
7283
# Extract subdirectory from the argument.
7284
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7285
if test "X$func_dirname_result" = "X${1}"; then
7286
func_dirname_result="${3}"
7288
func_dirname_result="$func_dirname_result${2}"
7292
# func_basename file
7295
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7298
dnl func_dirname_and_basename
7299
dnl A portable version of this function is already defined in general.m4sh
7300
dnl so there is no need for it here.
7302
# func_stripname prefix suffix name
7303
# strip PREFIX and SUFFIX off of NAME.
7304
# PREFIX and SUFFIX must not contain globbing or regex special
7305
# characters, hashes, percent signs, but SUFFIX may contain a leading
7306
# dot (in which case that matches only a dot).
7307
# func_strip_suffix prefix name
7311
.*) func_stripname_result=`$ECHO "X${3}" \
7312
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7313
*) func_stripname_result=`$ECHO "X${3}" \
7314
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7319
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7320
my_sed_long_arg='1s/^-[[^=]]*=//'
7325
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7326
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7332
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7335
# func_xform libobj-or-source
7338
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7341
# func_arith arithmetic-term...
7344
func_arith_result=`expr "$[@]"`
7348
# STRING may not start with a hyphen.
7351
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7357
case $lt_shell_append in
7359
cat << \_LT_EOF >> "$cfgfile"
7361
# func_append var value
7362
# Append VALUE to the end of shell variable VAR.
7370
cat << \_LT_EOF >> "$cfgfile"
7372
# func_append var value
7373
# Append VALUE to the end of shell variable VAR.
7376
eval "$[1]=\$$[1]\$[2]"
7843
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7844
# ------------------------------------------------------
7845
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7846
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7847
m4_defun([_LT_PROG_FUNCTION_REPLACE],
7849
sed -e '/^$1 ()$/,/^} # $1 /c\
7852
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7853
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7854
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7855
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7856
test 0 -eq $? || _lt_function_replace_fail=:
7860
# _LT_PROG_REPLACE_SHELLFNS
7861
# -------------------------
7862
# Replace existing portable implementations of several shell functions with
7863
# equivalent extended shell implementations where those features are available..
7864
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7865
[if test x"$xsi_shell" = xyes; then
7866
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7868
*/*) func_dirname_result="${1%/*}${2}" ;;
7869
* ) func_dirname_result="${3}" ;;
7872
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7873
func_basename_result="${1##*/}"])
7875
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7877
*/*) func_dirname_result="${1%/*}${2}" ;;
7878
* ) func_dirname_result="${3}" ;;
7880
func_basename_result="${1##*/}"])
7882
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7883
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7884
# positional parameters, so assign one to ordinary parameter first.
7885
func_stripname_result=${3}
7886
func_stripname_result=${func_stripname_result#"${1}"}
7887
func_stripname_result=${func_stripname_result%"${2}"}])
7889
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7890
func_split_long_opt_name=${1%%=*}
7891
func_split_long_opt_arg=${1#*=}])
7893
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7894
func_split_short_opt_arg=${1#??}
7895
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7897
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7899
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7900
*) func_lo2o_result=${1} ;;
7903
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7905
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7907
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7910
if test x"$lt_shell_append" = xyes; then
7911
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7913
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7914
func_quote_for_eval "${2}"
7915
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7916
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7918
# Save a `func_append' function call where possible by direct use of '+='
7919
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7920
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7921
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7922
test 0 -eq $? || _lt_function_replace_fail=:
7924
# Save a `func_append' function call even when '+=' is not available
7925
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7926
&& mv -f "$cfgfile.tmp" "$cfgfile" \
7927
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7928
test 0 -eq $? || _lt_function_replace_fail=:
7931
if test x"$_lt_function_replace_fail" = x":"; then
7932
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7936
# _LT_PATH_CONVERSION_FUNCTIONS
7937
# -----------------------------
7938
# Determine which file name conversion functions should be used by
7939
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7940
# for certain cross-compile configurations and native mingw.
7941
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7942
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7943
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7944
AC_MSG_CHECKING([how to convert $build file names to $host format])
7945
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7949
*-*-mingw* ) # actually msys
7950
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7953
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7955
* ) # otherwise, assume *nix
7956
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7962
*-*-mingw* ) # actually msys
7963
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7966
lt_cv_to_host_file_cmd=func_convert_file_noop
7968
* ) # otherwise, assume *nix
7969
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7973
* ) # unhandled hosts (and "normal" native builds)
7974
lt_cv_to_host_file_cmd=func_convert_file_noop
7978
to_host_file_cmd=$lt_cv_to_host_file_cmd
7979
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7980
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7981
[0], [convert $build file names to $host format])dnl
7983
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7984
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7985
[#assume ordinary cross tools, or native build.
7986
lt_cv_to_tool_file_cmd=func_convert_file_noop
7990
*-*-mingw* ) # actually msys
7991
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7997
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7998
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7999
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8000
[0], [convert $build files to toolchain format])dnl
8001
])# _LT_PATH_CONVERSION_FUNCTIONS
7384
8003
# Helper functions for option handling. -*- Autoconf -*-
7386
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8005
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7387
8007
# Written by Gary V. Vaughan, 2004
7389
8009
# This file is free software; the Free Software Foundation gives
7390
8010
# unlimited permission to copy and/or distribute it, with or without
7391
8011
# modifications, as long as this notice is preserved.
7393
# serial 6 ltoptions.m4
8013
# serial 7 ltoptions.m4
7395
8015
# This is to help aclocal find these macros, as it can't see m4_define.
7396
8016
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])