1656
# _LT_SYS_MODULE_PATH_AIX
1657
# -----------------------
1718
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1719
# ----------------------------------
1658
1720
# Links a minimal program and checks the executable
1659
1721
# for the system default hardcoded library path. In most cases,
1660
1722
# this is /usr/lib:/lib, but when the MPI compilers are used
1661
1723
# the location of the communication and MPI libs are included too.
1662
1724
# If we don't find anything, use the default library path according
1663
1725
# to the aix ld manual.
1726
# Store the results from the different compilers for each TAGNAME.
1727
# Allow to override them for all tags through lt_cv_aix_libpath.
1664
1728
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1665
1729
[m4_require([_LT_DECL_SED])dnl
1666
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1667
lt_aix_libpath_sed='
1668
/Import File Strings/,/^$/ {
1674
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1675
# Check for a 64-bit object if we didn't find anything.
1676
if test -z "$aix_libpath"; then
1677
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1679
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1730
if test "${lt_cv_aix_libpath+set}" = set; then
1731
aix_libpath=$lt_cv_aix_libpath
1733
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1734
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1735
lt_aix_libpath_sed='[
1736
/Import File Strings/,/^$/ {
1738
s/^0 *\([^ ]*\) *$/\1/
1742
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1743
# Check for a 64-bit object if we didn't find anything.
1744
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1745
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1747
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1748
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1751
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1680
1753
])# _LT_SYS_MODULE_PATH_AIX
1683
1756
# _LT_SHELL_INIT(ARG)
1684
1757
# -------------------
1685
1758
m4_define([_LT_SHELL_INIT],
1686
[ifdef([AC_DIVERSION_NOTICE],
1687
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1688
[AC_DIVERT_PUSH(NOTICE)])
1759
[m4_divert_text([M4SH-INIT], [$1
1760
])])# _LT_SHELL_INIT
1694
1764
# _LT_PROG_ECHO_BACKSLASH
1695
1765
# -----------------------
1696
# Add some code to the start of the generated configure script which
1697
# will find an echo command which doesn't interpret backslashes.
1766
# Find how we can fake an echo command that does not interpret backslash.
1767
# In particular, with Autoconf 2.60 or later we add some code to the start
1768
# of the generated configure script which will find a shell with a builtin
1769
# printf (which we can use as an echo command).
1698
1770
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1700
# Check that we are running under the correct shell.
1701
SHELL=${CONFIG_SHELL-/bin/sh}
1705
# Remove one level of quotation (which was required for Make).
1706
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1771
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1772
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1773
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1775
AC_MSG_CHECKING([how to print strings])
1776
# Test print first, because it will be a builtin if present.
1777
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1778
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1780
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1783
# Use this function as a fallback that always works.
1784
func_fallback_echo ()
1786
eval 'cat <<_LTECHO_EOF
1790
ECHO='func_fallback_echo'
1793
# func_echo_all arg...
1794
# Invoke $ECHO with all args, space-separated.
1801
printf*) AC_MSG_RESULT([printf]) ;;
1802
print*) AC_MSG_RESULT([print -r]) ;;
1803
*) AC_MSG_RESULT([cat]) ;;
1710
ECHO=${lt_ECHO-echo}
1711
if test "X[$]1" = X--no-reexec; then
1712
# Discard the --no-reexec flag, and continue.
1714
elif test "X[$]1" = X--fallback-echo; then
1715
# Avoid inline document here, it may be left over
1717
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1718
# Yippee, $ECHO works!
1721
# Restart under the correct shell.
1722
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1725
if test "X[$]1" = X--fallback-echo; then
1726
# used as fallback echo
1734
# The HP-UX ksh and POSIX shell print the target directory to stdout
1736
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1738
if test -z "$lt_ECHO"; then
1739
if test "X${echo_test_string+set}" != Xset; then
1740
# find a string as large as possible, as long as the shell can cope with it
1741
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1742
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1743
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1744
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1751
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1752
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1753
test "X$echo_testing_string" = "X$echo_test_string"; then
1756
# The Solaris, AIX, and Digital Unix default echo programs unquote
1757
# backslashes. This makes it impossible to quote backslashes using
1758
# echo "$something" | sed 's/\\/\\\\/g'
1760
# So, first we look for a working echo in the user's PATH.
1762
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1763
for dir in $PATH /usr/ucb; do
1765
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1766
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1767
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1768
test "X$echo_testing_string" = "X$echo_test_string"; then
1775
if test "X$ECHO" = Xecho; then
1776
# We didn't find a better echo, so look for alternatives.
1777
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1778
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1779
test "X$echo_testing_string" = "X$echo_test_string"; then
1780
# This shell has a builtin print -r that does the trick.
1782
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1783
test "X$CONFIG_SHELL" != X/bin/ksh; then
1784
# If we have ksh, try running configure again with it.
1785
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1786
export ORIGINAL_CONFIG_SHELL
1787
CONFIG_SHELL=/bin/ksh
1789
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1793
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1794
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1795
test "X$echo_testing_string" = "X$echo_test_string"; then
1796
# Cool, printf works
1798
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1799
test "X$echo_testing_string" = 'X\t' &&
1800
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1801
test "X$echo_testing_string" = "X$echo_test_string"; then
1802
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1804
SHELL="$CONFIG_SHELL"
1806
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1807
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1808
test "X$echo_testing_string" = 'X\t' &&
1809
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1810
test "X$echo_testing_string" = "X$echo_test_string"; then
1811
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1813
# maybe with a smaller string...
1816
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1817
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1824
if test "$prev" != 'sed 50q "[$]0"'; then
1825
echo_test_string=`eval $prev`
1826
export echo_test_string
1827
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1829
# Oops. We lost completely, so just stick with echo.
1838
# Copy echo and quote the copy suitably for passing to libtool from
1839
# the Makefile, instead of quoting the original, which is used later.
1841
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1842
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1806
m4_ifdef([_AS_DETECT_SUGGESTED],
1807
[_AS_DETECT_SUGGESTED([
1808
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1809
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1810
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1811
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1812
PATH=/empty FPATH=/empty; export PATH FPATH
1813
test "X`printf %s $ECHO`" = "X$ECHO" \
1814
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1847
1816
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1848
_LT_DECL([], [ECHO], [1],
1849
[An echo program that does not interpret backslashes])
1817
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1850
1818
])# _LT_PROG_ECHO_BACKSLASH
1823
AC_DEFUN([_LT_WITH_SYSROOT],
1824
[AC_MSG_CHECKING([for sysroot])
1825
AC_ARG_WITH([sysroot],
1826
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1827
(or the compiler's sysroot if not specified).],
1828
[], [with_sysroot=no])
1830
dnl lt_sysroot will always be passed unquoted. We quote it here
1831
dnl in case the user passed a directory name.
1833
case ${with_sysroot} in #(
1835
if test "$GCC" = yes; then
1836
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1840
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1845
AC_MSG_RESULT([${with_sysroot}])
1846
AC_MSG_ERROR([The sysroot must be an absolute path.])
1850
AC_MSG_RESULT([${lt_sysroot:-no}])
1851
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1852
[dependent libraries, and in which our libraries should be installed.])])
1853
1854
# _LT_ENABLE_LOCK
1854
1855
# ---------------
1855
1856
m4_defun([_LT_ENABLE_LOCK],
2871
2944
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2872
2945
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2873
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2947
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2875
2949
mingw* | cegcc*)
2876
2950
# MinGW DLLs use traditional 'lib' prefix
2877
2951
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2878
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2879
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2880
# It is most probably a Windows format PATH printed by
2881
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2882
# path with ; separators, and with drive letters. We can handle the
2883
# drive letters (cygwin fileutils understands them), so leave them,
2884
# especially as we might pass files found there to a mingw objdump,
2885
# which wouldn't understand a cygwinified path. Ahh.
2886
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2888
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2892
2954
# pw32 DLLs use 'pw' prefix rather than 'lib'
2893
2955
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2958
dynamic_linker='Win32 ld.exe'
2963
libname_spec='$name'
2964
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2965
library_names_spec='${libname}.dll.lib'
2969
sys_lib_search_path_spec=
2975
# Let DOS variable expansion print the short 8.3 style file name.
2976
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2977
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2980
# Convert to MSYS style.
2981
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2984
# Convert to unix form, then to dos form, then back to unix form
2985
# but this time dos style (no spaces!) so that the unix form looks
2986
# like /cygdrive/c/PROGRA~1:/cygdr...
2987
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2988
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2989
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2992
sys_lib_search_path_spec="$LIB"
2993
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2994
# It is most probably a Windows format PATH.
2995
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2997
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2999
# FIXME: find the short name or the path components, as spaces are
3000
# common. (e.g. "Program Files" -> "PROGRA~1")
3004
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3005
postinstall_cmds='base_file=`basename \${file}`~
3006
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3007
dldir=$destdir/`dirname \$dlpath`~
3008
test -d \$dldir || mkdir -p \$dldir~
3009
$install_prog $dir/$dlname \$dldir/$dlname'
3010
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3011
dlpath=$dir/\$dldll~
3013
shlibpath_overrides_runpath=yes
3014
dynamic_linker='Win32 link.exe'
3018
# Assume MSVC wrapper
2899
3019
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3020
dynamic_linker='Win32 ld.exe'
2902
dynamic_linker='Win32 ld.exe'
2903
3023
# FIXME: first we should search . and the directory the executable is in
2904
3024
shlibpath_var=PATH
3902
4088
dnl AC_DEFUN([AM_PROG_NM], [])
3903
4089
dnl AC_DEFUN([AC_PROG_NM], [])
4091
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4092
# --------------------------------
4093
# how to determine the name of the shared library
4094
# associated with a specific link library.
4095
# -- PORTME fill in with the dynamic library characteristics
4096
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4097
[m4_require([_LT_DECL_EGREP])
4098
m4_require([_LT_DECL_OBJDUMP])
4099
m4_require([_LT_DECL_DLLTOOL])
4100
AC_CACHE_CHECK([how to associate runtime and link libraries],
4101
lt_cv_sharedlib_from_linklib_cmd,
4102
[lt_cv_sharedlib_from_linklib_cmd='unknown'
4105
cygwin* | mingw* | pw32* | cegcc*)
4106
# two different shell functions defined in ltmain.sh
4107
# decide which to use based on capabilities of $DLLTOOL
4108
case `$DLLTOOL --help 2>&1` in
4109
*--identify-strict*)
4110
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4113
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4118
# fallback: assume linklib IS sharedlib
4119
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4123
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4124
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4126
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4127
[Command to associate shared and link libraries])
4128
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4131
# _LT_PATH_MANIFEST_TOOL
4132
# ----------------------
4133
# locate the manifest tool
4134
m4_defun([_LT_PATH_MANIFEST_TOOL],
4135
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4136
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4137
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4138
[lt_cv_path_mainfest_tool=no
4139
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4140
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4141
cat conftest.err >&AS_MESSAGE_LOG_FD
4142
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4143
lt_cv_path_mainfest_tool=yes
4146
if test "x$lt_cv_path_mainfest_tool" != xyes; then
4149
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4150
])# _LT_PATH_MANIFEST_TOOL
5340
5703
# Microsoft Visual C++.
5341
5704
# hardcode_libdir_flag_spec is actually meaningless, as there is
5342
5705
# no search path for DLLs.
5343
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5344
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5345
# Tell ltmain to make .lib files, not .a files.
5347
# Tell ltmain to make .dll files, not .so files.
5349
# FIXME: Setting linknames here is a bad hack.
5350
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5351
# The linker will automatically build a .lib file if we build a DLL.
5352
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5353
# FIXME: Should let the user specify the lib program.
5354
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5355
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5356
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5706
case $cc_basename in
5709
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5710
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5711
_LT_TAGVAR(always_export_symbols, $1)=yes
5712
_LT_TAGVAR(file_list_spec, $1)='@'
5713
# Tell ltmain to make .lib files, not .a files.
5715
# Tell ltmain to make .dll files, not .so files.
5717
# FIXME: Setting linknames here is a bad hack.
5718
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5719
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5720
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5722
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5724
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5726
# The linker will not automatically build a static lib if we build a DLL.
5727
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5728
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5729
_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'
5731
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5732
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5733
lt_tool_outputfile="@TOOL_OUTPUT@"~
5734
case $lt_outputfile in
5737
lt_outputfile="$lt_outputfile.exe"
5738
lt_tool_outputfile="$lt_tool_outputfile.exe"
5741
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5742
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5743
$RM "$lt_outputfile.manifest";
5747
# Assume MSVC wrapper
5748
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5749
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5750
# Tell ltmain to make .lib files, not .a files.
5752
# Tell ltmain to make .dll files, not .so files.
5754
# FIXME: Setting linknames here is a bad hack.
5755
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5756
# The linker will automatically build a .lib file if we build a DLL.
5757
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5758
# FIXME: Should let the user specify the lib program.
5759
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5760
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5359
5765
darwin* | rhapsody*)
5483
5896
irix5* | irix6* | nonstopux*)
5484
5897
if test "$GCC" = yes; then
5485
_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'
5898
_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'
5486
5899
# Try to use the -exported_symbol ld option, if it does not
5487
5900
# work, assume that -exports_file does not work either and
5488
5901
# implicitly export all symbols.
5489
save_LDFLAGS="$LDFLAGS"
5490
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5491
AC_LINK_IFELSE(int foo(void) {},
5492
_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'
5494
LDFLAGS="$save_LDFLAGS"
5902
# This should be the same for all languages, so no per-tag cache variable.
5903
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5904
[lt_cv_irix_exported_symbol],
5905
[save_LDFLAGS="$LDFLAGS"
5906
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5909
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5910
[C++], [[int foo (void) { return 0; }]],
5917
[lt_cv_irix_exported_symbol=yes],
5918
[lt_cv_irix_exported_symbol=no])
5919
LDFLAGS="$save_LDFLAGS"])
5920
if test "$lt_cv_irix_exported_symbol" = yes; then
5921
_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'
5496
_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'
5497
_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'
5924
_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'
5925
_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'
5499
5927
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5500
5928
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5773
6201
# Test whether the compiler implicitly links with -lc since on some
5774
6202
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5775
6203
# to ld, don't add -lc before -lgcc.
5776
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5778
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6204
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6205
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6207
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5780
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5783
libobjs=conftest.$ac_objext
5785
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5786
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5792
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5793
_LT_TAGVAR(allow_undefined_flag, $1)=
5794
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5796
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5798
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5800
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5802
cat conftest.err 1>&5
5805
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6209
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6212
libobjs=conftest.$ac_objext
6214
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6215
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6221
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6222
_LT_TAGVAR(allow_undefined_flag, $1)=
6223
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6225
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6227
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6229
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6231
cat conftest.err 1>&5
6235
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6282
6706
cygwin* | mingw* | pw32* | cegcc*)
6283
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6284
# as there is no search path for DLLs.
6285
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6286
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6287
_LT_TAGVAR(always_export_symbols, $1)=no
6288
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6707
case $GXX,$cc_basename in
6710
# hardcode_libdir_flag_spec is actually meaningless, as there is
6711
# no search path for DLLs.
6712
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6713
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6714
_LT_TAGVAR(always_export_symbols, $1)=yes
6715
_LT_TAGVAR(file_list_spec, $1)='@'
6716
# Tell ltmain to make .lib files, not .a files.
6718
# Tell ltmain to make .dll files, not .so files.
6720
# FIXME: Setting linknames here is a bad hack.
6721
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6722
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6723
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6725
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6727
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6729
# The linker will not automatically build a static lib if we build a DLL.
6730
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6731
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6733
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6734
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6735
lt_tool_outputfile="@TOOL_OUTPUT@"~
6736
case $lt_outputfile in
6739
lt_outputfile="$lt_outputfile.exe"
6740
lt_tool_outputfile="$lt_tool_outputfile.exe"
6743
func_to_tool_file "$lt_outputfile"~
6744
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6745
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6746
$RM "$lt_outputfile.manifest";
6751
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6752
# as there is no search path for DLLs.
6753
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6754
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6755
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6756
_LT_TAGVAR(always_export_symbols, $1)=no
6757
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6290
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6291
_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'
6292
# If the export-symbols file already is a .def file (1st line
6293
# is EXPORTS), use it as is; otherwise, prepend...
6294
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6295
cp $export_symbols $output_objdir/$soname.def;
6297
echo EXPORTS > $output_objdir/$soname.def;
6298
cat $export_symbols >> $output_objdir/$soname.def;
6300
$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'
6302
_LT_TAGVAR(ld_shlibs, $1)=no
6759
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6760
_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'
6761
# If the export-symbols file already is a .def file (1st line
6762
# is EXPORTS), use it as is; otherwise, prepend...
6763
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6764
cp $export_symbols $output_objdir/$soname.def;
6766
echo EXPORTS > $output_objdir/$soname.def;
6767
cat $export_symbols >> $output_objdir/$soname.def;
6769
$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'
6771
_LT_TAGVAR(ld_shlibs, $1)=no
6305
6776
darwin* | rhapsody*)
6306
6777
_LT_DARWIN_LINKER_FEATURES($1)
7802
8322
])# _LT_CHECK_SHELL_FEATURES
7805
# _LT_PROG_XSI_SHELLFNS
7806
# ---------------------
7807
# Bourne and XSI compatible variants of some useful shell functions.
7808
m4_defun([_LT_PROG_XSI_SHELLFNS],
7811
cat << \_LT_EOF >> "$cfgfile"
7813
# func_dirname file append nondir_replacement
7814
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7815
# otherwise set result to NONDIR_REPLACEMENT.
7819
*/*) func_dirname_result="${1%/*}${2}" ;;
7820
* ) func_dirname_result="${3}" ;;
7824
# func_basename file
7827
func_basename_result="${1##*/}"
7830
# func_dirname_and_basename file append nondir_replacement
7831
# perform func_basename and func_dirname in a single function
7833
# dirname: Compute the dirname of FILE. If nonempty,
7834
# add APPEND to the result, otherwise set result
7835
# to NONDIR_REPLACEMENT.
7836
# value returned in "$func_dirname_result"
7837
# basename: Compute filename of FILE.
7838
# value retuned in "$func_basename_result"
7839
# Implementation must be kept synchronized with func_dirname
7840
# and func_basename. For efficiency, we do not delegate to
7841
# those functions but instead duplicate the functionality here.
7842
func_dirname_and_basename ()
7845
*/*) func_dirname_result="${1%/*}${2}" ;;
7846
* ) func_dirname_result="${3}" ;;
7848
func_basename_result="${1##*/}"
7851
# func_stripname prefix suffix name
7852
# strip PREFIX and SUFFIX off of NAME.
7853
# PREFIX and SUFFIX must not contain globbing or regex special
7854
# characters, hashes, percent signs, but SUFFIX may contain a leading
7855
# dot (in which case that matches only a dot).
7858
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7859
# positional parameters, so assign one to ordinary parameter first.
7860
func_stripname_result=${3}
7861
func_stripname_result=${func_stripname_result#"${1}"}
7862
func_stripname_result=${func_stripname_result%"${2}"}
7868
func_opt_split_opt=${1%%=*}
7869
func_opt_split_arg=${1#*=}
7876
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7877
*) func_lo2o_result=${1} ;;
7881
# func_xform libobj-or-source
7884
func_xform_result=${1%.*}.lo
7887
# func_arith arithmetic-term...
7890
func_arith_result=$(( $[*] ))
7894
# STRING may not start with a hyphen.
7897
func_len_result=${#1}
7902
*) # Bourne compatible functions.
7903
cat << \_LT_EOF >> "$cfgfile"
7905
# func_dirname file append nondir_replacement
7906
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7907
# otherwise set result to NONDIR_REPLACEMENT.
7910
# Extract subdirectory from the argument.
7911
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7912
if test "X$func_dirname_result" = "X${1}"; then
7913
func_dirname_result="${3}"
7915
func_dirname_result="$func_dirname_result${2}"
7919
# func_basename file
7922
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7925
dnl func_dirname_and_basename
7926
dnl A portable version of this function is already defined in general.m4sh
7927
dnl so there is no need for it here.
7929
# func_stripname prefix suffix name
7930
# strip PREFIX and SUFFIX off of NAME.
7931
# PREFIX and SUFFIX must not contain globbing or regex special
7932
# characters, hashes, percent signs, but SUFFIX may contain a leading
7933
# dot (in which case that matches only a dot).
7934
# func_strip_suffix prefix name
7938
.*) func_stripname_result=`$ECHO "X${3}" \
7939
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7940
*) func_stripname_result=`$ECHO "X${3}" \
7941
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7946
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7947
my_sed_long_arg='1s/^-[[^=]]*=//'
7952
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7953
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7959
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7962
# func_xform libobj-or-source
7965
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7968
# func_arith arithmetic-term...
7971
func_arith_result=`expr "$[@]"`
7975
# STRING may not start with a hyphen.
7978
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7984
case $lt_shell_append in
7986
cat << \_LT_EOF >> "$cfgfile"
7988
# func_append var value
7989
# Append VALUE to the end of shell variable VAR.
7997
cat << \_LT_EOF >> "$cfgfile"
7999
# func_append var value
8000
# Append VALUE to the end of shell variable VAR.
8003
eval "$[1]=\$$[1]\$[2]"
8325
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8326
# ------------------------------------------------------
8327
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8328
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8329
m4_defun([_LT_PROG_FUNCTION_REPLACE],
8331
sed -e '/^$1 ()$/,/^} # $1 /c\
8334
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8335
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8336
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8337
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8338
test 0 -eq $? || _lt_function_replace_fail=:
8342
# _LT_PROG_REPLACE_SHELLFNS
8343
# -------------------------
8344
# Replace existing portable implementations of several shell functions with
8345
# equivalent extended shell implementations where those features are available..
8346
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8347
[if test x"$xsi_shell" = xyes; then
8348
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8350
*/*) func_dirname_result="${1%/*}${2}" ;;
8351
* ) func_dirname_result="${3}" ;;
8354
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8355
func_basename_result="${1##*/}"])
8357
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8359
*/*) func_dirname_result="${1%/*}${2}" ;;
8360
* ) func_dirname_result="${3}" ;;
8362
func_basename_result="${1##*/}"])
8364
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8365
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8366
# positional parameters, so assign one to ordinary parameter first.
8367
func_stripname_result=${3}
8368
func_stripname_result=${func_stripname_result#"${1}"}
8369
func_stripname_result=${func_stripname_result%"${2}"}])
8371
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8372
func_split_long_opt_name=${1%%=*}
8373
func_split_long_opt_arg=${1#*=}])
8375
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8376
func_split_short_opt_arg=${1#??}
8377
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8379
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8381
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8382
*) func_lo2o_result=${1} ;;
8385
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8387
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8389
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8392
if test x"$lt_shell_append" = xyes; then
8393
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8395
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8396
func_quote_for_eval "${2}"
8397
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8398
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8400
# Save a `func_append' function call where possible by direct use of '+='
8401
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8402
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8403
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8404
test 0 -eq $? || _lt_function_replace_fail=:
8406
# Save a `func_append' function call even when '+=' is not available
8407
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8408
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8409
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8410
test 0 -eq $? || _lt_function_replace_fail=:
8413
if test x"$_lt_function_replace_fail" = x":"; then
8414
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8418
# _LT_PATH_CONVERSION_FUNCTIONS
8419
# -----------------------------
8420
# Determine which file name conversion functions should be used by
8421
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8422
# for certain cross-compile configurations and native mingw.
8423
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8424
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8425
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8426
AC_MSG_CHECKING([how to convert $build file names to $host format])
8427
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8431
*-*-mingw* ) # actually msys
8432
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8435
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8437
* ) # otherwise, assume *nix
8438
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8444
*-*-mingw* ) # actually msys
8445
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8448
lt_cv_to_host_file_cmd=func_convert_file_noop
8450
* ) # otherwise, assume *nix
8451
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8455
* ) # unhandled hosts (and "normal" native builds)
8456
lt_cv_to_host_file_cmd=func_convert_file_noop
8460
to_host_file_cmd=$lt_cv_to_host_file_cmd
8461
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8462
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8463
[0], [convert $build file names to $host format])dnl
8465
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8466
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8467
[#assume ordinary cross tools, or native build.
8468
lt_cv_to_tool_file_cmd=func_convert_file_noop
8472
*-*-mingw* ) # actually msys
8473
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8479
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8480
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8481
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8482
[0], [convert $build files to toolchain format])dnl
8483
])# _LT_PATH_CONVERSION_FUNCTIONS
8011
8485
# Helper functions for option handling. -*- Autoconf -*-
8013
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8487
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8014
8489
# Written by Gary V. Vaughan, 2004
8016
8491
# This file is free software; the Free Software Foundation gives
8017
8492
# unlimited permission to copy and/or distribute it, with or without
8018
8493
# modifications, as long as this notice is preserved.
8020
# serial 6 ltoptions.m4
8495
# serial 7 ltoptions.m4
8022
8497
# This is to help aclocal find these macros, as it can't see m4_define.
8023
8498
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])