Re: preview-latex 0.9.1 and AUCTeX 11.whatever
David Kastrup <[email protected]> Tue, 29 Mar 2005 14:26:22 +0200
| Newsgroups | gmane.emacs.latex.preview.devel |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Jan-=C5ke Larsson <[email protected]> writes: > David Kastrup wrote: >> Jan-=C5ke Larsson <[email protected]> writes: >>>Perhaps check for a previous installation first? >> I don't really think this is a good idea.=20=20 > > OK, good. > >> Basically that is what I wanted to do. A list of preferred places, >> after all, is just a special case of a simple, well-chosen rule. > > Indeed. I don't think I'll have time for this tonight. Perhaps tomorrow. > (Let me know if you start working on it) I have done pretty much nothing at all yet, and I won't be able to do anything today. I just checked what has happened in my local copies of aclocal.m4 and configure.in, and the only thing that I did not check in was the following patch that does not achieve its purpose well, since the prefix might need to strip bin/architecture IIRC (at least for TeXlive and/or teTeX this is likely). I think it would be better to create another aclocal.m4 macro that does this job in a more general way, something like AUCTEX_PATH_PREFIX(prefix1, prefix2, executable) which then sets the prefix1 and prefix2 variables to the path-relative stuff in the manner I outlined previously. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment --- aclocal.m4 03 Mar 2005 15:03:30 +0100 1.44 +++ aclocal.m4 07 Mar 2005 17:29:39 +0100 @@ -62,6 +62,14 @@ AC_MSG_RESULT(${XEMACS}) AC_SUBST(XEMACS) AC_SUBST(EMACS_FLAVOR) + +if test "${prefix}" = NONE -o -z "${prefix}" +then + tmpprefix="${prefix}" + AC_PREFIX_PROGRAM(${EMACS}) + emacsprefix="${prefix}" + prefix="${tmpprefix}" +fi ]) AC_DEFUN(EMACS_CHECK_VERSION, [ --=-=-= -- David Kastrup, Kriemhildstr. 15, 44793 Bochum --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ auctex-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex-devel --=-=-=--