]> git.ipfire.org Git - thirdparty/libtool.git/commit
Move the echo detection code to a macro in libtool.m4. The code
authorGary V. Vaughan <gary@gnu.org>
Thu, 31 Aug 2000 17:23:44 +0000 (17:23 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 31 Aug 2000 17:23:44 +0000 (17:23 +0000)
commit0e072fa33ed51157c6c33462f25200e447994fad
tree41804cc61f6c37caac8f0a976c85c6bf14aaff56
parent39c3bd740b4997b82755d59db21fe7c11adfe748
Move the echo detection code to a macro in libtool.m4.  The code
at the top ofltconfig.in is ugly, but will go away when the rest
of ltconfig is migrated.

* Makefile.am (libtool):  Pass the value of $ECHO to ltconfig as
an environment variable.
* libtool.m4 (_LT_AC_PROG_ECHO_BACKSLASH): Quote the ECHO value
correctly so that it inserts the correct code into configure.in
suitably quoted for M4 expansion.  This code needs to be near
the top of configure.in as it calls itself recursively, so I
am using AC_DIVERSION_NOTICE (or simply NOTICE on CVS
Autoconf).  The value of ECHO is also substitued into the
Makefile to be used when Make calls ltconfig to generate
libtool, so another layer of quotation is required for the
Makefile.
(AC_LIBTOOL_SETUP):  Use it.
* ltconfig.in: Accept a value for ECHO from the environment, and
carefully substitue for $0 if it is present in the ECHO value.
Because ECHO was quoted for Make, when ltconfig is called by
configure, it is overquoted, and one layer of quotes must be
stripped.
ChangeLog
Makefile.am
libtool.m4
ltconfig.in