From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19814 Path: main.gmane.org!not-for-mail From: Stephen Zander Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] Non-standard lispdir Date: 11 Dec 1998 00:47:59 -0800 Sender: owner-ding@hpc.uh.edu Message-ID: <8767bjyshs.fsf@wsfs05.mckesson.com> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="==-=-=" X-Trace: main.gmane.org 1035158096 13543 80.91.224.250 (20 Oct 2002 23:54:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:54:56 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA09038 for ; Fri, 11 Dec 1998 11:21:47 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.9.1/8.9.1) with ESMTP id KAA27020; Fri, 11 Dec 1998 10:20:15 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 11 Dec 1998 10:20:22 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id KAA04412 for ; Fri, 11 Dec 1998 10:20:02 -0600 (CST) Original-Received: from wsfs05.mckesson.com (mail@mg132-003.ricochet.net [204.179.132.3]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA09010 for ; Fri, 11 Dec 1998 11:19:48 -0500 (EST) Original-Received: from srz by wsfs05.mckesson.com with local (Exim 2.05 #1 (Debian)) id 0zoOEy-0003X5-00; Fri, 11 Dec 1998 00:48:00 -0800 Original-To: Lloyd Zusman Organisation: speaking through, but not for, McKesson Corp In-Reply-To: Lloyd Zusman's message of "09 Dec 1998 23:20:12 -0500" User-Agent: Gnus/5.070061 (Pterodactyl Gnus v0.61) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 102 Xref: main.gmane.org gmane.emacs.gnus.general:19814 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19814 This is a MIME multipart message. If you are reading this, you shouldn't. --==-=-= >>>>> "Lloyd" == Lloyd Zusman writes: Lloyd> Yes ... I know I can do this, but I was hoping to make this Lloyd> part of `configure' so I only have to type the lisp Lloyd> directory once (during initial configuration), and then Lloyd> call `make' as follows: Like the attached patch does, perhaps? :) Note that it's actually --with-lispdir, rather than --lispdir but five extra characters won't kill you. This patch also fixes configure's long-standing inability to correctly detect xemacs. BTW, I love the MIME stuff, Lars :) --==-=-= Content-Disposition: inline; filename="/ext/src/pgnus-0.61/configure.in.patch" Content-Description: Patch to configure.in --- configure.in Sat Aug 29 10:55:03 1998 +++ configure.in.new Fri Dec 11 00:33:33 1998 @@ -1,6 +1,7 @@ AC_INIT(lisp/gnus.el) AC_SET_MAKE AC_PROG_INSTALL +AC_ARG_WITH(lispdir, [ --with-lispdir=DIR put .el & .elc files in DIR [DATA/emacs]]) AM_PATH_LISPDIR AC_PATH_PROG(MAKEINFO, makeinfo, no) AC_OUTPUT(Makefile lisp/Makefile texi/Makefile) --==-=-= Content-Disposition: inline; filename="/ext/src/pgnus-0.61/aclocal.m4.patch" Content-Description: Patch to aclocal.m4 --- aclocal.m4 Sat Aug 29 10:55:03 1998 +++ aclocal.m4.new Fri Dec 11 00:41:45 1998 @@ -4,27 +4,31 @@ [# If set to t, that means we are running in a shell under Emacs. # If you have an Emacs named "t", then use the full path. test "$EMACS" = t && EMACS= - AC_PATH_PROG(EMACS, emacs xemacs, no) + AC_PATH_PROGS(EMACS, emacs xemacs, no) if test $EMACS != "no"; then AC_MSG_CHECKING([where .elc files should go]) dnl Set default value - lispdir="\$(datadir)/emacs/site-lisp" - if test "x$prefix" = "xNONE"; then - if test -d $ac_default_prefix/share/emacs/site-lisp; then - lispdir="\$(prefix)/share/emacs/site-lisp" + if test "x$with_lispdir" = "x"; then + lispdir="\$(datadir)/emacs/site-lisp" + if test "x$prefix" = "xNONE"; then + if test -d $ac_default_prefix/share/emacs/site-lisp; then + lispdir="\$(prefix)/share/emacs/site-lisp" + else + if test -d $ac_default_prefix/lib/emacs/site-lisp; then + lispdir="\$(prefix)/lib/emacs/site-lisp" + fi + fi else - if test -d $ac_default_prefix/lib/emacs/site-lisp; then - lispdir="\$(prefix)/lib/emacs/site-lisp" - fi + if test -d $prefix/share/emacs/site-lisp; then + lispdir="\$(prefix)/share/emacs/site-lisp" + else + if test -d $prefix/lib/emacs/site-lisp; then + lispdir="\$(prefix)/lib/emacs/site-lisp" + fi + fi fi else - if test -d $prefix/share/emacs/site-lisp; then - lispdir="\$(prefix)/share/emacs/site-lisp" - else - if test -d $prefix/lib/emacs/site-lisp; then - lispdir="\$(prefix)/lib/emacs/site-lisp" - fi - fi + lispdir="$with_lispdir" fi AC_MSG_RESULT($lispdir) fi --==-=-= -- Stephen --- It should be illegal to yell "Y2K" in a crowded economy. :-) -- Larry Wall --==-=-=--