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: Re: [PATCH] Add --enable-locallisppath option to configure.in Date: Wed, 11 May 2005 21:48:06 +0200 Message-ID: <87is1pmtmx.fsf@marant.org> References: <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 1115840853 1609 80.91.229.2 (11 May 2005 19:47:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 May 2005 19:47:33 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 11 21:47:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVx9A-0005WT-T3 for ged-emacs-devel@m.gmane.org; Wed, 11 May 2005 21:45:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVxHy-0001wU-AH for ged-emacs-devel@m.gmane.org; Wed, 11 May 2005 15:54:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVxH7-0001iO-9z for emacs-devel@gnu.org; Wed, 11 May 2005 15:53:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVxH3-0001h6-9T for emacs-devel@gnu.org; Wed, 11 May 2005 15:53:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVxH3-0001eb-37 for emacs-devel@gnu.org; Wed, 11 May 2005 15:53:41 -0400 Original-Received: from [213.228.0.176] (helo=postfix4-2.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DVxHa-0006zf-7C for emacs-devel@gnu.org; Wed, 11 May 2005 15:54:14 -0400 Original-Received: from amboise (mol92-4-82-227-97-206.fbx.proxad.net [82.227.97.206]) by postfix4-2.free.fr (Postfix) with ESMTP id 4D7993192C0 for ; Wed, 11 May 2005 21:47:31 +0200 (CEST) Original-Received: by amboise (Postfix, from userid 1000) id D2B2E2C03E; Wed, 11 May 2005 21:48:06 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: <87u0l9mynh.fsf@marant.org> ( =?iso-8859-15?q?J=E9r=F4me_Marant's_message_of?= "Wed, 11 May 2005 19:59:46 +0200") 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:36992 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36992 J=E9r=F4me Marant 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 + + * 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