Punt db4 µmodule; remove to incomplete berkeley-db plugin.
authorMatt Birkholz <matt@birchwood-abbey.net>
Fri, 22 Jun 2018 10:37:10 +0000 (03:37 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Fri, 22 Jun 2018 11:31:00 +0000 (04:31 -0700)
src/berkeley-db/README [new file with mode: 0644]
src/berkeley-db/berkeley-db.scm [moved from src/runtime/berkeley-db.scm with 100% similarity]
src/berkeley-db/configure.ac [new file with mode: 0644]
src/berkeley-db/prdb4.c [moved from src/microcode/prdb4.c with 100% similarity]
src/berkeley-db/prdb4.scm [moved from src/microcode/prdb4.scm with 100% similarity]
src/microcode/configure.ac
src/microcode/makegen/Makefile.in.in

diff --git a/src/berkeley-db/README b/src/berkeley-db/README
new file mode 100644 (file)
index 0000000..a404bc9
--- /dev/null
@@ -0,0 +1,5 @@
+The BERKELEY-DB option.
+
+This plugin is incomplete.  The accompanying files are just chunks of
+code for the old microcode module prdb4 as cut out of microcode/ and
+runtime/.
diff --git a/src/berkeley-db/configure.ac b/src/berkeley-db/configure.ac
new file mode 100644 (file)
index 0000000..ced941a
--- /dev/null
@@ -0,0 +1,44 @@
+AC_ARG_WITH([db-4],
+    AS_HELP_STRING([--with-db-4],
+       [Use Berkeley DB v4 library if available [[yes]]]))
+: ${with_db_4='yes'}
+
+
+dnl DB v4 support
+if test "${with_db_4}" != no; then
+    if test "${with_db_4}" != yes; then
+       CPPFLAGS="${CPPFLAGS} -I${with_db_4}/include"
+       LDFLAGS="${LDFLAGS} -L${with_db_4}/lib"
+    fi
+    AC_CHECK_HEADER([db.h],
+       [
+       AC_DEFINE([HAVE_DB_H], [1],
+           [Define to 1 if you have the <db.h> header file.])
+       AC_MSG_CHECKING([for db_create in -ldb-4])
+       save_LIBS=${LIBS}
+       LIBS="${LIBS} -ldb-4"
+       AC_LINK_IFELSE(
+           [AC_LANG_PROGRAM(
+               [[#include <db.h>]],
+               [[db_create (0, 0, 0)]])],
+           [
+           AC_MSG_RESULT([yes])
+           AC_DEFINE([HAVE_LIBDB_4], [1],
+               [Define to 1 if you have the `db-4' library (-ldb-4).])
+           MODULE_LIBS="-ldb-4 ${MODULE_LIBS}"
+           MODULE_BASES="${MODULE_BASES} prdb4"
+           ],
+           [
+           AC_MSG_RESULT([no])
+           ])
+       LIBS=${save_LIBS}
+       ])
+fi
+
+MIT_SCHEME_PROJECT=mit-scheme-pucked
+
+# Install plugin docs in Scheme's docdir subdirectories.
+htmldir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)/html'
+pdfdir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)/pdf'
+
+AC_SUBST([MIT_SCHEME_PROJECT])
index 12bc7d8d06cc34bff9614fcd9a7912fe2e83a29e..2a79ec97c5125715170cb04b4a7f6696172801aa 100644 (file)
@@ -135,11 +135,6 @@ AC_ARG_WITH([mcrypt],
        [Use mcrypt library if available [[yes]]]))
 : ${with_mcrypt='yes'}
 
-AC_ARG_WITH([db-4],
-    AS_HELP_STRING([--with-db-4],
-       [Use Berkeley DB v4 library if available [[yes]]]))
-: ${with_db_4='yes'}
-
 AC_ARG_WITH([termcap],
     AS_HELP_STRING([--with-termcap],
        [Use a termcap library if available [[yes]]]))
@@ -843,37 +838,6 @@ if test "${with_mcrypt}" != no; then
        ])
 fi
 
-dnl DB v4 support
-if test "${with_db_4}" != no; then
-    if test "${with_db_4}" != yes; then
-       CPPFLAGS="${CPPFLAGS} -I${with_db_4}/include"
-       LDFLAGS="${LDFLAGS} -L${with_db_4}/lib"
-    fi
-    AC_CHECK_HEADER([db.h],
-       [
-       AC_DEFINE([HAVE_DB_H], [1],
-           [Define to 1 if you have the <db.h> header file.])
-       AC_MSG_CHECKING([for db_create in -ldb-4])
-       save_LIBS=${LIBS}
-       LIBS="${LIBS} -ldb-4"
-       AC_LINK_IFELSE(
-           [AC_LANG_PROGRAM(
-               [[#include <db.h>]],
-               [[db_create (0, 0, 0)]])],
-           [
-           AC_MSG_RESULT([yes])
-           AC_DEFINE([HAVE_LIBDB_4], [1],
-               [Define to 1 if you have the `db-4' library (-ldb-4).])
-           MODULE_LIBS="-ldb-4 ${MODULE_LIBS}"
-           MODULE_BASES="${MODULE_BASES} prdb4"
-           ],
-           [
-           AC_MSG_RESULT([no])
-           ])
-       LIBS=${save_LIBS}
-       ])
-fi
-
 dnl Add support for X if present.
 if test "${no_x}" != yes; then
     if test "x${x_includes}" != x; then
index 1d7ccfc0c9bf06c5c6148eb3a2faed8e17b7f12d..aa802282d63286315a4b29bac29d7dc8b11ca260 100644 (file)
@@ -193,9 +193,6 @@ macosx-starter: macosx-starter.o
 prmcrypt.so: prmcrypt.o @MODULE_LOADER@
        $(LINK_MODULE) prmcrypt.o -lmcrypt $(MODULE_LIBS)
 
-prdb4.so: prdb4.o @MODULE_LOADER@
-       $(LINK_MODULE) prdb4.o -ldb-4 $(MODULE_LIBS)
-
 prx11.so: prx11.o x11base.o x11color.o x11graph.o x11term.o @MODULE_LOADER@
        $(LINK_MODULE) prx11.o x11base.o x11color.o x11graph.o x11term.o \
          -lX11 $(MODULE_LIBS)