[Pkg-jed-commit] [SCM] Debian packaging of JED branch, jo-upstream-fixes, updated. 9f0b76fa0fa7c5b1ea25350f4c285441efee9117
Jörg Sommer
joerg at alea.gnuu.de
Thu May 29 22:59:56 UTC 2008
The following commit has been merged in the jo-upstream-fixes branch:
commit 97ac96209a94d5a60515e5db121a0859820b881f
Author: Jörg Sommer <joerg at alea.gnuu.de>
Date: Fri May 30 00:26:13 2008 +0200
Replace check for dlopen by check for SLang_init_import
The function dlopen is not used directly in Jed, but the function
SLang_init_import.
diff --git a/autoconf/aclocal.m4 b/autoconf/aclocal.m4
index d146cf9..ebdde4c 100644
--- a/autoconf/aclocal.m4
+++ b/autoconf/aclocal.m4
@@ -535,25 +535,6 @@ dnl#}}}
AC_DEFUN(JD_ELF_COMPILER, dnl#{{{
[
-dnl #-------------------------------------------------------------------------
-dnl # Check for dynamic linker
-dnl #-------------------------------------------------------------------------
-DYNAMIC_LINK_LIB=""
-AC_CHECK_HEADER(dlfcn.h,[
- AC_DEFINE(HAVE_DLFCN_H)
- AC_CHECK_LIB(dl,dlopen,[
- DYNAMIC_LINK_LIB="-ldl"
- AC_DEFINE(HAVE_DLOPEN)
- ],[
- AC_CHECK_FUNC(dlopen,AC_DEFINE(HAVE_DLOPEN))
- if test "$ac_cv_func_dlopen" != yes
- then
- AC_MSG_WARN(cannot perform dynamic linking)
- fi
- ])])
-AC_SUBST(DYNAMIC_LINK_LIB)
-
-
if test "$GCC" = yes
then
if test X"$CFLAGS" = X
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index e8ab158..c72badb 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -65,6 +65,7 @@ snprintf vsnprintf \
JD_SET_OBJ_SRC_DIR
JD_TERMCAP
JD_WITH_LIBRARY(slang)
+AC_CHECK_LIB(slang, SLang_init_import, AC_DEFINE(JED_HAS_IMPORT, 1))
dnl JD_FIND_SLANG
JD_GCC_WARNINGS
diff --git a/src/Makefile.in b/src/Makefile.in
index 10e53e3..9b4dabe 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -89,9 +89,6 @@ XINCLUDE = @X_CFLAGS@
# Extra libraries needed by X and Network support on some systems
X_XTRA_LIBS = @X_EXTRA_LIBS@
-# Libraries to support dynamic linking
-DL_LIB = @DYNAMIC_LINK_LIB@
-
# Anything else???
OTHERLIBS = @LIBS@ -lm
@@ -101,8 +98,8 @@ OTHERLIBS = @LIBS@ -lm
MIN_SLANG_VERSION = 10311
MAX_SLANG_VERSION =
-XLIB = $(X_XTRA_LIBS) $(XLIBDIR) -lX11 $(TERMCAP_LIB) $(OTHERLIBS) $(DL_LIB)
-MISCLIBS = $(MOUSELIB) $(TERMCAP_LIB) $(X_XTRA_LIBS) $(OTHERLIBS) $(DL_LIB)
+XLIB = $(X_XTRA_LIBS) $(XLIBDIR) -lX11 $(TERMCAP_LIB) $(OTHERLIBS)
+MISCLIBS = $(MOUSELIB) $(TERMCAP_LIB) $(X_XTRA_LIBS) $(OTHERLIBS)
ALL_CFLAGS = $(CFLAGS) -Dunix -DJED $(MOUSEFLAGS) $(SLANG_INC)
COMPILE_CMD = \
diff --git a/src/config.hin b/src/config.hin
index e3932d9..9e39270 100644
--- a/src/config.hin
+++ b/src/config.hin
@@ -67,8 +67,6 @@
#undef HAVE_PCRE_H
-#undef HAVE_DLOPEN
-
#undef HAVE_GRANTPT
#undef HAVE_UTIME
@@ -140,6 +138,12 @@
/* Set this to 1 if the filesystem is case-sensitive */
#define JED_FILE_PRESERVE_CASE 1
+/* Set JED_HAS_IMPORT if you want the ability to import modules into jed via
+ * the slang import statement. This assumes that slang was compiled with
+ * such support.
+ */
+#undef JED_HAS_IMPORT
+
#ifndef JED
# define JED
#endif
diff --git a/src/jed-feat.h b/src/jed-feat.h
index 83bc3d1..31db51f 100644
--- a/src/jed-feat.h
+++ b/src/jed-feat.h
@@ -86,14 +86,4 @@
# define JED_HAS_EMACS_LOCKING 0
#endif
-/* Set JED_HAS_IMPORT if you want the ability to import modules into jed via
- * the slang import statement. This assumes that slang was compiled with
- * such support.
- */
-#ifdef HAVE_DLOPEN
-# define JED_HAS_IMPORT 1
-#else
-# define JED_HAS_IMPORT 0
-#endif
-
#endif
diff --git a/src/jedconf.h b/src/jedconf.h
index 7d7b502..ba12b34 100644
--- a/src/jedconf.h
+++ b/src/jedconf.h
@@ -144,10 +144,6 @@
# define gid_t int
#endif
-#ifdef _MSC_VER
-# define HAVE_DLOPEN 1
-#endif
-
/* Finally, a reality check... */
#ifdef REAL_UNIX_SYSTEM
# undef REAL_UNIX_SYSTEM
--
Debian packaging of JED
More information about the Pkg-jed-commit
mailing list