[Cl-darcs-cvs] r193 - in cl-darcs/trunk: . doc

mhenoch at common-lisp.net mhenoch at common-lisp.net
Wed Apr 2 20:55:20 UTC 2008


Author: mhenoch
Date: Wed Apr  2 15:55:19 2008
New Revision: 193

Added:
   cl-darcs/trunk/Makefile.am
   cl-darcs/trunk/configure.ac
   cl-darcs/trunk/doc/Makefile.am
Removed:
   cl-darcs/trunk/Makefile
Log:
Autoconfiscate


Added: cl-darcs/trunk/Makefile.am
==============================================================================
--- (empty file)
+++ cl-darcs/trunk/Makefile.am	Wed Apr  2 15:55:19 2008
@@ -0,0 +1,12 @@
+bin_PROGRAMS = darcs
+darcs_SOURCES = cl-darcs.asd apply-patch.lisp cmdline.lisp commute.lisp condition.lisp diff.lisp display-patch.lisp dump-clisp.lisp dump-sbcl.lisp equal.lisp get.lisp getopt.lisp ifstar.lisp inflate.lisp invert-patch.lisp merge.lisp packages.lisp patch-core.lisp patchinfo.lisp pending.lisp prefs.lisp pristine.lisp pull.lisp read-patch.lisp record.lisp repo.lisp revert.lisp send.lisp touching.lisp unreadable-stream.lisp unwind.lisp upath.lisp util.lisp write-patch.lisp
+
+SUBDIRS=doc
+
+darcs: build_with_ at my_lisp@
+
+build_with_clisp:
+	@CLISP@ @CLISP_FLAGS@ @srcdir@/dump-clisp.lisp
+
+build_with_sbcl:
+	@SBCL@ @SBCL_FLAGS@ --load @srcdir@/dump-sbcl.lisp

Added: cl-darcs/trunk/configure.ac
==============================================================================
--- (empty file)
+++ cl-darcs/trunk/configure.ac	Wed Apr  2 15:55:19 2008
@@ -0,0 +1,56 @@
+AC_INIT([cl-darcs], [0.3.0], [cl-darcs-devel at common-lisp.net])
+AM_INIT_AUTOMAKE([no-dependencies foreign])
+
+my_lisp=""
+
+AC_ARG_WITH(clisp, [AS_HELP_STRING([--with-clisp], [use clisp])],
+		   [my_lisp=$my_lisp"clisp"], [])
+AC_ARG_WITH(clisp-flags, [AS_HELP_STRING([--with-clisp-flags], [clisp flags (default -i ~/.clisprc)])],
+			 [],
+			 [with_clisp_flags="-i ~/.clisprc"])
+
+AC_ARG_WITH(sbcl, [AS_HELP_STRING([--with-sbcl], [use sbcl])],
+		  [my_lisp=$my_lisp"sbcl"], [])
+AC_ARG_WITH(sbcl-flags, [AS_HELP_STRING([--with-sbcl-flags], [sbcl flags (default --disable-debugger)])],
+			[],
+			[with_sbcl_flags="--disable-debugger"])
+
+dnl First, try to find clisp
+if test -z "$my_lisp" -o "$my_lisp" = clisp; then
+  if test -z "$CLISP"; then
+    AC_CHECK_PROG(CLISP, clisp, clisp, [])
+  fi
+  if test -n "$CLISP"; then
+    my_lisp=clisp
+    AC_MSG_CHECKING([for clisp flags])
+    CLISP_FLAGS=$with_clisp_flags
+    AC_MSG_RESULT($CLISP_FLAGS)
+  fi
+fi
+
+dnl Then, try to find sbcl
+if test -z "$my_lisp" -o "$my_lisp" = sbcl; then
+  if test -z "$SBCL"; then
+    AC_CHECK_PROG(SBCL, sbcl, sbcl, [])
+  fi
+  if test -n "$SBCL"; then
+    my_lisp=sbcl
+    AC_MSG_CHECKING([for sbcl flags])
+    SBCL_FLAGS=$with_sbcl_flags
+    AC_MSG_RESULT($SBCL_FLAGS)
+  fi
+fi
+
+dnl Did we find any lisp?
+if test -z "$my_lisp"; then
+  AC_MSG_ERROR([no lisp found])
+fi
+
+AC_SUBST(my_lisp)
+AC_SUBST(CLISP)
+AC_SUBST(CLISP_FLAGS)
+AC_SUBST(SBCL)
+AC_SUBST(SBCL_FLAGS)
+
+AC_CONFIG_FILES([Makefile doc/Makefile])
+AC_OUTPUT

Added: cl-darcs/trunk/doc/Makefile.am
==============================================================================
--- (empty file)
+++ cl-darcs/trunk/doc/Makefile.am	Wed Apr  2 15:55:19 2008
@@ -0,0 +1 @@
+info_TEXINFOS=cl-darcs.texi



More information about the Cl-darcs-cvs mailing list