[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add --enable-locallisppath option to configure.in
From: |
Jérôme Marant |
Subject: |
Re: [PATCH] Add --enable-locallisppath option to configure.in |
Date: |
Wed, 11 May 2005 21:48:06 +0200 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Jérôme Marant <address@hidden> writes:
> Hi,
>
> Currently, only the configure script generates epaths, by calling the
> 'epaths-force' target of the Makefile.
>
> However, it is not possible to customize the value of the
> locallisppath variable in order to include it in epaths at
> configure-time, which makes necessary to re-run 'make epaths-force'
> with a customized locallisppath.
>
> The following patch adds a --enable-locallisppath option for this
> purpose. It attemps to follow the --enable-* options semantic:
This one should be better:
diff -u -r emacs.orig/ChangeLog emacs/ChangeLog
--- emacs.orig/ChangeLog 2005-05-11 13:40:41.277147000 +0200
+++ emacs/ChangeLog 2005-05-11 14:10:26.254789616 +0200
@@ -1,3 +1,7 @@
+2005-05-11 Jerome Marant <address@hidden>
+
+ * configure.in: Add --enable-locallisppath.
+
2005-05-07 Jérôme Marant <address@hidden>
* make-dist: Remove references to makefile.nt and makefile.def.
diff -u -r emacs.orig/configure.in emacs/configure.in
--- emacs.orig/configure.in 2005-05-11 13:40:01.004269000 +0200
+++ emacs/configure.in 2005-05-11 14:16:04.669342784 +0200
@@ -142,6 +142,18 @@
fi
AC_SUBST(MAINT)
+AC_ARG_ENABLE(locallisppath,
+[ --enable-locallisppath=PATH
+ directories Emacs should search for lisp files
+ specific to this site],
+if test "${enableval}" = "no"; then
+ locallisppath=
+ lisppath='${lispdir}'
+elif test "${enableval}" != "yes"; then
+ locallisppath=${enableval}
+ lisppath='${locallisppath}:${lispdir}'
+fi)
+
#### Make srcdir absolute, if it isn't already. It's important to
#### avoid running the path through pwd unnecessarily, since pwd can
#### give you automounter prefixes, which can go away. We do all this
--
Jérôme Marant