From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-15?q?J=E9r=F4me_Marant?= Newsgroups: gmane.emacs.devel Subject: [PATCH] Add --enable-locallisppath option to configure.in Date: Wed, 11 May 2005 19:59:46 +0200 Message-ID: <87u0l9mynh.fsf@marant.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1115834132 11345 80.91.229.2 (11 May 2005 17:55:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 May 2005 17:55:32 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 11 19:55:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVvQ6-0002TJ-0o for ged-emacs-devel@m.gmane.org; Wed, 11 May 2005 19:54:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVvYs-00063J-2R for ged-emacs-devel@m.gmane.org; Wed, 11 May 2005 14:03:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVvYg-00062z-89 for emacs-devel@gnu.org; Wed, 11 May 2005 14:03:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVvYc-00061s-Cc for emacs-devel@gnu.org; Wed, 11 May 2005 14:03:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVvYb-00061D-JK for emacs-devel@gnu.org; Wed, 11 May 2005 14:03:41 -0400 Original-Received: from [213.228.0.62] (helo=postfix4-1.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DVvak-0002hY-7R for emacs-devel@gnu.org; Wed, 11 May 2005 14:05:54 -0400 Original-Received: from amboise (mol92-4-82-227-97-206.fbx.proxad.net [82.227.97.206]) by postfix4-1.free.fr (Postfix) with ESMTP id 4740A317A89 for ; Wed, 11 May 2005 19:59:12 +0200 (CEST) Original-Received: by amboise (Postfix, from userid 1000) id 7E3992C03E; Wed, 11 May 2005 19:59:46 +0200 (CEST) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36989 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36989 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: --enable-locallisppath, --enable-locallisppath=3Dyes: leaves the default = value --disable-locallisppath, --enable-locallisppath=3Dno: removes locallisppa= th from lisppath --enable-locallisppath=3DPATH: set locallisppath and adds it to lisppath Cheers, 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 + + * configure.in: Add --enable-locallisppath. + 2005-05-07 J=E9r=F4me Marant =20 * 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) =20 +AC_ARG_ENABLE(locallisppath, +[ --enable-locallisppath=3DPATH + directories Emacs should search for lisp files + specific to this site], +if test "${enableval}" =3D "no"; then + locallisppath=3D + lisppath=3D${lispdir} +elif test "${enableval}" !=3D "yes"; then + locallisppath=3D${enableval} + lisppath=3D${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 --=20 J=E9r=F4me Marant