? COPYING ? patches ? libtool-1.4.tar.gz ? INSTALL ? mkinstalldirs ? missing ? patch ? cygwin-patches.tar.bz2 ? dyld.patch ? install-sh ? libltdl/config-h.in ? mail/accounts Index: ChangeLog =================================================================== RCS file: /cvsroot/libtool/libtool/ChangeLog,v retrieving revision 1.960 diff -u -r1.960 ChangeLog --- ChangeLog 2001/06/29 22:56:50 1.960 +++ ChangeLog 2001/06/30 00:38:26 @@ -1,3 +1,12 @@ +2001-06-30 Gary V. Vaughan + + * ltdl.m4 (AC_LTDL_DLLIB) [sco3.2*]: When searching for a dlopen + implementation, and adding `-ldl' has failed, try linking a call + to dlopen, #including dlfcn.h, and without -ldl. On sco3.2 the + header files redefines the interface symbols to point at the + implementation symbols in libc. + Reported by "Golubev I. N." + 2001-06-29 Tim Van Holder General cleanup of autoconf-2.50 upgrade: Index: ltdl.m4 =================================================================== RCS file: /cvsroot/libtool/libtool/ltdl.m4,v retrieving revision 1.23 diff -u -r1.23 ltdl.m4 --- ltdl.m4 2001/06/29 22:56:50 1.23 +++ ltdl.m4 2001/06/30 00:38:26 @@ -190,31 +190,42 @@ # ------------- AC_DEFUN(AC_LTDL_DLLIB, [LIBADD_DL= -AC_CHECK_LIB(dl, dlopen, [AC_DEFINE(HAVE_LIBDL, 1, - [Define if you have the libdl library or equivalent. ]) LIBADD_DL="-ldl"], -[AC_CHECK_FUNC(dlopen, [AC_DEFINE(HAVE_LIBDL, 1, - [Define if you have the libdl library or equivalent.])], -[AC_CHECK_LIB(svld, dlopen, [AC_DEFINE(HAVE_LIBDL, 1, - [Define if you have the libdl library or equivalent.]) LIBADD_DL="-lsvld"] -)])]) -AC_CHECK_FUNC(shl_load, [AC_DEFINE(HAVE_SHL_LOAD, 1, - [Define if you have the shl_load function.])], -[AC_CHECK_LIB(dld, shl_load, - [AC_DEFINE(HAVE_SHL_LOAD, 1, - [Define if you have the shl_load function.]) - LIBADD_DL="$LIBADD_DL -ldld"]) -]) -AC_CHECK_LIB(dld, dld_link, [AC_DEFINE(HAVE_DLD, 1, - [Define if you have the GNU dld library.])dnl -test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"]) AC_SUBST(LIBADD_DL) +AC_LANG_PUSH([C]) +AC_CHECK_LIB(dl, dlopen, + [AC_DEFINE(HAVE_LIBDL, 1, + [Define if you have the libdl library or equivalent. ]) + LIBADD_DL="-ldl"], + [AC_TRY_LINK([#if HAVE_DLFCN_H +# include +#endif +], [dlopen();], + [AC_DEFINE(HAVE_LIBDL, 1, + [Define if you have the libdl library or equivalent.])], + [AC_CHECK_LIB(svld, dlopen, + [AC_DEFINE(HAVE_LIBDL, 1, + [Define if you have the libdl library or equivalent.]) + LIBADD_DL="-lsvld"])])]) -if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then - LIBS_SAVE="$LIBS" - LIBS="$LIBS $LIBADD_DL" - AC_CHECK_FUNCS(dlerror) - LIBS="$LIBS_SAVE" +AC_CHECK_FUNC(shl_load, + [AC_DEFINE(HAVE_SHL_LOAD, 1, [Define if you have the shl_load function.])], + [AC_CHECK_LIB(dld, shl_load, + [AC_DEFINE(HAVE_SHL_LOAD, 1, [Define if you have the shl_load function.]) + LIBADD_DL="$LIBADD_DL -ldld"])]) + +AC_CHECK_LIB(dld, dld_link, + [AC_DEFINE(HAVE_DLD, 1, [Define if you have the GNU dld library.]) + test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"]) + + +if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes +then + lt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBADD_DL" + AC_CHECK_FUNCS(dlerror) + LIBS="$lt_save_LIBS" fi +AC_LANG_POP ])# AC_LTDL_DLLIB # AC_LTDL_SYMBOL_USCORE