<?xml version="1.0" encoding="utf-8"?>
<!-- generator="wordpress/2.0.11" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>context switch</title>
	<link>http://log.emmanuelebassi.net</link>
	<description>Random babblings of a geek.</description>
	<pubDate>Fri, 10 Oct 2008 22:04:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.11</generator>
	<language>en</language>
			<item>
		<title>Paint the Silence/2</title>
		<link>http://log.emmanuelebassi.net/archives/2008/01/paint-the-silence2/</link>
		<comments>http://log.emmanuelebassi.net/archives/2008/01/paint-the-silence2/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 15:39:24 +0000</pubDate>
		<dc:creator>ebassi</dc:creator>
		
		<category>Hacking</category>

		<category>autotools</category>

		<guid isPermaLink="false">http://log.emmanuelebassi.net/archives/2008/01/paint-the-silence2/</guid>
		<description><![CDATA[Continuing the ongoing saga&#8230;
Using the --silence hackery from Jacob Berkman I found a way to finally STFU at least libtool. In your configure.ac add:

changequote(,)dnl
LIBTOOL=&#8220;\$(QUIET_LT)${LIBTOOL}&#8221;
changequote([,])dnl

Add a Makefile.decls file to the root of your project, containing:

QUIET_LT = @echo &#8216;&#160;&#160;&#160;&#160;&#8217; LIBTOOL $@;

And include it in every Makefile.am:

include $(top_srcdir)/Makefile.decls

This will silence all libtool invocations; you can make this all [...]]]></description>
			<content:encoded><![CDATA[<p><em>Continuing the <a href="http://log.emmanuelebassi.net/archives/2007/12/paint-the-silence/">ongoing saga</a>&#8230;</em></p>
<p>Using the <code>--silence</code> hackery from <a href="http://wednesdaynight.org/diary/2006/9/5">Jacob Berkman</a> I found a way to finally STFU at least libtool. In your <code>configure.ac</code> add:</p>
<pre>
changequote<span style="color:purple">(,)</span><span style="color:blue">dnl</span>
<span style="color:cyan">LIBTOOL</span><span style="color:orange">=</span><span style="color:red">&#8220;\$(QUIET_LT)${LIBTOOL}&#8221;</span>
changequote<span style="color:purple">([,])</span><span style="color:blue">dnl</span>
</pre>
<p>Add a <code>Makefile.decls</code> file to the root of your project, containing:</p>
<pre>
<span style="color:cyan">QUIET_LT</span> = @echo &#8216;&nbsp;&nbsp;&nbsp;&nbsp;&#8217; LIBTOOL $@;
</pre>
<p>And include it in every <code>Makefile.am</code>:</p>
<pre>
<span style="color:purple">include</span> <span style="color:blue">$(top_srcdir)</span>/Makefile.decls
</pre>
<p>This will silence all libtool invocations; you can make this all conditional, obviously: just sorround the <code>QUIET_*</code> declarations with <code>if VARIABLE...endif</code> and define <code>VARIABLE</code> using <code>AM_CONDITIONAL</code> in your configure template.</p>
<p>Now, I&#8217;ll just have to find a way to make gcc shut up<sup><a href="#footnote-1-238" id="footnote-link-1-238" class="footnote-link footnote-identifier-link" title="no, you cannot redefine CC, as it will be invoked by libtool as well">1</a></sup>, and so the saga will end with a third chapter.
</p>
<ol start="1" class="footnotes"><li id="footnote-1-238" class="footnote">no, you cannot redefine <code>CC</code>, as it will be invoked by libtool as well [<a href="#footnote-link-1-238" class="footnote-link footnote-back-link">&#8617;</a>]</li></ol>]]></content:encoded>
			<wfw:commentRss>http://log.emmanuelebassi.net/archives/2008/01/paint-the-silence2/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
