From: Yaroslav K. <kav...@je...> - 2005-03-03 11:44:47
|
Sam Steingold: >you need to modify src/m4/dynload.m4 to check for the w32 version of >dlopen &c (i.e., LoadLibrary &c), and the fix src/spvw.d which uses >dlopen(). > >alternatively, you can wait for Bruno to convert everything to ltld (?) >which is supposed to solve everything. Not ltld - ltdl (in libtooll from mingw or gnuwin32). modify src/m4/dynload.m4 probably so: ------------------------------------- $ diff -u dynload.m4 dynload.m4.new --- dynload.m4 Thu Mar 3 11:30:41 2005 +++ dynload.m4.new Thu Mar 3 11:33:55 2005 @@ -16,5 +16,11 @@ if test "$ac_cv_header_dlfcn_h" = yes; then AC_SEARCH_LIBS(dlopen, dl) AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) +else +AC_CHECK_HEADERS(ltdl.h) +if test "$ac_cv_header_ltdl_h" = yes; then + AC_SEARCH_LIBS(lt_dlopen, ltdl) + AC_CHECK_FUNCS(lt_dlopen lt_dlsym lt_dlerror lt_dlclose) +fi fi ]) -------------------------------------- But really it is enough of it? :) And where to redefine #define dlopen lt_dlopen ... if is ltdl.h instead of dlfcn.h? P.S. Excuse for questions of the beginner. -- WBR, Yaroslav Kavenchuk. |