[Pkg-jed-commit] [SCM] Debian packaging of JED branch, jo-upstream-fixes, updated. 3bb27317d2e41070ee40080b18e63f569c2ac79e
Jörg Sommer
joerg at alea.gnuu.de
Thu May 29 19:51:21 UTC 2008
The following commit has been merged in the jo-upstream-fixes branch:
commit 3bb27317d2e41070ee40080b18e63f569c2ac79e
Author: Jörg Sommer <joerg at alea.gnuu.de>
Date: Thu May 29 21:46:32 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..1ecdd89 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
@@ -949,6 +930,12 @@ AC_SUBST(slang_patchlevel_version)
])
#}}}
+AC_DEFUN(JD_HAVE_SLANG_IMPORT, dnl#{{{
+[
+ AC_CHECK_LIB(slang, SLang_init_import, AC_DEFINE(JED_HAS_IMPORT, 1))
+])
+#}}}
+
AC_DEFUN(JD_SLANG_MODULE_INSTALL_DIR, dnl#{{{
[
AC_REQUIRE([JD_SLANG_VERSION])
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index e8ab158..1429305 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)
+JD_HAVE_SLANG_IMPORT
dnl JD_FIND_SLANG
JD_GCC_WARNINGS
diff --git a/src/Makefile.in b/src/Makefile.in
index 10e53e3..84e76b1 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
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