Re: New autoconf macro

David Kastrup <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Jan-Ake Larsson <[email protected]> writes:

> David Kastrup wrote:
>> 
>> Hi, I did some changes in aclocal.m4 and tex-site.el.in, mostly as
>> proof-of-concept.
>> 
>> Try this with
>> 
>> ./configure --with-auto-dir=woozle
>> and
>> ./configure --with-auto-dir=/woozle
>> 
>> and see the result in tex-site.el.  The Lisp removes possible double
>> slashes, and adds a single slash at the end.
>> 
>> AC_LISPIFY_DIR should be good for all such directories.
>
> Yep. IIRC the _expanded variables were introduced for the purpose of
> using them in lisp code where ${prefix} and suchlike does not make
> sense. With the new AC_LISPIFY_DIR (that I think would correctly
> expand those), we can get rid of the _expanded variables.

I am not completely sure.  I don't think that AC_LISPIFY_DIR does any
expansion by itself currently, though if that should prove necessary,
it will be quite easy to achieve by using substitute-env-vars in the
Lisp definition.  substitute-in-file-name also replaces
$... sequences, but it also collapses "anything//" to "/", so we need
to clean up double slashes with expand-file-name, anyway.

> ago. The shell syntax can be used there, so I think we can go back
> to using plain, unexpanded variables in Makefile.

IIRC, the whole business of unexpanded variables was to accommodate
our own somewhat misguided approach related to package building, and
it may be that by now all of this half-expanded/quoted stuff is
completely unnecessary since we started supporting DESTDIR.

If I am correct in that assumption, we should be able to get rid of
not only AC_FULL_EXPAND.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.