Ralf Wildenhues wrote:
Hi heromyth,
* heromyth wrote on Fri, Jun 17, 2005 at 05:06:05PM CEST:
heromyth wrote:
Recently I use Libtool CVS to compile M4 CVS in mingw/msys.I have
configureed M4 like this:
../m4/configure -C --prefix=/usr --disable-nls --disable-shared
I trace into libtool, and found it is because of $global_symbol_pipe
which is always empty. I don't konw where I am wrong.
Shit! I think I have found the answer to my question. I configure M4 use
this:
../m4/configure -C --prefix=/mingw --disable-nls --disable-shared
And get the $global_symbol_pipe not empty. Its value is that:
global_symbol_pipe="sed -n -e 's/^.*[
]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][
]*_\\([_A-Za-z][_A-Za-z0-9]*\\)\\{0,1\\}\$/\\1 _\\2 \\2/p'"
What's wrong?? Exactly, there is a file named config.site in /etc. I
don't know why it exists. But after I deleted it, the firt command :
../m4/configure -C --prefix=/usr --disable-nls --disable-shared
works. So there is no need to do this patch, just delete
/etc/config.site.
Who created /etc/config.site (resp. which software package contains the
one you had installed) and what are its contents?
It semm to belong to MSYS. Its contains are these:
lt_cv_cc_dll_switch=${lt_cv_cc_dll_switch=-mdll}
lt_cv_compiler_c_o=${lt_cv_compiler_c_o=yes}
lt_cv_compiler_o_lo=${lt_cv_compiler_o_lo=yes}
lt_cv_deplibs_check_method=${lt_cv_deplibs_check_method='file_magic file
format pei*-i386(.*architecture: i386)?'}
lt_cv_file_magic_cmd=${lt_cv_file_magic_cmd='$OBJDUMP -f'}
lt_cv_file_magic_test_file=${lt_cv_file_magic_test_file=}
test "${lt_cv_global_symbol_to_c_name_address+set}" = set ||
lt_cv_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/
{\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/
{"\2", (lt_ptr) \&\2},/p'\'''
lt_cv_global_symbol_to_cdecl=${lt_cv_global_symbol_to_cdecl='sed -n -e
'\''s/^. .* \(.*\)$/extern char \1;/p'\'''}
lt_cv_ld_reload_flag=${lt_cv_ld_reload_flag=-r}
lt_cv_need_dllmain=${lt_cv_need_dllmain=no}
lt_cv_prog_cc_can_build_shared=${lt_cv_prog_cc_can_build_shared=yes}
lt_cv_prog_cc_no_builtin=${lt_cv_prog_cc_no_builtin=}
lt_cv_prog_cc_pic=${lt_cv_prog_cc_pic=' -DDLL_EXPORT'}
lt_cv_prog_cc_pic_works=${lt_cv_prog_cc_pic_works=yes}
lt_cv_prog_cc_shlib=${lt_cv_prog_cc_shlib=}
lt_cv_prog_cc_static=${lt_cv_prog_cc_static=-static}
lt_cv_prog_cc_static_works=${lt_cv_prog_cc_static_works=yes}
lt_cv_prog_cc_wl=${lt_cv_prog_cc_wl=-Wl,}
lt_cv_prog_gnu_ld=${lt_cv_prog_gnu_ld=yes}
lt_cv_sys_global_symbol_pipe=${lt_cv_sys_global_symbol_pipe=}
lt_cv_sys_path_separator=${lt_cv_sys_path_separator=:}