<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1479</id>
	<title>Nabble - Gnu - Autoconf</title>
	<updated>2009-12-09T10:56:18Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Gnu---Autoconf-f1479.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Gnu---Autoconf-f1479.html" />
	<subtitle type="html">Autoconf is an extensible package of m4 macros that produce shell scripts to automatically configure software source code packages. Gnu - Autoconf home is &lt;a href=&quot;http://www.gnu.org/software/autoconf/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26715643</id>
	<title>Re: Bug#560105: autoconf: AC_TYPE_INT32_T generates broken test?</title>
	<published>2009-12-09T10:56:18Z</published>
	<updated>2009-12-09T10:56:18Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">* Eric Blake wrote on Wed, Dec 09, 2009 at 01:38:00PM CET:
&lt;br&gt;&amp;gt; According to Ralf Wildenhues on 12/8/2009 11:25 PM:
&lt;br&gt;&amp;gt; &amp;gt; * Ralf Wildenhues wrote on Tue, Dec 08, 2009 at 11:59:26PM CET:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; * Pierre Ynard wrote on Tue, Dec 08, 2009 at 11:42:02PM CET:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; AC_TYPE_INT32_T, and also AC_TYPE_INT16_T and AC_TYPE_INT64_T, output C
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; code that looks like:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Patch below. &amp;nbsp;OK to commit and add Pierre to THANKS?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes, please.
&lt;br&gt;&lt;br&gt;Thanks. &amp;nbsp;Pushed, after fixing the description and NEWS entry to mention
&lt;br&gt;2.65 not 2.64.
&lt;br&gt;&lt;br&gt;I also pushed this patch which fixes the other wrong NEWS entry.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix NEWS description for AC_FUNC_MMAP entry.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; * NEWS: Update.
&lt;br&gt;&lt;br&gt;diff --git a/NEWS b/NEWS
&lt;br&gt;index d24db8a..69cca79 100644
&lt;br&gt;--- a/NEWS
&lt;br&gt;+++ b/NEWS
&lt;br&gt;@@ -3,7 +3,7 @@ GNU Autoconf NEWS - User visible changes.
&lt;br&gt;&amp;nbsp;* Major changes in Autoconf 2.65a (????-??-??) [experimental]
&lt;br&gt;&amp;nbsp; &amp;nbsp;Released by ???? ????
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-** AC_FUNC_MMAP works in C++ mode again. &amp;nbsp;Regression introduced in 2.64.
&lt;br&gt;+** AC_FUNC_MMAP works in C++ mode again. &amp;nbsp;Regression introduced in 2.65.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;** Use of m4_divert without a named diversion now issues a syntax warning,
&lt;br&gt;&amp;nbsp; &amp;nbsp; since it is seldom right to change diversions behind autoconf's back.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Bug-560105%3A-autoconf%3A-AC_TYPE_INT32_T-generates-broken-test--tp26702373p26715643.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26714540</id>
	<title>automake-1.11.1 test failure on Mac OS X 10.6</title>
	<published>2009-12-09T09:36:31Z</published>
	<updated>2009-12-09T09:36:31Z</updated>
	<author>
		<name>Peter O'Gorman</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Yes this is the right list :)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Automake's instspc.test fails when prefix has a ^M in it, it becomes an 
&lt;br&gt;r on darwin:
&lt;br&gt;&lt;br&gt;&amp;nbsp; /usr/bin/install -c -m 644 &amp;nbsp;../sub/nobase.h 
&lt;br&gt;'/Users/leodavis/autotools-new/automake-1.11/tests/instspc.dir/sub1/r-prefix/foo/sub'
&lt;br&gt;test &amp;nbsp; -f 
&lt;br&gt;'/Users/leodavis/autotools-new/automake-1.11/tests/instspc.dir/sub1/^M-prefix/foo/sub/nobase.h'
&lt;br&gt;make: *** [test-install-sep] Error 1
&lt;br&gt;+ eval 'build_failures=&amp;quot;$build_failures
&lt;br&gt;&lt;br&gt;&lt;br&gt;status.m4 has:
&lt;br&gt;ac_cs_awk_cr=`$AWK 'BEGIN { print &amp;quot;a\rb&amp;quot; }' &amp;lt;/dev/null 2&amp;gt;/dev/null`
&lt;br&gt;if test &amp;quot;$ac_cs_awk_cr&amp;quot; = &amp;quot;a${ac_cr}b&amp;quot;; then
&lt;br&gt;&amp;nbsp; &amp;nbsp;ac_cs_awk_cr='\r'
&lt;br&gt;else
&lt;br&gt;&amp;nbsp; &amp;nbsp;ac_cs_awk_cr=$ac_cr
&lt;br&gt;fi
&lt;br&gt;&lt;br&gt;ac_cs_awk_cr seems to be getting set to '\r' - is this correct?
&lt;br&gt;&lt;br&gt;Then later:
&lt;br&gt;cat &amp;gt;&amp;gt;$CONFIG_STATUS &amp;lt;&amp;lt;\_ACEOF || ac_write_fail=1
&lt;br&gt;if sed &amp;quot;s/$ac_cr//&amp;quot; &amp;lt; /dev/null &amp;gt; /dev/null 2&amp;gt;&amp;1; then
&lt;br&gt;&amp;nbsp; &amp;nbsp;sed &amp;quot;s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g&amp;quot;
&lt;br&gt;else
&lt;br&gt;&amp;nbsp; &amp;nbsp;cat
&lt;br&gt;fi &amp;lt; &amp;quot;$tmp/subs1.awk&amp;quot; &amp;gt; &amp;quot;$tmp/subs.awk&amp;quot; \
&lt;br&gt;&amp;nbsp; &amp;nbsp;|| AC_MSG_ERROR([could not setup config files machinery])
&lt;br&gt;_ACEOF
&lt;br&gt;&lt;br&gt;The sed changes ^M to r:
&lt;br&gt;$ printf &amp;quot;a^Mb&amp;quot; | sed 's/^M/\r/'
&lt;br&gt;arb
&lt;br&gt;&lt;br&gt;It works with GNU sed:
&lt;br&gt;printf &amp;quot;a^Mb&amp;quot; | sed 's/^M/\r/' | hexdump
&lt;br&gt;0000000 61 0d 62
&lt;br&gt;0000003
&lt;br&gt;&lt;br&gt;Peter
&lt;br&gt;-- 
&lt;br&gt;Peter O'Gorman
&lt;br&gt;&lt;a href=&quot;http://pogma.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pogma.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/automake-1.11.1-test-failure-on-Mac-OS-X-10.6-tp26714540p26714540.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26709558</id>
	<title>Re: m4sugar test 'recursion' fails</title>
	<published>2009-12-09T04:39:51Z</published>
	<updated>2009-12-09T04:39:51Z</updated>
	<author>
		<name>Eric Blake</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;According to Paolo Bonzini on 12/9/2009 2:21 AM:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Fixed thusly:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; diff --git a/tests/m4sugar.at b/tests/m4sugar.at
&lt;br&gt;&amp;gt; index a96583c..4d937cf 100644
&lt;br&gt;&amp;gt; --- a/tests/m4sugar.at
&lt;br&gt;&amp;gt; +++ b/tests/m4sugar.at
&lt;br&gt;&amp;gt; @@ -1874,7 +1874,7 @@ A
&lt;br&gt;&amp;gt; &amp;nbsp;AT_DATA_M4SUGAR([script.4s],
&lt;br&gt;&amp;gt; &amp;nbsp;[[m4_ifdef([__m4_version__],
&lt;br&gt;&amp;gt; &amp;nbsp;[m4_undefine([__m4_version__])],
&lt;br&gt;&amp;gt; -[m4_divert_push(0)48894
&lt;br&gt;&amp;gt; +[m4_divert_push([])48894
&lt;/div&gt;&lt;br&gt;Yep, that's the correct fix. &amp;nbsp;Sorry I missed it earlier.
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Don't work too hard, make some time for fun as well!
&lt;br&gt;&lt;br&gt;Eric Blake &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26709558&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (Cygwin)
&lt;br&gt;Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAksfmpcACgkQ84KuGfSFAYDWrQCfamES5c4JV22gVZHdQX+aflDN
&lt;br&gt;kmcAnRmxUnOx4zQdvaMyC9l7ixHB0Sm7
&lt;br&gt;=9qsP
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/m4sugar-test-%27recursion%27-fails-tp26705839p26709558.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26709552</id>
	<title>Re: m4sugar test 'recursion' fails</title>
	<published>2009-12-09T04:39:51Z</published>
	<updated>2009-12-09T04:39:51Z</updated>
	<author>
		<name>Eric Blake</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;According to Paolo Bonzini on 12/9/2009 2:21 AM:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Fixed thusly:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; diff --git a/tests/m4sugar.at b/tests/m4sugar.at
&lt;br&gt;&amp;gt; index a96583c..4d937cf 100644
&lt;br&gt;&amp;gt; --- a/tests/m4sugar.at
&lt;br&gt;&amp;gt; +++ b/tests/m4sugar.at
&lt;br&gt;&amp;gt; @@ -1874,7 +1874,7 @@ A
&lt;br&gt;&amp;gt; &amp;nbsp;AT_DATA_M4SUGAR([script.4s],
&lt;br&gt;&amp;gt; &amp;nbsp;[[m4_ifdef([__m4_version__],
&lt;br&gt;&amp;gt; &amp;nbsp;[m4_undefine([__m4_version__])],
&lt;br&gt;&amp;gt; -[m4_divert_push(0)48894
&lt;br&gt;&amp;gt; +[m4_divert_push([])48894
&lt;/div&gt;&lt;br&gt;Yep, that's the correct fix. &amp;nbsp;Sorry I missed it earlier.
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Don't work too hard, make some time for fun as well!
&lt;br&gt;&lt;br&gt;Eric Blake &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26709552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (Cygwin)
&lt;br&gt;Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAksfmpcACgkQ84KuGfSFAYDWrQCfamES5c4JV22gVZHdQX+aflDN
&lt;br&gt;kmcAnRmxUnOx4zQdvaMyC9l7ixHB0Sm7
&lt;br&gt;=9qsP
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Patches-f1482.html&quot; embed=&quot;fixTarget[1482]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Patches&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-m4sugar-test-%27recursion%27-fails-tp26707261p26709552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26709535</id>
	<title>Re: Bug#560105: autoconf: AC_TYPE_INT32_T generates broken test?</title>
	<published>2009-12-09T04:38:00Z</published>
	<updated>2009-12-09T04:38:00Z</updated>
	<author>
		<name>Eric Blake</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;According to Ralf Wildenhues on 12/8/2009 11:25 PM:
&lt;br&gt;&amp;gt; * Ralf Wildenhues wrote on Tue, Dec 08, 2009 at 11:59:26PM CET:
&lt;br&gt;&amp;gt;&amp;gt; * Pierre Ynard wrote on Tue, Dec 08, 2009 at 11:42:02PM CET:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; AC_TYPE_INT32_T, and also AC_TYPE_INT16_T and AC_TYPE_INT64_T, output C
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; code that looks like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Patch below. &amp;nbsp;OK to commit and add Pierre to THANKS?
&lt;br&gt;&lt;br&gt;Yes, please.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think we need to start comparing test results against tables for at
&lt;br&gt;&amp;gt;&amp;gt; least a couple of systems, in order to guard against such issues.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My current idea for this is to have a mode in which AT_CHECK_MACRO
&lt;br&gt;&amp;gt; records cache values, or we simply run `testsuite -d' and collect cache
&lt;br&gt;&amp;gt; values across all tests, maybe weeding out or commenting out those that
&lt;br&gt;&amp;gt; are not consistent across the testsuite; then redo the same for an older
&lt;br&gt;&amp;gt; release, and compare.
&lt;br&gt;&lt;br&gt;Not as part of this patch, but the idea seems like it might be worthwhile.
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Don't work too hard, make some time for fun as well!
&lt;br&gt;&lt;br&gt;Eric Blake &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26709535&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (Cygwin)
&lt;br&gt;Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAksfmigACgkQ84KuGfSFAYBGYQCZARbU/kagiplAzOdCO7t7vrCX
&lt;br&gt;/LkAnjIfRjNGaeHfcSa7VkH76766hs4k
&lt;br&gt;=kyCF
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Bug-560105%3A-autoconf%3A-AC_TYPE_INT32_T-generates-broken-test--tp26702373p26709535.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26707259</id>
	<title>Re: m4sugar test 'recursion' fails</title>
	<published>2009-12-09T01:21:53Z</published>
	<updated>2009-12-09T01:21:53Z</updated>
	<author>
		<name>Paolo Bonzini-2</name>
	</author>
	<content type="html">On 12/09/2009 07:41 AM, Ralf Wildenhues wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Eric,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; your recent diversion-name patch caused a new testsuite failure for me:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; # &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -*- compilation -*-
&lt;br&gt;&amp;gt; 69. m4sugar.at:1821: testing ...
&lt;br&gt;&amp;gt; ../../autoconf/tests/m4sugar.at:1859: autom4te --language=m4sugar script.4s -o script -o-
&lt;br&gt;&amp;gt; ../../autoconf/tests/m4sugar.at:1916: autom4te --language=m4sugar script.4s -o script -o-
&lt;br&gt;&amp;gt; --- /dev/null &amp;nbsp; 2008-04-28 20:08:22.000000000 +0200
&lt;br&gt;&amp;gt; +++ /tmp/autoconf/build/tests/testsuite.dir/at-groups/69/stderr &amp;nbsp; &amp;nbsp; &amp;nbsp;2009-12-07 09:53:15.000000000 +0100
&lt;br&gt;&amp;gt; @@ -0,0 +1 @@
&lt;br&gt;&amp;gt; +script.4s:1: warning: prefer named diversions
&lt;br&gt;&amp;gt; 69. m4sugar.at:1821: 69. recursion (m4sugar.at:1821): FAILED (m4sugar.at:1916)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Ralf
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Fixed thusly:
&lt;br&gt;&lt;br&gt;diff --git a/tests/m4sugar.at b/tests/m4sugar.at
&lt;br&gt;index a96583c..4d937cf 100644
&lt;br&gt;--- a/tests/m4sugar.at
&lt;br&gt;+++ b/tests/m4sugar.at
&lt;br&gt;@@ -1874,7 +1874,7 @@ A
&lt;br&gt;&amp;nbsp; AT_DATA_M4SUGAR([script.4s],
&lt;br&gt;&amp;nbsp; [[m4_ifdef([__m4_version__],
&lt;br&gt;&amp;nbsp; [m4_undefine([__m4_version__])],
&lt;br&gt;-[m4_divert_push(0)48894
&lt;br&gt;+[m4_divert_push([])48894
&lt;br&gt;&amp;nbsp; 9999,10000
&lt;br&gt;&amp;nbsp; 78896
&lt;br&gt;&amp;nbsp; 58894
&lt;br&gt;&lt;br&gt;Paolo
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/m4sugar-test-%27recursion%27-fails-tp26705839p26707259.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26707261</id>
	<title>Re: m4sugar test 'recursion' fails</title>
	<published>2009-12-09T01:21:53Z</published>
	<updated>2009-12-09T01:21:53Z</updated>
	<author>
		<name>Paolo Bonzini-2</name>
	</author>
	<content type="html">On 12/09/2009 07:41 AM, Ralf Wildenhues wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Eric,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; your recent diversion-name patch caused a new testsuite failure for me:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; # &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -*- compilation -*-
&lt;br&gt;&amp;gt; 69. m4sugar.at:1821: testing ...
&lt;br&gt;&amp;gt; ../../autoconf/tests/m4sugar.at:1859: autom4te --language=m4sugar script.4s -o script -o-
&lt;br&gt;&amp;gt; ../../autoconf/tests/m4sugar.at:1916: autom4te --language=m4sugar script.4s -o script -o-
&lt;br&gt;&amp;gt; --- /dev/null &amp;nbsp; 2008-04-28 20:08:22.000000000 +0200
&lt;br&gt;&amp;gt; +++ /tmp/autoconf/build/tests/testsuite.dir/at-groups/69/stderr &amp;nbsp; &amp;nbsp; &amp;nbsp;2009-12-07 09:53:15.000000000 +0100
&lt;br&gt;&amp;gt; @@ -0,0 +1 @@
&lt;br&gt;&amp;gt; +script.4s:1: warning: prefer named diversions
&lt;br&gt;&amp;gt; 69. m4sugar.at:1821: 69. recursion (m4sugar.at:1821): FAILED (m4sugar.at:1916)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Ralf
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Fixed thusly:
&lt;br&gt;&lt;br&gt;diff --git a/tests/m4sugar.at b/tests/m4sugar.at
&lt;br&gt;index a96583c..4d937cf 100644
&lt;br&gt;--- a/tests/m4sugar.at
&lt;br&gt;+++ b/tests/m4sugar.at
&lt;br&gt;@@ -1874,7 +1874,7 @@ A
&lt;br&gt;&amp;nbsp; AT_DATA_M4SUGAR([script.4s],
&lt;br&gt;&amp;nbsp; [[m4_ifdef([__m4_version__],
&lt;br&gt;&amp;nbsp; [m4_undefine([__m4_version__])],
&lt;br&gt;-[m4_divert_push(0)48894
&lt;br&gt;+[m4_divert_push([])48894
&lt;br&gt;&amp;nbsp; 9999,10000
&lt;br&gt;&amp;nbsp; 78896
&lt;br&gt;&amp;nbsp; 58894
&lt;br&gt;&lt;br&gt;Paolo
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Patches-f1482.html&quot; embed=&quot;fixTarget[1482]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Patches&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-m4sugar-test-%27recursion%27-fails-tp26707261p26707261.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26705839</id>
	<title>m4sugar test 'recursion' fails</title>
	<published>2009-12-08T22:41:06Z</published>
	<updated>2009-12-08T22:41:06Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">Hi Eric,
&lt;br&gt;&lt;br&gt;your recent diversion-name patch caused a new testsuite failure for me:
&lt;br&gt;&lt;br&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -*- compilation -*-
&lt;br&gt;69. m4sugar.at:1821: testing ...
&lt;br&gt;../../autoconf/tests/m4sugar.at:1859: autom4te --language=m4sugar script.4s -o script -o-
&lt;br&gt;../../autoconf/tests/m4sugar.at:1916: autom4te --language=m4sugar script.4s -o script -o-
&lt;br&gt;--- /dev/null &amp;nbsp; 2008-04-28 20:08:22.000000000 +0200
&lt;br&gt;+++ /tmp/autoconf/build/tests/testsuite.dir/at-groups/69/stderr &amp;nbsp; &amp;nbsp; &amp;nbsp;2009-12-07 09:53:15.000000000 +0100
&lt;br&gt;@@ -0,0 +1 @@
&lt;br&gt;+script.4s:1: warning: prefer named diversions
&lt;br&gt;69. m4sugar.at:1821: 69. recursion (m4sugar.at:1821): FAILED (m4sugar.at:1916)
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/m4sugar-test-%27recursion%27-fails-tp26705839p26705839.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26705734</id>
	<title>Re: Bug#560105: autoconf: AC_TYPE_INT32_T generates broken test?</title>
	<published>2009-12-08T22:25:33Z</published>
	<updated>2009-12-08T22:25:33Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">&lt;br&gt;* Ralf Wildenhues wrote on Tue, Dec 08, 2009 at 11:59:26PM CET:
&lt;br&gt;&amp;gt; * Pierre Ynard wrote on Tue, Dec 08, 2009 at 11:42:02PM CET:
&lt;br&gt;&amp;gt; &amp;gt; AC_TYPE_INT32_T, and also AC_TYPE_INT16_T and AC_TYPE_INT64_T, output C
&lt;br&gt;&amp;gt; &amp;gt; code that looks like:
&lt;br&gt;&lt;br&gt;Patch below. &amp;nbsp;OK to commit and add Pierre to THANKS?
&lt;br&gt;&lt;br&gt;&amp;gt; I think we need to start comparing test results against tables for at
&lt;br&gt;&amp;gt; least a couple of systems, in order to guard against such issues.
&lt;br&gt;&lt;br&gt;My current idea for this is to have a mode in which AT_CHECK_MACRO
&lt;br&gt;records cache values, or we simply run `testsuite -d' and collect cache
&lt;br&gt;values across all tests, maybe weeding out or commenting out those that
&lt;br&gt;are not consistent across the testsuite; then redo the same for an older
&lt;br&gt;release, and compare.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix 2.64 AC_TYPE_INT*_T macro body text regression.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; * lib/autoconf/types.m4 (_AC_TYPE_INT_BODY): Move helper enum
&lt;br&gt;&amp;nbsp; &amp;nbsp; definition to prologue section, to avoid syntax error.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * NEWS, THANKS: Update.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Report by Pierre Ynard.
&lt;br&gt;&lt;br&gt;diff --git a/NEWS b/NEWS
&lt;br&gt;index 97dcab0..c36584c 100644
&lt;br&gt;--- a/NEWS
&lt;br&gt;+++ b/NEWS
&lt;br&gt;@@ -8,6 +8,9 @@ GNU Autoconf NEWS - User visible changes.
&lt;br&gt;&amp;nbsp;** Use of m4_divert without a named diversion now issues a syntax warning,
&lt;br&gt;&amp;nbsp; &amp;nbsp; since it is seldom right to change diversions behind autoconf's back.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+** The macros AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, and
&lt;br&gt;+ &amp;nbsp; AC_TYPE_INT64_T work again. &amp;nbsp;Regression introduced in 2.64.
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;* Major changes in Autoconf 2.65 (2009-11-21) [stable]
&lt;br&gt;&amp;nbsp; &amp;nbsp;Released by Eric Blake, based on git versions 2.64.*.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4
&lt;br&gt;index 7a73fc2..3829c4c 100644
&lt;br&gt;--- a/lib/autoconf/types.m4
&lt;br&gt;+++ b/lib/autoconf/types.m4
&lt;br&gt;@@ -635,14 +635,14 @@ m4_define([_AC_TYPE_INT_BODY],
&lt;br&gt;&amp;nbsp;	 'long long int' 'short int' 'signed char'; do
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AC_COMPILE_IFELSE(
&lt;br&gt;&amp;nbsp;	 [AC_LANG_BOOL_COMPILE_TRY(
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp;[AC_INCLUDES_DEFAULT],
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp;[enum { N = $[]2 / 2 - 1 };
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp; 0 &amp;lt; ($ac_type) ((((($ac_type) 1 &amp;lt;&amp;lt; N) &amp;lt;&amp;lt; N) - 1) * 2 + 1)])],
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;[AC_INCLUDES_DEFAULT
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; enum { N = $[]2 / 2 - 1 };],
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;[0 &amp;lt; ($ac_type) ((((($ac_type) 1 &amp;lt;&amp;lt; N) &amp;lt;&amp;lt; N) - 1) * 2 + 1)])],
&lt;br&gt;&amp;nbsp;	 [AC_COMPILE_IFELSE(
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;[AC_LANG_BOOL_COMPILE_TRY(
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp; &amp;nbsp; [AC_INCLUDES_DEFAULT],
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp; &amp;nbsp; [enum { N = $[]2 / 2 - 1 };
&lt;br&gt;-		($ac_type) ((((($ac_type) 1 &amp;lt;&amp;lt; N) &amp;lt;&amp;lt; N) - 1) * 2 + 1)
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; [AC_INCLUDES_DEFAULT
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;enum { N = $[]2 / 2 - 1 };],
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp; &amp;nbsp; [($ac_type) ((((($ac_type) 1 &amp;lt;&amp;lt; N) &amp;lt;&amp;lt; N) - 1) * 2 + 1)
&lt;br&gt;&amp;nbsp;		 &amp;lt; ($ac_type) ((((($ac_type) 1 &amp;lt;&amp;lt; N) &amp;lt;&amp;lt; N) - 1) * 2 + 2)])],
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;[],
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;[AS_CASE([$ac_type], [int$[]2_t],
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Bug-560105%3A-autoconf%3A-AC_TYPE_INT32_T-generates-broken-test--tp26702373p26705734.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26702373</id>
	<title>Re: Bug#560105: autoconf: AC_TYPE_INT32_T generates broken test?</title>
	<published>2009-12-08T14:59:26Z</published>
	<updated>2009-12-08T14:59:26Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">tags upstream forwarded
&lt;br&gt;thanks
&lt;br&gt;&lt;br&gt;[ This is &amp;lt;&lt;a href=&quot;http://bugs.debian.org/560105&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.debian.org/560105&lt;/a&gt;&amp;gt; ]
&lt;br&gt;&lt;br&gt;Hello Pierre,
&lt;br&gt;&lt;br&gt;thanks for the bug report.
&lt;br&gt;&lt;br&gt;* Pierre Ynard wrote on Tue, Dec 08, 2009 at 11:42:02PM CET:
&lt;br&gt;&amp;gt; AC_TYPE_INT32_T, and also AC_TYPE_INT16_T and AC_TYPE_INT64_T, output C
&lt;br&gt;&amp;gt; code that looks like:
&lt;br&gt;&lt;br&gt;&amp;gt; static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;lt; ($ac_type) ((((($ac_type) 1 &amp;lt;&amp;lt; N) &amp;lt;&amp;lt; N) - 1) * 2 + 1))];
&lt;br&gt;&amp;gt; test_array [0] = 0
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; which fails to compile with errors like:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; conftest.c: In function 'main':
&lt;br&gt;&amp;gt; conftest.c:73: error: expected ')' before ';' token
&lt;br&gt;&amp;gt; conftest.c:74: error: expected expression before ']' token
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thus, the check always returns no. And then ./configure of project foo
&lt;br&gt;&amp;gt; aborts because it can find its int types...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This problem isn't there in autoconf 2.64-4.
&lt;/div&gt;&lt;br&gt;What an ugly regression. &amp;nbsp;Confirmed. &amp;nbsp;bisect converges at:
&lt;br&gt;&lt;br&gt;15f8838bb6239ebc16beb8472de0217a10de3d5e is the first bad commit
&lt;br&gt;commit 15f8838bb6239ebc16beb8472de0217a10de3d5e
&lt;br&gt;Author: Eric Blake &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26702373&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: &amp;nbsp; Tue Oct 20 08:30:03 2009 -0600
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix AC_TYPE_UINT64_T on Tru64 with gcc 3.4.4.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT_BODY)
&lt;br&gt;&amp;nbsp; &amp;nbsp; (_AC_TYPE_INT_BODY): Avoid undefined behavior of attempting shift
&lt;br&gt;&amp;nbsp; &amp;nbsp; wider than type.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * NEWS: Document this.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Reported by Rainer Orth.
&lt;br&gt;&lt;br&gt;I think we need to start comparing test results against tables for at
&lt;br&gt;least a couple of systems, in order to guard against such issues.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Bug-560105%3A-autoconf%3A-AC_TYPE_INT32_T-generates-broken-test--tp26702373p26702373.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26686795</id>
	<title>Re: Dereference of undefined pointer value in conftest.c</title>
	<published>2009-12-07T16:25:58Z</published>
	<updated>2009-12-07T16:25:58Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">Hello Tomas,
&lt;br&gt;&lt;br&gt;* Tomas Carnecky wrote on Mon, Dec 07, 2009 at 10:00:43AM CET:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Dec 7, 2009, at 7:36 AM, Ralf Wildenhues wrote:
&lt;br&gt;&amp;gt; &amp;gt; Last time we looked at this code because someone reported oddities, we
&lt;br&gt;&amp;gt; &amp;gt; concluded that we shouldn't change the test because we had no way of
&lt;br&gt;&amp;gt; &amp;gt; verifying whether the test would still expose the documented issue
&lt;br&gt;&amp;gt; &amp;gt; afterwards. &amp;nbsp;In general, you are of course right that tests shouldn't
&lt;br&gt;&amp;gt; &amp;gt; have undefined behavior, but sometimes that is unavoidable.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I see. It was interesting to run the configure script through clang
&lt;br&gt;&amp;gt; and see which warnings it would generate. I'll just ignore those in
&lt;br&gt;&amp;gt; the future.
&lt;/div&gt;&lt;br&gt;Actually, I think it would make sense to have them reported and
&lt;br&gt;annotated in the macros somehow. &amp;nbsp;After all, they could be actual bugs.
&lt;br&gt;&lt;br&gt;I'm not sure whether it is useful to use annotations of a specific
&lt;br&gt;analysis tool like clang; one alternative would be to just note it in
&lt;br&gt;the comments before the macro.
&lt;br&gt;&lt;br&gt;So if you care about this, here's a suggestion: run the full Autoconf
&lt;br&gt;test suite with TESTSUITEFLAGS='-d CC=...clang' to keep the test
&lt;br&gt;directories and with CC suitably set for analysis. &amp;nbsp;Then let's examine
&lt;br&gt;the results. &amp;nbsp;(If you choose not to do this, I can do it too, time
&lt;br&gt;permitting.)
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26686795&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dereference-of-undefined-pointer-value-in-conftest.c-tp26671163p26686795.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674415</id>
	<title>Re: Dereference of undefined pointer value in conftest.c</title>
	<published>2009-12-07T01:00:43Z</published>
	<updated>2009-12-07T01:00:43Z</updated>
	<author>
		<name>Tomas Carnecky</name>
	</author>
	<content type="html">&lt;br&gt;On Dec 7, 2009, at 7:36 AM, Ralf Wildenhues wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Tomas,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * Tomas Carnecky wrote on Sun, Dec 06, 2009 at 09:10:47PM CET:
&lt;br&gt;&amp;gt;&amp;gt; I just ran the clang static analyzer on the xserver configure script and
&lt;br&gt;&amp;gt;&amp;gt; it reported a few issues. Most of them were dead assignments/increments,
&lt;br&gt;&amp;gt;&amp;gt; but there also was one dereference of an undefined pointer value. I
&lt;br&gt;&amp;gt;&amp;gt; don't know which tests the conftest.c belongs to, but I doubt it's to
&lt;br&gt;&amp;gt;&amp;gt; test if an application can safely write to unknown memory ;). The test
&lt;br&gt;&amp;gt;&amp;gt; contains the following code:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The code is from AC_C_CONST. &amp;nbsp;If your package requires anything near a
&lt;br&gt;&amp;gt; C89 (or newer) compiler, then you don't need and shouldn't use
&lt;br&gt;&amp;gt; AC_C_CONST. &amp;nbsp;Compilers not grokking 'const' are old (I don't know how
&lt;br&gt;&amp;gt; old, but I've never met one).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Last time we looked at this code because someone reported oddities, we
&lt;br&gt;&amp;gt; concluded that we shouldn't change the test because we had no way of
&lt;br&gt;&amp;gt; verifying whether the test would still expose the documented issue
&lt;br&gt;&amp;gt; afterwards. &amp;nbsp;In general, you are of course right that tests shouldn't
&lt;br&gt;&amp;gt; have undefined behavior, but sometimes that is unavoidable.
&lt;/div&gt;&lt;br&gt;I see. It was interesting to run the configure script through clang and see which warnings it would generate. I'll just ignore those in the future.
&lt;br&gt;&lt;br&gt;tom
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674415&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dereference-of-undefined-pointer-value-in-conftest.c-tp26671163p26674415.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673154</id>
	<title>Re: Dereference of undefined pointer value in conftest.c</title>
	<published>2009-12-06T22:36:49Z</published>
	<updated>2009-12-06T22:36:49Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">Hello Tomas,
&lt;br&gt;&lt;br&gt;* Tomas Carnecky wrote on Sun, Dec 06, 2009 at 09:10:47PM CET:
&lt;br&gt;&amp;gt; I just ran the clang static analyzer on the xserver configure script and
&lt;br&gt;&amp;gt; it reported a few issues. Most of them were dead assignments/increments,
&lt;br&gt;&amp;gt; but there also was one dereference of an undefined pointer value. I
&lt;br&gt;&amp;gt; don't know which tests the conftest.c belongs to, but I doubt it's to
&lt;br&gt;&amp;gt; test if an application can safely write to unknown memory ;). The test
&lt;br&gt;&amp;gt; contains the following code:
&lt;br&gt;&lt;br&gt;The code is from AC_C_CONST. &amp;nbsp;If your package requires anything near a
&lt;br&gt;C89 (or newer) compiler, then you don't need and shouldn't use
&lt;br&gt;AC_C_CONST. &amp;nbsp;Compilers not grokking 'const' are old (I don't know how
&lt;br&gt;old, but I've never met one).
&lt;br&gt;&lt;br&gt;Last time we looked at this code because someone reported oddities, we
&lt;br&gt;concluded that we shouldn't change the test because we had no way of
&lt;br&gt;verifying whether the test would still expose the documented issue
&lt;br&gt;afterwards. &amp;nbsp;In general, you are of course right that tests shouldn't
&lt;br&gt;have undefined behavior, but sometimes that is unavoidable.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673154&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dereference-of-undefined-pointer-value-in-conftest.c-tp26671163p26673154.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26671677</id>
	<title>Re: Dereference of undefined pointer value in conftest.c</title>
	<published>2009-12-06T18:27:50Z</published>
	<updated>2009-12-06T18:27:50Z</updated>
	<author>
		<name>Eric Blake</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;According to Ruben Safir on 12/6/2009 7:15 PM:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, Dec 06, 2009 at 09:10:47PM +0100, Tomas Carnecky wrote:
&lt;br&gt;&amp;gt;&amp;gt; I just ran the clang static analyzer on the xserver configure script and
&lt;br&gt;&amp;gt;&amp;gt; it reported a few issues. Most of them were dead assignments/increments,
&lt;br&gt;&amp;gt;&amp;gt; but there also was one dereference of an undefined pointer value. I
&lt;br&gt;&amp;gt;&amp;gt; don't know which tests the conftest.c belongs to, but I doubt it's to
&lt;br&gt;&amp;gt;&amp;gt; test if an application can safely write to unknown memory ;). The test
&lt;br&gt;&amp;gt;&amp;gt; contains the following code:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; { /* SCO 3.2v4 cc rejects this. */
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; char *t;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; char const *s = 0 ? (char *) 0 : (char const *) 0;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; *t++ = 0; /* &amp;lt;&amp;lt;&amp;lt; t is undefined! */
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; if (s) return 0;
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Tell me if you want more informations or if you are interested in the
&lt;br&gt;&amp;gt;&amp;gt; full report from clang.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; tom
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This whole piece of code looks screwed up to me. &amp;nbsp;Why would a trinary
&lt;br&gt;&amp;gt; operator try to return anonymous nulls?
&lt;/div&gt;&lt;br&gt;Both of you are missing the point of this test.
&lt;br&gt;&lt;br&gt;$ git grep -B30 't\+\+ = 0'
&lt;br&gt;&lt;br&gt;shows that it is part of:
&lt;br&gt;&lt;br&gt;&amp;gt; lib/autoconf/c.m4-AC_DEFUN([AC_C_CONST],
&lt;br&gt;&amp;gt; lib/autoconf/c.m4-[AC_CACHE_CHECK([for an ANSI C-conforming const], ac_cv_c_const,
&lt;br&gt;&amp;gt; lib/autoconf/c.m4-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
&lt;br&gt;&lt;br&gt;in other words, it is a compile-only test, to see if the compiler supports
&lt;br&gt;a compliant implementation of const. &amp;nbsp;The code in question will never be
&lt;br&gt;run, so a ternary operator returning NULL, or dead code, or even
&lt;br&gt;dereferencing uninitialized variables, don't matter. &amp;nbsp;All that matters is
&lt;br&gt;that the compiler is properly type-safe and properly honors const.
&lt;br&gt;&lt;br&gt;That said, if there are some simple things we can to do to make various
&lt;br&gt;compilers less likely to complain about suspicious concepts while still
&lt;br&gt;getting correct answers about detecting broken compilers, then propose a
&lt;br&gt;patch. &amp;nbsp;But for now, I'm not worried about changing anything.
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Don't work too hard, make some time for fun as well!
&lt;br&gt;&lt;br&gt;Eric Blake &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26671677&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (Cygwin)
&lt;br&gt;Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAkscaCYACgkQ84KuGfSFAYCmaACfRgyFPRI6qnUcN/EIW4R04VVu
&lt;br&gt;IWIAoMmuAe9xhHD2g3Y/hUj0WTUI13ft
&lt;br&gt;=7i3k
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26671677&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dereference-of-undefined-pointer-value-in-conftest.c-tp26671163p26671677.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26671592</id>
	<title>Re: Dereference of undefined pointer value in conftest.c</title>
	<published>2009-12-06T18:15:18Z</published>
	<updated>2009-12-06T18:15:18Z</updated>
	<author>
		<name>Ruben Safir Secretary NYLXS</name>
	</author>
	<content type="html">On Sun, Dec 06, 2009 at 09:10:47PM +0100, Tomas Carnecky wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I just ran the clang static analyzer on the xserver configure script and
&lt;br&gt;&amp;gt; it reported a few issues. Most of them were dead assignments/increments,
&lt;br&gt;&amp;gt; but there also was one dereference of an undefined pointer value. I
&lt;br&gt;&amp;gt; don't know which tests the conftest.c belongs to, but I doubt it's to
&lt;br&gt;&amp;gt; test if an application can safely write to unknown memory ;). The test
&lt;br&gt;&amp;gt; contains the following code:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; { /* SCO 3.2v4 cc rejects this. */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; char *t;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; char const *s = 0 ? (char *) 0 : (char const *) 0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *t++ = 0; /* &amp;lt;&amp;lt;&amp;lt; t is undefined! */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if (s) return 0;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Tell me if you want more informations or if you are interested in the
&lt;br&gt;&amp;gt; full report from clang.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; tom
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;This whole piece of code looks screwed up to me. &amp;nbsp;Why would a trinary
&lt;br&gt;operator try to return anonymous nulls?
&lt;br&gt;&lt;br&gt;Ruben
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Autoconf mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26671592&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.mrbrklyn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mrbrklyn.com&lt;/a&gt;&amp;nbsp;- Interesting Stuff
&lt;br&gt;&lt;a href=&quot;http://www.nylxs.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nylxs.com&lt;/a&gt;&amp;nbsp;- Leadership Development in Free Software
&lt;br&gt;&lt;br&gt;So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world &amp;nbsp;- RI Safir 1998
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://fairuse.nylxs.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fairuse.nylxs.com&lt;/a&gt;&amp;nbsp; DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
&lt;br&gt;&lt;br&gt;&amp;quot;Yeah - I write Free Software...so SUE ME&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;quot;The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society.&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;quot;&amp;gt; I'm an engineer. I choose the best tool for the job, politics be damned.&amp;lt;
&lt;br&gt;You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. &amp;nbsp;I guess you missed that one.&amp;quot;
&lt;br&gt;&lt;br&gt;© Copyright for the Digital Millennium
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26671592&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dereference-of-undefined-pointer-value-in-conftest.c-tp26671163p26671592.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26671163</id>
	<title>Dereference of undefined pointer value in conftest.c</title>
	<published>2009-12-06T12:10:47Z</published>
	<updated>2009-12-06T12:10:47Z</updated>
	<author>
		<name>Tomas Carnecky</name>
	</author>
	<content type="html">I just ran the clang static analyzer on the xserver configure script and
&lt;br&gt;it reported a few issues. Most of them were dead assignments/increments,
&lt;br&gt;but there also was one dereference of an undefined pointer value. I
&lt;br&gt;don't know which tests the conftest.c belongs to, but I doubt it's to
&lt;br&gt;test if an application can safely write to unknown memory ;). The test
&lt;br&gt;contains the following code:
&lt;br&gt;&lt;br&gt;{ /* SCO 3.2v4 cc rejects this. */
&lt;br&gt;&amp;nbsp; &amp;nbsp; char *t;
&lt;br&gt;&amp;nbsp; &amp;nbsp; char const *s = 0 ? (char *) 0 : (char const *) 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; *t++ = 0; /* &amp;lt;&amp;lt;&amp;lt; t is undefined! */
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (s) return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Tell me if you want more informations or if you are interested in the
&lt;br&gt;full report from clang.
&lt;br&gt;&lt;br&gt;tom
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26671163&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dereference-of-undefined-pointer-value-in-conftest.c-tp26671163p26671163.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26664857</id>
	<title>Re: GNU Make -v output no longer includes &quot;version&quot;</title>
	<published>2009-12-06T05:08:38Z</published>
	<updated>2009-12-06T05:08:38Z</updated>
	<author>
		<name>Dave Hart-2</name>
	</author>
	<content type="html">On Sun, Dec 6, 2009 at 8:52 UTC, Ralf Wildenhues wrote:
&lt;br&gt;&amp;gt; Thanks for reporting this; but you have arrived at the wrong place to
&lt;br&gt;&amp;gt; report it: while this code comes from an Autoconf macro, it doesn't
&lt;br&gt;&amp;gt; come from Autoconf itself; presumably it's from a macro shipping with
&lt;br&gt;&amp;gt; ntp.
&lt;br&gt;&lt;br&gt;Yes, it comes from the main configure.ac of NTP. &amp;nbsp;Apologies for the
&lt;br&gt;noise, I had incorrectly assumed it was coming from Automake or
&lt;br&gt;Autoconf since it didn't make sense to me that NTP would have both the
&lt;br&gt;NTP_VPATH_HACK macro in m4/ntp_vpathhack.m4 and a different snippet
&lt;br&gt;also dealing with VPATH elsewhere, but we do.
&lt;br&gt;&lt;br&gt;Thanks for the quick response,
&lt;br&gt;Dave Hart
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26664857&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GNU-Make--v-output-no-longer-includes-%22version%22-tp26662661p26664857.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663136</id>
	<title>Re: GNU Make -v output no longer includes &quot;version&quot;</title>
	<published>2009-12-06T00:52:53Z</published>
	<updated>2009-12-06T00:52:53Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">Hello Dave,
&lt;br&gt;&lt;br&gt;* Dave Hart wrote on Sun, Dec 06, 2009 at 07:38:30AM CET:
&lt;br&gt;&amp;gt; Having fixed a similar bug in a NTP-local NTP_VPATH_HACK macro, the
&lt;br&gt;&amp;gt; following snippet jumped out at me in a configure script from
&lt;br&gt;&amp;gt; ntp-4.2.5p250-RC generated with Autoconf 2.65:
&lt;br&gt;&lt;br&gt;Thanks for reporting this; but you have arrived at the wrong place to
&lt;br&gt;report it: while this code comes from an Autoconf macro, it doesn't
&lt;br&gt;come from Autoconf itself; presumably it's from a macro shipping with
&lt;br&gt;ntp. &amp;nbsp;You need to report this to the ntp maintainers. &amp;nbsp;You can notify
&lt;br&gt;the GNU make list (bug-make at gnu.org), but my guess is that their
&lt;br&gt;--version output was just changed to conform to GNU Coding Standards so
&lt;br&gt;they are unlikely to undo that.
&lt;br&gt;&lt;br&gt;Hope that helps.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GNU-Make--v-output-no-longer-includes-%22version%22-tp26662661p26663136.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26662661</id>
	<title>GNU Make -v output no longer includes &quot;version&quot;</title>
	<published>2009-12-05T22:38:30Z</published>
	<updated>2009-12-05T22:38:30Z</updated>
	<author>
		<name>Dave Hart-2</name>
	</author>
	<content type="html">Having fixed a similar bug in a NTP-local NTP_VPATH_HACK macro, the
&lt;br&gt;following snippet jumped out at me in a configure script from
&lt;br&gt;ntp-4.2.5p250-RC generated with Autoconf 2.65:
&lt;br&gt;&lt;br&gt;case &amp;quot;$ac_busted_vpath_in_make$srcdir&amp;quot; in
&lt;br&gt;&amp;nbsp;no*) ;;
&lt;br&gt;&amp;nbsp;yes.) ;;
&lt;br&gt;&amp;nbsp;*) case &amp;quot;`${MAKE-make} -v -f /dev/null 2&amp;gt;/dev/null | sed -e 's/GNU
&lt;br&gt;Make version \(1-9.]*\).*/\1/' -e q`&amp;quot; in
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;'')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; as_fn_error &amp;quot;building outside of the main directory requires
&lt;br&gt;GNU make&amp;quot; &amp;quot;$LINENO&amp;quot; 5
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*) ;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; esac
&lt;br&gt;&amp;nbsp; &amp;nbsp; ;;
&lt;br&gt;esac
&lt;br&gt;&lt;br&gt;Note that GNU Make doesn't include the word &amp;quot;version&amp;quot; in -v output
&lt;br&gt;anymore, apparently:
&lt;br&gt;&lt;br&gt;hart@psp-fb2&amp;gt; gmake -v
&lt;br&gt;GNU Make 3.81
&lt;br&gt;Copyright (C) 2006 &amp;nbsp;Free Software Foundation, Inc.
&lt;br&gt;This is free software; see the source for copying conditions.
&lt;br&gt;There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
&lt;br&gt;PARTICULAR PURPOSE.
&lt;br&gt;&lt;br&gt;This program built for i386-portbld-freebsd6.4
&lt;br&gt;hart@psp-fb2&amp;gt;
&lt;br&gt;&lt;br&gt;So I'd suggest removing it from the sed expression above.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Dave Hart
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662661&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GNU-Make--v-output-no-longer-includes-%22version%22-tp26662661p26662661.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26662627</id>
	<title>Re: license in generated files</title>
	<published>2009-12-05T14:10:06Z</published>
	<updated>2009-12-05T14:10:06Z</updated>
	<author>
		<name>Jonathan Nieder</name>
	</author>
	<content type="html">Ralf Wildenhues wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Well, if you merge together portions with different copyrights, wasn't
&lt;br&gt;&amp;gt; it ok to just list the copyright statements one after the other, with
&lt;br&gt;&amp;gt; some indication on what covers what?
&lt;br&gt;&lt;br&gt;Yes, that’s true. &amp;nbsp;A stickler for details might note that the current
&lt;br&gt;notice says “This Makefile.in is free software”, which is not always the
&lt;br&gt;case.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26662627&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karl@...&lt;/a&gt; (Karl Berry) writes:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2) [More important.] &amp;nbsp;How about having autoheader add the same statement
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; to config.in?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sounds like a good idea, although the amount of copyrightable content is
&lt;br&gt;&amp;gt; pretty limited there (thinking of original content, not just pure number
&lt;br&gt;&amp;gt; of lines).
&lt;br&gt;&lt;br&gt;Doesn’t the copyright (and license) apply to documentation as well? &amp;nbsp;At
&lt;br&gt;least this was enough to get me to track down the origin of the comments
&lt;br&gt;in one long config.h to make sure it all came from autoconf.
&lt;br&gt;&lt;br&gt;Though it is probably unnecessary, I would be happy to see a notice.
&lt;br&gt;&lt;br&gt;Thanks also for pointing out AC_COPYRIGHT; I hadn’t known about that.
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;Jonathan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/license-in-generated-files-tp26650888p26662627.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26656067</id>
	<title>Re: testsuite.log</title>
	<published>2009-12-05T06:25:07Z</published>
	<updated>2009-12-05T06:25:07Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">Hello Karl,
&lt;br&gt;&lt;br&gt;thanks for the report.
&lt;br&gt;&lt;br&gt;* Karl Waern wrote on Sat, Dec 05, 2009 at 12:42:47AM CET:
&lt;br&gt;&amp;gt; There was an admonition to send this along; don't know enough about
&lt;br&gt;&amp;gt; this to have any other information which might help, but hopefully
&lt;br&gt;&amp;gt; this is of some help!
&lt;br&gt;&lt;br&gt;This is the information about the failing test:
&lt;br&gt;&lt;br&gt;&amp;gt; 34. tools.at:1127: testing ...
&lt;br&gt;&amp;gt; ./tools.at:1133: automake --version || exit 77
&lt;br&gt;&amp;gt; stderr:
&lt;br&gt;&amp;gt; stdout:
&lt;br&gt;&amp;gt; automake (GNU automake) 1.10
&lt;br&gt;[...]
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; ./tools.at:1134: test ! -f $HOME/.autom4te.cfg || exit 77
&lt;br&gt;&amp;gt; stderr:
&lt;br&gt;&amp;gt; stdout:
&lt;br&gt;&amp;gt; ./tools.at:1151: aclocal || { ret=$?; test $ret -eq 63 &amp;&amp; ret=77; exit $ret; }
&lt;br&gt;&amp;gt; stderr:
&lt;br&gt;&amp;gt; ./tools.at:1152: test -d autom4te.cache || exit 77
&lt;br&gt;&amp;gt; ./tools.at:1153: autoconf
&lt;br&gt;&amp;gt; --- /dev/null &amp;nbsp; 2009-12-04 15:17:40.000000000 -0800
&lt;br&gt;&amp;gt; +++ /Users/kmw47/Downloads/autoconf-2.65/tests/testsuite.dir/at-groups/34/stderr &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2009-12-04 15:17:40.000000000 -0800
&lt;br&gt;&amp;gt; @@ -0,0 +1,5 @@
&lt;br&gt;&amp;gt; +aclocal.m4:17: error: this file was generated for autoconf 2.61.
&lt;br&gt;&amp;gt; +You have another version of autoconf. &amp;nbsp;If you want to use that,
&lt;br&gt;&amp;gt; +you should regenerate the build system entirely.
&lt;br&gt;&amp;gt; +aclocal.m4:17: the top level
&lt;br&gt;&amp;gt; +autom4te: /usr/bin/m4 failed with exit status: 63
&lt;br&gt;&amp;gt; ./tools.at:1153: exit code was 63, expected 0
&lt;br&gt;&amp;gt; 34. tools.at:1127: 34. autom4te preselections (tools.at:1127): FAILED (tools.at:1153)
&lt;/div&gt;&lt;br&gt;Hmm. &amp;nbsp;That's weird. &amp;nbsp;Have you built and installed Automake yourself, and
&lt;br&gt;if yes, where? &amp;nbsp;Do you have the environment variable $AUTOM4TE set to
&lt;br&gt;some value?
&lt;br&gt;&lt;br&gt;aclocal should be picking up the autom4te program from the tests
&lt;br&gt;directory.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/testsuite.log-tp26651559p26656067.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26655289</id>
	<title>Re: testsuite: fixed spurious failure in vala4.test (w.r.t. Solaris sh)</title>
	<published>2009-12-05T04:39:28Z</published>
	<updated>2009-12-05T04:39:28Z</updated>
	<author>
		<name>Eric Blake</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;According to Ralf Wildenhues on 12/5/2009 5:23 AM:
&lt;br&gt;&amp;gt; That was a pretty bad failure, with the example not matching the
&lt;br&gt;&amp;gt; description at all. &amp;nbsp;Next try. &amp;nbsp;OK?
&lt;br&gt;&lt;br&gt;The second spin is okay (and I'm embarrassed about the obvious typo fix).
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Don't work too hard, make some time for fun as well!
&lt;br&gt;&lt;br&gt;Eric Blake &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655289&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (Cygwin)
&lt;br&gt;Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAksaVIQACgkQ84KuGfSFAYBRCgCfZu4tnr9B0xF3UwocWA/3nIVS
&lt;br&gt;8M0AoKrqaYY4ffy/GGhgNXcYVfJTNZbF
&lt;br&gt;=0cIH
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Patches-f1482.html&quot; embed=&quot;fixTarget[1482]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Patches&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-testsuite%3A-fixed-spurious-failure-in-vala4.test-%28w.r.t.-Solaris-sh%29-tp26655096p26655289.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26655175</id>
	<title>Re: testsuite: fixed spurious failure in vala4.test (w.r.t. Solaris sh)</title>
	<published>2009-12-05T04:23:59Z</published>
	<updated>2009-12-05T04:23:59Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">* Ralf Wildenhues wrote on Sat, Dec 05, 2009 at 01:02:58PM CET:
&lt;br&gt;&amp;gt; [ adding autoconf-patches; this is
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://thread.gmane.org/gmane.comp.sysutils.automake.patches/3698&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://thread.gmane.org/gmane.comp.sysutils.automake.patches/3698&lt;/a&gt;&amp;gt; ]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Proposed patch for Autoconf. &amp;nbsp;OK?
&lt;br&gt;&lt;br&gt;That was a pretty bad failure, with the example not matching the
&lt;br&gt;description at all. &amp;nbsp;Next try. &amp;nbsp;OK?
&lt;br&gt;&lt;br&gt;&lt;br&gt;commit 3efa7027f91c0f232c5b4bafba1ffd415a58cde8
&lt;br&gt;Author: Stefano Lattarini &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655175&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stefano.lattarini@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: &amp;nbsp; Sat Dec 5 12:56:30 2009 +0100
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Document Solaris/Heirloom sh set -e issue with command substitutions.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
&lt;br&gt;&amp;nbsp; &amp;nbsp; in previous example. &amp;nbsp;Document failure to honor &amp;&amp; lists with set -e
&lt;br&gt;&amp;nbsp; &amp;nbsp; and a command substitution in the failing command.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Report and initial patch by Stefano Lattarini against Automake.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; Signed-off-by: Ralf Wildenhues &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655175&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ralf.Wildenhues@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;diff --git a/ChangeLog b/ChangeLog
&lt;br&gt;index e03604d..1c0c612 100644
&lt;br&gt;--- a/ChangeLog
&lt;br&gt;+++ b/ChangeLog
&lt;br&gt;@@ -1,3 +1,12 @@
&lt;br&gt;+2009-12-05 &amp;nbsp;Stefano Lattarini &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655175&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stefano.lattarini@...&lt;/a&gt;&amp;gt;
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;Ralf Wildenhues &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655175&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ralf.Wildenhues@...&lt;/a&gt;&amp;gt;
&lt;br&gt;+
&lt;br&gt;+	Document Solaris/Heirloom sh set -e issue with command substitutions.
&lt;br&gt;+	* doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
&lt;br&gt;+	in previous example. &amp;nbsp;Document failure to honor &amp;&amp; lists with set -e
&lt;br&gt;+	and a command substitution in the failing command.
&lt;br&gt;+	Report and initial patch by Stefano Lattarini against Automake.
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;2009-12-04 &amp;nbsp;Eric Blake &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655175&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	Warn if using unnamed diversion.
&lt;br&gt;diff --git a/doc/autoconf.texi b/doc/autoconf.texi
&lt;br&gt;index 7d2c72e..3144610 100644
&lt;br&gt;--- a/doc/autoconf.texi
&lt;br&gt;+++ b/doc/autoconf.texi
&lt;br&gt;@@ -16794,12 +16794,23 @@ Limitations of Builtins
&lt;br&gt;&amp;nbsp;Solaris @command{/bin/sh} cannot be ignored, even with @samp{||}.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;@example
&lt;br&gt;-$ @kbd{/bin/sh -c 'set -d; foo=`false` || echo foo; echo bar'}
&lt;br&gt;-$ @kbd{bash -c 'set -d; foo=`false` || echo foo; echo bar'}
&lt;br&gt;+$ @kbd{/bin/sh -c 'set -e; foo=`false` || echo foo; echo bar'}
&lt;br&gt;+$ @kbd{bash -c 'set -e; foo=`false` || echo foo; echo bar'}
&lt;br&gt;&amp;nbsp;foo
&lt;br&gt;&amp;nbsp;bar
&lt;br&gt;&amp;nbsp;@end example
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+@noindent
&lt;br&gt;+Moreover, a command substitution, successful or not, causes this shell to
&lt;br&gt;+exit from a failing outer command even in presence of an @samp{&amp;&amp;} list:
&lt;br&gt;+
&lt;br&gt;+@example
&lt;br&gt;+$ @kbd{bash -c 'set -e; false `true` &amp;&amp; echo notreached; echo ok'}
&lt;br&gt;+ok
&lt;br&gt;+$ @kbd{sh -c 'set -e; false `true` &amp;&amp; echo notreached; echo ok'}
&lt;br&gt;+$
&lt;br&gt;+@end example
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;Portable scripts should not use @samp{set -e} if @command{trap} is used
&lt;br&gt;&amp;nbsp;to install an exit handler. &amp;nbsp;This is because Tru64/OSF 5.1 @command{sh}
&lt;br&gt;&amp;nbsp;sometimes enters the trap handler with the exit status of the command
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Patches-f1482.html&quot; embed=&quot;fixTarget[1482]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Patches&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-testsuite%3A-fixed-spurious-failure-in-vala4.test-%28w.r.t.-Solaris-sh%29-tp26655096p26655175.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26655096</id>
	<title>Re: testsuite: fixed spurious failure in vala4.test (w.r.t. Solaris sh)</title>
	<published>2009-12-05T04:02:58Z</published>
	<updated>2009-12-05T04:02:58Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">[ adding autoconf-patches; this is
&lt;br&gt;&amp;nbsp; &amp;lt;&lt;a href=&quot;http://thread.gmane.org/gmane.comp.sysutils.automake.patches/3698&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://thread.gmane.org/gmane.comp.sysutils.automake.patches/3698&lt;/a&gt;&amp;gt; ]
&lt;br&gt;&lt;br&gt;Proposed patch for Autoconf. &amp;nbsp;OK?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;commit 4f89a570c7ccb07237d4a698a4e60db507880be0
&lt;br&gt;Author: Stefano Lattarini &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655096&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stefano.lattarini@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: &amp;nbsp; Sat Dec 5 12:56:30 2009 +0100
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Document Solaris/Heirloom sh set -e issue with command substitutions.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; * doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
&lt;br&gt;&amp;nbsp; &amp;nbsp; in previous example. &amp;nbsp;Document failure to honor &amp;&amp; lists with set -e
&lt;br&gt;&amp;nbsp; &amp;nbsp; and a command substitution in the failing command.
&lt;br&gt;&amp;nbsp; &amp;nbsp; Report and initial patch by Stefano Lattarini against Automake.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; Signed-off-by: Ralf Wildenhues &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655096&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ralf.Wildenhues@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;diff --git a/ChangeLog b/ChangeLog
&lt;br&gt;index e03604d..1c0c612 100644
&lt;br&gt;--- a/ChangeLog
&lt;br&gt;+++ b/ChangeLog
&lt;br&gt;@@ -1,3 +1,12 @@
&lt;br&gt;+2009-12-05 &amp;nbsp;Stefano Lattarini &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655096&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stefano.lattarini@...&lt;/a&gt;&amp;gt;
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;Ralf Wildenhues &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655096&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ralf.Wildenhues@...&lt;/a&gt;&amp;gt;
&lt;br&gt;+
&lt;br&gt;+	Document Solaris/Heirloom sh set -e issue with command substitutions.
&lt;br&gt;+	* doc/autoconf.texi (Limitations of Builtins): Fix typos `set -d'
&lt;br&gt;+	in previous example. &amp;nbsp;Document failure to honor &amp;&amp; lists with set -e
&lt;br&gt;+	and a command substitution in the failing command.
&lt;br&gt;+	Report and initial patch by Stefano Lattarini against Automake.
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;2009-12-04 &amp;nbsp;Eric Blake &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26655096&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	Warn if using unnamed diversion.
&lt;br&gt;diff --git a/doc/autoconf.texi b/doc/autoconf.texi
&lt;br&gt;index 7d2c72e..b25f165 100644
&lt;br&gt;--- a/doc/autoconf.texi
&lt;br&gt;+++ b/doc/autoconf.texi
&lt;br&gt;@@ -16794,12 +16794,21 @@ Limitations of Builtins
&lt;br&gt;&amp;nbsp;Solaris @command{/bin/sh} cannot be ignored, even with @samp{||}.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;@example
&lt;br&gt;-$ @kbd{/bin/sh -c 'set -d; foo=`false` || echo foo; echo bar'}
&lt;br&gt;-$ @kbd{bash -c 'set -d; foo=`false` || echo foo; echo bar'}
&lt;br&gt;+$ @kbd{/bin/sh -c 'set -e; foo=`false` || echo foo; echo bar'}
&lt;br&gt;+$ @kbd{bash -c 'set -e; foo=`false` || echo foo; echo bar'}
&lt;br&gt;&amp;nbsp;foo
&lt;br&gt;&amp;nbsp;bar
&lt;br&gt;&amp;nbsp;@end example
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+@noindent
&lt;br&gt;+Moreover, a command substitution, successful or not, causes this shell to
&lt;br&gt;+exit from a failing outer command even in presence of an @samp{&amp;&amp;} list:
&lt;br&gt;+
&lt;br&gt;+@example
&lt;br&gt;+$ @kbd{/bin/sh -c 'set -e; false `true` || echo did not exit'}
&lt;br&gt;+$
&lt;br&gt;+@end example
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;Portable scripts should not use @samp{set -e} if @command{trap} is used
&lt;br&gt;&amp;nbsp;to install an exit handler. &amp;nbsp;This is because Tru64/OSF 5.1 @command{sh}
&lt;br&gt;&amp;nbsp;sometimes enters the trap handler with the exit status of the command
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Patches-f1482.html&quot; embed=&quot;fixTarget[1482]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Patches&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-testsuite%3A-fixed-spurious-failure-in-vala4.test-%28w.r.t.-Solaris-sh%29-tp26655096p26655096.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26654537</id>
	<title>Re: license in generated files</title>
	<published>2009-12-05T02:46:33Z</published>
	<updated>2009-12-05T02:46:33Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">* Russ Allbery wrote on Sat, Dec 05, 2009 at 12:42:22AM CET:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654537&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karl@...&lt;/a&gt; (Karl Berry) writes:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; This is really split between autoconf and automake, but I'll just write
&lt;br&gt;&amp;gt; &amp;gt; here for now.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 1) The license statement added in Makefile.in starts:
&lt;br&gt;&amp;gt; &amp;gt; ..
&lt;br&gt;&amp;gt; &amp;gt; # This Makefile.in is free software; the Free Software Foundation
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; But then it is copied into the Makefile too, so it's no longer the
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;Makefile.in&amp;quot;. &amp;nbsp;How about &amp;quot;This file&amp;quot;, or &amp;quot;This Makefile&amp;quot; -- seems
&lt;br&gt;&amp;gt; &amp;gt; sufficiently generic to me to cover the Makefile.in too? &amp;nbsp;Or I suppose
&lt;br&gt;&amp;gt; &amp;gt; autoconf could add yet another statement &amp;quot;This Makefile is free ...&amp;quot;.
&lt;/div&gt;&lt;br&gt;But the license concerns Makefile.in only, since the Makefile is never
&lt;br&gt;distributed, no?
&lt;br&gt;&lt;br&gt;&amp;gt; It's also not necessarily true if the Makefile.am is covered under some
&lt;br&gt;&amp;gt; other license, since the Makefile.in (and the Makefile) is a derived work
&lt;br&gt;&amp;gt; of both Automake and the Makefile.am. &amp;nbsp;If the boilerplate is modified,
&lt;br&gt;&amp;gt; maybe it should also be more specific about saying that this license only
&lt;br&gt;&amp;gt; covers the portions that come from Automake?
&lt;br&gt;&lt;br&gt;Well, if you merge together portions with different copyrights, wasn't
&lt;br&gt;it ok to just list the copyright statements one after the other, with
&lt;br&gt;some indication on what covers what? &amp;nbsp;Autoconf allows adding copyright
&lt;br&gt;statements to configure scripts with AC_COPYRIGHT (AT_COPYRIGHT for
&lt;br&gt;testsuites), and automake adds single-# comments from the top of the
&lt;br&gt;Makefile.am and from the top of 'include'd fragments to near the top of
&lt;br&gt;the Makefile.in file. &amp;nbsp;As far as I'm concerned, that seems sufficient.
&lt;br&gt;&lt;br&gt;As far as clarity is concerned, well, it might be improved as you state
&lt;br&gt;above. &amp;nbsp;As far as a lawyerese answer is needed, I've emailed Brett a
&lt;br&gt;while ago anyway for updating Automake to GPLv3 (plus exceptions), where
&lt;br&gt;things have progressed a bit since but are not done yet, that might be a
&lt;br&gt;good opportunity to ask about this as well.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; 2) [More important.] &amp;nbsp;How about having autoheader add the same statement
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; to config.in?
&lt;br&gt;&lt;br&gt;Sounds like a good idea, although the amount of copyrightable content is
&lt;br&gt;pretty limited there (thinking of original content, not just pure number
&lt;br&gt;of lines).
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/license-in-generated-files-tp26650888p26654537.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26652887</id>
	<title>Re: divert()/m4_divert() broken in autoconf-2.64+</title>
	<published>2009-12-04T20:17:57Z</published>
	<updated>2009-12-04T20:17:57Z</updated>
	<author>
		<name>Eric Blake</name>
	</author>
	<content type="html">According to Eric Blake on 11/28/2009 2:56 PM:
&lt;br&gt;&amp;gt; At any rate, here's the patch I'm currently testing, to issue a syntax
&lt;br&gt;&amp;gt; warning when not using a named diversion, and to document the fallout from
&lt;br&gt;&amp;gt; this thread.
&lt;br&gt;&lt;br&gt;Testing didn't reveal any uses in libtool or gnulib that used unnamed
&lt;br&gt;diversions (and both of them do have instances of using named diversions).
&lt;br&gt;&amp;nbsp;Now pushed, with a test squashed in:
&lt;br&gt;&lt;br&gt;diff --git a/ChangeLog b/ChangeLog
&lt;br&gt;index 5edb895..e03604d 100644
&lt;br&gt;--- a/ChangeLog
&lt;br&gt;+++ b/ChangeLog
&lt;br&gt;@@ -1,4 +1,4 @@
&lt;br&gt;-2009-11-30 &amp;nbsp;Eric Blake &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26652887&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;&amp;gt;
&lt;br&gt;+2009-12-04 &amp;nbsp;Eric Blake &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26652887&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;	Warn if using unnamed diversion.
&lt;br&gt;&amp;nbsp;	* lib/m4sugar/m4sugar.m4 (_m4_divert, m4_divert_push): Add
&lt;br&gt;@@ -7,11 +7,13 @@
&lt;br&gt;&amp;nbsp;	(_m4_require_call): Adjust callers.
&lt;br&gt;&amp;nbsp;	* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
&lt;br&gt;&amp;nbsp;	* tests/m4sh.at (AT_DATA_LINENO): Avoid triggering the warning.
&lt;br&gt;-	* tests/tools.at (autom4te and whitespace in file names)
&lt;br&gt;-	(autoconf: the empty token): Likewise.
&lt;br&gt;&amp;nbsp;	* tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, m4@&amp;t@_append)
&lt;br&gt;&amp;nbsp;	(m4@&amp;t@_text_wrap, recursion): Likewise.
&lt;br&gt;&amp;nbsp;	(m4@&amp;t@_warn, m4@&amp;t@_divert_stack): Adjust expected output.
&lt;br&gt;+	* tests/tools.at (autom4te and whitespace in file names)
&lt;br&gt;+	(autoconf: the empty token): Avoid triggering the warning.
&lt;br&gt;+	(autoconf: AC_PRESERVE_HELP_ORDER): New test.
&lt;br&gt;+	* tests/mktests.sh (ac_exclude_list): Retire prior test.
&lt;br&gt;&amp;nbsp;	* NEWS: Document the warning.
&lt;br&gt;&amp;nbsp;	* doc/autoconf.texi (Redefined M4 Macros) &amp;lt;m4_divert&amp;gt;,
&lt;br&gt;&amp;nbsp;	&amp;lt;m4_undivert&amp;gt;: Make even more explicit that using these directly
&lt;br&gt;diff --git a/doc/autoconf.texi b/doc/autoconf.texi
&lt;br&gt;index c9e570d..7d2c72e 100644
&lt;br&gt;--- a/doc/autoconf.texi
&lt;br&gt;+++ b/doc/autoconf.texi
&lt;br&gt;@@ -11409,9 +11409,10 @@ Diversion support
&lt;br&gt;&amp;nbsp;early enough in @file{configure} that it is unsafe to expand any
&lt;br&gt;&amp;nbsp;autoconf macros into this diversion.
&lt;br&gt;&amp;nbsp;@item HELP_ENABLE
&lt;br&gt;-If @code{AC_PRESERVE_HELP_ORDER} was used, then it is safe to use
&lt;br&gt;-@code{AS_ECHO} in this diversion to insert additional text into the
&lt;br&gt;-@option{--help} output of @file{configure}.
&lt;br&gt;+If @code{AC_PRESERVE_HELP_ORDER} was used, then text placed in this
&lt;br&gt;+diversion will be included as part of a quoted here-doc providing all of
&lt;br&gt;+the @option{--help} output of @file{configure} related to options
&lt;br&gt;+created by @code{AC_ARG_WITH} and @code{AC_ARG_ENABLE}.
&lt;br&gt;&amp;nbsp;@item INIT_PREPARE
&lt;br&gt;&amp;nbsp;This diversion occurs after all command line options have been parsed,
&lt;br&gt;&amp;nbsp;but prior to the main body of the @file{configure} script. &amp;nbsp;This
&lt;br&gt;diff --git a/tests/mktests.sh b/tests/mktests.sh
&lt;br&gt;index d44d6b9..9897599 100755
&lt;br&gt;--- a/tests/mktests.sh
&lt;br&gt;+++ b/tests/mktests.sh
&lt;br&gt;@@ -138,6 +138,9 @@ ac_exclude_list='
&lt;br&gt;&lt;br&gt;&amp;nbsp;	# Already tested by AT_CHECK_MACRO.
&lt;br&gt;&amp;nbsp;	/^AC_OUTPUT$/ {next}
&lt;br&gt;+
&lt;br&gt;+	# Tested alongside m4_divert_text.
&lt;br&gt;+	/^AC_PRESERVE_HELP_ORDER$/ {next}
&lt;br&gt;&amp;nbsp;'
&lt;br&gt;&lt;br&gt;&lt;br&gt;diff --git a/tests/tools.at b/tests/tools.at
&lt;br&gt;index 751975f..aa3f258 100644
&lt;br&gt;--- a/tests/tools.at
&lt;br&gt;+++ b/tests/tools.at
&lt;br&gt;@@ -535,6 +535,41 @@ AT_CLEANUP
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;+# autoconf: AC_PRESERVE_HELP_ORDER
&lt;br&gt;+# --------------------------------
&lt;br&gt;+AT_SETUP([autoconf: AC_PRESERVE_HELP_ORDER])
&lt;br&gt;+AT_KEYWORDS([m4@&amp;t@_divert_text])
&lt;br&gt;+
&lt;br&gt;+AT_DATA_AUTOCONF([configure.ac],
&lt;br&gt;+[[AC_INIT
&lt;br&gt;+AC_PRESERVE_HELP_ORDER
&lt;br&gt;+AC_ARG_WITH([one], [ &amp;nbsp;--with-one])
&lt;br&gt;+AC_ARG_ENABLE([two], [ &amp;nbsp;--enable-two])
&lt;br&gt;+m4_divert_text([HELP_ENABLE], [arbitrary $text])
&lt;br&gt;+AC_ARG_WITH([three], [ &amp;nbsp;--with-three])
&lt;br&gt;+AC_OUTPUT
&lt;br&gt;+]])
&lt;br&gt;+
&lt;br&gt;+AT_CHECK_AUTOCONF
&lt;br&gt;+AT_CHECK_CONFIGURE([--help], [], [stdout])
&lt;br&gt;+AT_CHECK([sed -n '/^Optional/,/^$/p' stdout], [],
&lt;br&gt;+[[Optional Features and Packages:
&lt;br&gt;+ &amp;nbsp;--disable-option-checking &amp;nbsp;ignore unrecognized --enable/--with options
&lt;br&gt;+ &amp;nbsp;--disable-FEATURE &amp;nbsp; &amp;nbsp; &amp;nbsp; do not include FEATURE (same as
&lt;br&gt;--enable-FEATURE=no)
&lt;br&gt;+ &amp;nbsp;--enable-FEATURE[=ARG] &amp;nbsp;include FEATURE [ARG=yes]
&lt;br&gt;+ &amp;nbsp;--with-PACKAGE[=ARG] &amp;nbsp; &amp;nbsp;use PACKAGE [ARG=yes]
&lt;br&gt;+ &amp;nbsp;--without-PACKAGE &amp;nbsp; &amp;nbsp; &amp;nbsp; do not use PACKAGE (same as --with-PACKAGE=no)
&lt;br&gt;+ &amp;nbsp;--with-one
&lt;br&gt;+ &amp;nbsp;--enable-two
&lt;br&gt;+arbitrary $text
&lt;br&gt;+ &amp;nbsp;--with-three
&lt;br&gt;+
&lt;br&gt;+]])
&lt;br&gt;+
&lt;br&gt;+AT_CLEANUP
&lt;br&gt;+
&lt;br&gt;+
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;## --------- ##
&lt;br&gt;&amp;nbsp;## ifnames. &amp;nbsp;##
&lt;br&gt;&amp;nbsp;## --------- ##
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Don't work too hard, make some time for fun as well!
&lt;br&gt;&lt;br&gt;Eric Blake &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26652887&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (329 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26652887/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Patches-f1482.html&quot; embed=&quot;fixTarget[1482]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Patches&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-divert%28%29-m4_divert%28%29-broken-in-autoconf-2.64%2B-tp26557268p26652887.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26651559</id>
	<title>testsuite.log</title>
	<published>2009-12-04T15:42:47Z</published>
	<updated>2009-12-04T15:42:47Z</updated>
	<author>
		<name>Karl Waern</name>
	</author>
	<content type="html">There was an admonition to send this along; don't know enough about this to have any other information which might help, but hopefully this is of some help!
&lt;br&gt;&lt;br&gt;-Karl
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;testsuite.log&lt;/strong&gt; (50K) &lt;a href=&quot;http://old.nabble.com/attachment/26651559/0/testsuite.log&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/testsuite.log-tp26651559p26651559.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26651117</id>
	<title>Re: license in generated files</title>
	<published>2009-12-04T15:42:22Z</published>
	<updated>2009-12-04T15:42:22Z</updated>
	<author>
		<name>Russ Allbery</name>
	</author>
	<content type="html">&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26651117&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karl@...&lt;/a&gt; (Karl Berry) writes:
&lt;br&gt;&lt;br&gt;&amp;gt; This is really split between autoconf and automake, but I'll just write
&lt;br&gt;&amp;gt; here for now.
&lt;br&gt;&lt;br&gt;&amp;gt; 1) The license statement added in Makefile.in starts:
&lt;br&gt;&amp;gt; ..
&lt;br&gt;&amp;gt; # This Makefile.in is free software; the Free Software Foundation
&lt;br&gt;&lt;br&gt;&amp;gt; But then it is copied into the Makefile too, so it's no longer the
&lt;br&gt;&amp;gt; &amp;quot;Makefile.in&amp;quot;. &amp;nbsp;How about &amp;quot;This file&amp;quot;, or &amp;quot;This Makefile&amp;quot; -- seems
&lt;br&gt;&amp;gt; sufficiently generic to me to cover the Makefile.in too? &amp;nbsp;Or I suppose
&lt;br&gt;&amp;gt; autoconf could add yet another statement &amp;quot;This Makefile is free ...&amp;quot;.
&lt;br&gt;&lt;br&gt;It's also not necessarily true if the Makefile.am is covered under some
&lt;br&gt;other license, since the Makefile.in (and the Makefile) is a derived work
&lt;br&gt;of both Automake and the Makefile.am. &amp;nbsp;If the boilerplate is modified,
&lt;br&gt;maybe it should also be more specific about saying that this license only
&lt;br&gt;covers the portions that come from Automake?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Russ Allbery (&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26651117&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rra@...&lt;/a&gt;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://www.eyrie.org/~eagle/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.eyrie.org/~eagle/&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/license-in-generated-files-tp26650888p26651117.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26650888</id>
	<title>license in generated files</title>
	<published>2009-12-04T15:21:46Z</published>
	<updated>2009-12-04T15:21:46Z</updated>
	<author>
		<name>Karl Berry</name>
	</author>
	<content type="html">This is really split between autoconf and automake, but I'll just write
&lt;br&gt;here for now.
&lt;br&gt;&lt;br&gt;1) The license statement added in Makefile.in starts:
&lt;br&gt;..
&lt;br&gt;# This Makefile.in is free software; the Free Software Foundation
&lt;br&gt;&lt;br&gt;But then it is copied into the Makefile too, so it's no longer the
&lt;br&gt;&amp;quot;Makefile.in&amp;quot;. &amp;nbsp;How about &amp;quot;This file&amp;quot;, or &amp;quot;This Makefile&amp;quot; -- seems
&lt;br&gt;sufficiently generic to me to cover the Makefile.in too? &amp;nbsp;Or I suppose
&lt;br&gt;autoconf could add yet another statement &amp;quot;This Makefile is free ...&amp;quot;.
&lt;br&gt;&lt;br&gt;2) [More important.] &amp;nbsp;How about having autoheader add the same statement
&lt;br&gt;&amp;nbsp; &amp;nbsp;to config.in?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;k
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/license-in-generated-files-tp26650888p26650888.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26625861</id>
	<title>Re: C99 inline and restrict keyword tests</title>
	<published>2009-12-03T04:53:11Z</published>
	<updated>2009-12-03T04:53:11Z</updated>
	<author>
		<name>Eric Blake</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;According to Ralf Wildenhues on 12/2/2009 2:48 PM:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Testing for &amp;quot;inline&amp;quot; and &amp;quot;restrict&amp;quot; keywords is redundant,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; eg, checking ac_cv_prog_cc_c99 = yes should be enough.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Well, in theory you are right. &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Hey, autoconf is here to help developer to workaround reality and 
&lt;br&gt;&amp;gt;&amp;gt; stay in the theory nirvana :)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'd guess not. &amp;nbsp;B.11.11.20 is not found as compatible with
&lt;br&gt;&amp;gt; &amp;nbsp; AC_INIT
&lt;br&gt;&amp;gt; &amp;nbsp; AC_PROG_CC_C99
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; due to:
&lt;br&gt;&amp;gt; &amp;nbsp; configure:2799: cc -AC99 -c -g &amp;nbsp;conftest.c &amp;gt;&amp;5
&lt;br&gt;&amp;gt; &amp;nbsp; cc: &amp;quot;conftest.c&amp;quot;, line 58: error 1671: Illegal use of restrict.
&lt;br&gt;&amp;gt; &amp;nbsp; configure:2806: $? = 1
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but with
&lt;br&gt;&amp;gt; &amp;nbsp; AC_INIT
&lt;br&gt;&amp;gt; &amp;nbsp; AC_PROG_CC
&lt;br&gt;&amp;gt; &amp;nbsp; AC_C_RESTRICT
&lt;br&gt;&amp;gt; &amp;nbsp; AC_PROG_CC_C99
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -AC99 will get turned on, and restrict #define'd to empty. &amp;nbsp;Hmm, not
&lt;br&gt;&amp;gt; very consistent, I guess.
&lt;/div&gt;&lt;br&gt;I'm not too enthusiastic about changing the macro behavior; so it seems
&lt;br&gt;like improving the documentation to better describe the current situation
&lt;br&gt;seems like the way to go.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; Should such compiler be rejected as C99 compliant C compiler ?.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is somewhat of a judgement call. &amp;nbsp;If the bug is remote, then I
&lt;br&gt;&amp;gt; don't think that a general macro like AC_PROG_CC_C99 should reject the
&lt;br&gt;&amp;gt; compiler. &amp;nbsp;In practice that will harm more users than help, because it
&lt;br&gt;&amp;gt; will cause the necessary flag to enable C99 mode to not be used, which
&lt;br&gt;&amp;gt; would have been sufficient for the bulk of uses.
&lt;br&gt;&lt;br&gt;Another instance of this is handling of 64-bit preprocessor constants. &amp;nbsp;At
&lt;br&gt;one point, we tried to make long long checking fail if the preprocessor
&lt;br&gt;also mishandled things, but in practice, there were enough existing
&lt;br&gt;compilers that could do everything except preprocessing correctly that we
&lt;br&gt;changed things to just document that AC_PROG_CC_C99 no longer guarantees a
&lt;br&gt;compliant preprocessor, and that it is unportable to use any proprocessing
&lt;br&gt;constant that requires more than 32 bits while expecting correct
&lt;br&gt;signedness treatment.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; But the test stay like they are, if a note is added in AC_PROG_CC_C99,
&lt;br&gt;&amp;gt;&amp;gt; such as:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;AC_PROG_CC_C99 does not guarantee individual C99 features availability.
&lt;br&gt;&amp;gt;&amp;gt; Some compiler don't implement some or have buggy implementation, so one
&lt;br&gt;&amp;gt;&amp;gt; should use tests such as AC_C_INLINE, AC_C_RESTRICT, etc. in order to
&lt;br&gt;&amp;gt;&amp;gt; check C99 features they rely on&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This certainly would be one possibility.
&lt;br&gt;&lt;br&gt;Would either of you mind writing this up as a formal patch against
&lt;br&gt;doc/autoconf.texi?
&lt;br&gt;&lt;br&gt;- --
&lt;br&gt;Don't work too hard, make some time for fun as well!
&lt;br&gt;&lt;br&gt;Eric Blake &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26625861&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ebb9@...&lt;/a&gt;
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (Cygwin)
&lt;br&gt;Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAksXtLcACgkQ84KuGfSFAYDKcgCgtf1W9jXWxxx/qM2wWh00Cnai
&lt;br&gt;k3gAoItu07rZ/4W328TeblAD2mBregtl
&lt;br&gt;=uqr2
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C99-inline-and-restrict-keyword-tests-tp26596266p26625861.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26623353</id>
	<title>Re: pkglibdir vs. lib64</title>
	<published>2009-12-03T01:45:24Z</published>
	<updated>2009-12-03T01:45:24Z</updated>
	<author>
		<name>Yavor Doganov-3</name>
	</author>
	<content type="html">Alfred M. Szmidt wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;A diligent distro package maintainer certainly reads the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Makefile.am, and also reviews the full diff between upstream
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;releases.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Very few packages do this,
&lt;br&gt;&lt;br&gt;I don't think that anyone can state with reasonable certainty how many
&lt;br&gt;do or do not do this. &amp;nbsp;I do it for all packages I maintain, and I know
&lt;br&gt;other maintainers who adhere to the same practice. &amp;nbsp;OTOH, there are
&lt;br&gt;surely people who don't bother.
&lt;br&gt;&lt;br&gt;&amp;gt; and it is immensly unfeasible for them to do so.
&lt;br&gt;&lt;br&gt;It is, especially for large packages. &amp;nbsp;But those who are afraid of
&lt;br&gt;wolves shouldn't walk in the woods.
&lt;br&gt;&lt;br&gt;&amp;gt; It is like asking a user to look through the diff before
&lt;br&gt;&amp;gt; installing a new version of a program.
&lt;br&gt;&lt;br&gt;No, there's a HUGE difference. &amp;nbsp;What you do as a user concerns you and
&lt;br&gt;only you. &amp;nbsp;What you do as a maintainer affects others.
&lt;br&gt;&lt;br&gt;As an upstream maintainer, you don't just collect and recklessly
&lt;br&gt;commit patches, releasing the havoc afterwards, right? &amp;nbsp;You review
&lt;br&gt;them carefully, you excercise human judgement to the best of your
&lt;br&gt;knowledge and ability, and the release you make is something you could
&lt;br&gt;wholeheartedly recommend to users.
&lt;br&gt;&lt;br&gt;Similarly, a distro package maintainer is responsible for many users
&lt;br&gt;and it's simply not acceptable to maintain a package without a certain
&lt;br&gt;degree of involvement and judgement. &amp;nbsp;That's why maintainers are
&lt;br&gt;humans and not packaging bots (there are some who behave like bots,
&lt;br&gt;perhaps).
&lt;br&gt;&lt;br&gt;But this is getting off-topic. &amp;nbsp;My point was that a comment in a
&lt;br&gt;Makefile.am (as suggested by the OP) should be spotted by a *decent*
&lt;br&gt;maintainer, as maintainers *usually* pay attention to changes,
&lt;br&gt;especially changes in the build system. &amp;nbsp;(Mike is also right that
&lt;br&gt;distro maintainers are well aware of this particular issue.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26623353&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/pkglibdir-vs.-lib64-tp26455051p26623353.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26621644</id>
	<title>Re: autoconf vs &lt;cstdint&gt;</title>
	<published>2009-12-02T22:33:57Z</published>
	<updated>2009-12-02T22:33:57Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">* Erik de Castro Lopo wrote on Wed, Dec 02, 2009 at 10:33:05PM CET:
&lt;br&gt;&amp;gt; However, one I sort out the problems above, it still doesn't explain
&lt;br&gt;&amp;gt; why:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; AC_CHECK_HEADER([cstdint])
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; does result in a HAVE_CSTDINT getting added to the config.h file.
&lt;br&gt;&lt;br&gt;We'd need to see the respective parts of config.log to be able to help.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26621644&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/autoconf-vs-%3Ccstdint%3E-tp26602878p26621644.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26618428</id>
	<title>Re: C99 inline and restrict keyword tests</title>
	<published>2009-12-02T13:48:37Z</published>
	<updated>2009-12-02T13:48:37Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">* Yann Droneaud wrote on Wed, Dec 02, 2009 at 10:32:26AM CET:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Le mardi 01 décembre 2009 à 19:25 +0100, Ralf Wildenhues a écrit :
&lt;br&gt;&amp;gt; &amp;gt; * Yann Droneaud wrote on Tue, Dec 01, 2009 at 03:09:11PM CET:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; If AC_PROG_CC_C99 successfully found a C99 compliant C compiler,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; AC_C_INLINE and AC_C_RESTRICT should use this result.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Testing for &amp;quot;inline&amp;quot; and &amp;quot;restrict&amp;quot; keywords is redundant,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; eg, checking ac_cv_prog_cc_c99 = yes should be enough.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Well, in theory you are right. &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hey, autoconf is here to help developer to workaround reality and 
&lt;br&gt;&amp;gt; stay in the theory nirvana :)
&lt;/div&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; In practice, the restrict macro tries to
&lt;br&gt;&amp;gt; &amp;gt; get a spelling that is likely to be accepted by the C++ compiler as
&lt;br&gt;&amp;gt; &amp;gt; well, and the inline case checks for a specific compiler bug:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; # HP C version B.11.11.04 doesn't allow a typedef as the return value for an
&lt;br&gt;&amp;gt; &amp;gt; # inline function, only builtin types.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I can only check B.11.11.20, and it does not seem to have that bug (any
&lt;br&gt;&amp;gt; &amp;gt; more).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is HP C version B.11.11.04 found as C99 compatible by AC_PROG_CC_C99 ?
&lt;/div&gt;&lt;br&gt;I'd guess not. &amp;nbsp;B.11.11.20 is not found as compatible with
&lt;br&gt;&amp;nbsp; AC_INIT
&lt;br&gt;&amp;nbsp; AC_PROG_CC_C99
&lt;br&gt;&lt;br&gt;due to:
&lt;br&gt;&amp;nbsp; configure:2799: cc -AC99 -c -g &amp;nbsp;conftest.c &amp;gt;&amp;5
&lt;br&gt;&amp;nbsp; cc: &amp;quot;conftest.c&amp;quot;, line 58: error 1671: Illegal use of restrict.
&lt;br&gt;&amp;nbsp; configure:2806: $? = 1
&lt;br&gt;&lt;br&gt;but with
&lt;br&gt;&amp;nbsp; AC_INIT
&lt;br&gt;&amp;nbsp; AC_PROG_CC
&lt;br&gt;&amp;nbsp; AC_C_RESTRICT
&lt;br&gt;&amp;nbsp; AC_PROG_CC_C99
&lt;br&gt;&lt;br&gt;-AC99 will get turned on, and restrict #define'd to empty. &amp;nbsp;Hmm, not
&lt;br&gt;very consistent, I guess.
&lt;br&gt;&lt;br&gt;&amp;gt; AC_PROG_CC_C99 use a test with one inline and one restrict, but not the
&lt;br&gt;&amp;gt; corner case about typedef'ed type.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Should such compiler be rejected as C99 compliant C compiler ?.
&lt;br&gt;&lt;br&gt;This is somewhat of a judgement call. &amp;nbsp;If the bug is remote, then I
&lt;br&gt;don't think that a general macro like AC_PROG_CC_C99 should reject the
&lt;br&gt;compiler. &amp;nbsp;In practice that will harm more users than help, because it
&lt;br&gt;will cause the necessary flag to enable C99 mode to not be used, which
&lt;br&gt;would have been sufficient for the bulk of uses.
&lt;br&gt;&lt;br&gt;But in the end, this is the maintainer's call. &amp;nbsp;The documentation should
&lt;br&gt;be updated in either outcome, to reflect the actual semantics of the
&lt;br&gt;macros.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; IMHO, AC_PROG_CC_C99 and AC_C_INLINE + AC_C_RESTRICT should be related
&lt;br&gt;&amp;gt; in some ways, perhaps AC_PROG_CC_C99 should rely on AC_C_INLINE +
&lt;br&gt;&amp;gt; AC_C_RESTRICT ?
&lt;br&gt;&amp;gt; In my first post, I was proposing the opposite: AC_C_INLINE +
&lt;br&gt;&amp;gt; AC_C_RESTRICT relying of AC_PROG_CC_C99 result.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But the test stay like they are, if a note is added in AC_PROG_CC_C99,
&lt;br&gt;&amp;gt; such as:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;quot;AC_PROG_CC_C99 does not guarantee individual C99 features availability.
&lt;br&gt;&amp;gt; Some compiler don't implement some or have buggy implementation, so one
&lt;br&gt;&amp;gt; should use tests such as AC_C_INLINE, AC_C_RESTRICT, etc. in order to
&lt;br&gt;&amp;gt; check C99 features they rely on&amp;quot;.
&lt;/div&gt;&lt;br&gt;This certainly would be one possibility.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---Bugs-f1481.html&quot; embed=&quot;fixTarget[1481]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - Bugs&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C99-inline-and-restrict-keyword-tests-tp26596266p26618428.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26618358</id>
	<title>Re: autoconf vs &lt;cstdint&gt;</title>
	<published>2009-12-02T13:33:05Z</published>
	<updated>2009-12-02T13:33:05Z</updated>
	<author>
		<name>Erik de Castro Lopo-27</name>
	</author>
	<content type="html">Ralf Wildenhues wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; The easiest user workaround for this is to
&lt;br&gt;&amp;gt; &amp;nbsp; ./configure CXX=&amp;quot;g++ -std=gnu++0x&amp;quot;
&lt;br&gt;&lt;br&gt;Unfortunately this wont work as the code needs to be built by an autobuilder
&lt;br&gt;on two different systems, one with a g++ that requires -std=gnu++0x and the
&lt;br&gt;other which doesn't understand -std=gnu++0x. I'd prefer not to have to hack
&lt;br&gt;a workaround for this into the autobuilder.
&lt;br&gt;&lt;br&gt;&amp;gt; Of course, -Werror is problematic in many cases, but here it's not the
&lt;br&gt;&amp;gt; cause.
&lt;br&gt;&lt;br&gt;I've moved the test for &amp;lt;cstdint&amp;gt; to a place before -Werror is added.
&lt;br&gt;&lt;br&gt;&amp;gt; The bug is in the AC_ADD_CXXFLAGS macro (which, by the way, is not from
&lt;br&gt;&amp;gt; Autoconf so its name shouldn't start with 'AC_')
&lt;br&gt;&lt;br&gt;Noted.
&lt;br&gt;&lt;br&gt;&amp;gt; or your usage thereof:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; AC_ADD_CXXFLAGS([-std=gnu++0x])
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; because the flag does not just influence the C++ compiler but also its
&lt;br&gt;&amp;gt; preprocessor. &amp;nbsp;As developer, you could use AC_PROG_CXXCPP and adjust
&lt;br&gt;&amp;gt; $CXXCPP to also contain -std=gnu++0x when it is deemed acceptable (I
&lt;br&gt;&amp;gt; suppose AC_ADD_CXXFLAGS has an optional IF-OK argument?).
&lt;br&gt;&lt;br&gt;No. This was a macro I picked up from somewhere else. Looks like I'll
&lt;br&gt;have to hack it a bit.
&lt;br&gt;&lt;br&gt;However, one I sort out the problems above, it still doesn't explain
&lt;br&gt;why:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; AC_CHECK_HEADER([cstdint])
&lt;br&gt;&lt;br&gt;does result in a HAVE_CSTDINT getting added to the config.h file.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Erik
&lt;br&gt;-- 
&lt;br&gt;----------------------------------------------------------------------
&lt;br&gt;Erik de Castro Lopo
&lt;br&gt;&lt;a href=&quot;http://www.mega-nerd.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mega-nerd.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26618358&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/autoconf-vs-%3Ccstdint%3E-tp26602878p26618358.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26617916</id>
	<title>Re: question about using AC_SEARCH_LIBS with fortran...</title>
	<published>2009-12-02T12:05:10Z</published>
	<updated>2009-12-02T12:05:10Z</updated>
	<author>
		<name>Ralf Wildenhues</name>
	</author>
	<content type="html">* Ed Hartnett wrote on Wed, Dec 02, 2009 at 06:41:08PM CET:
&lt;br&gt;&amp;gt; Before I continue asking questions about my fortran AC_SEARCH_LIBS
&lt;br&gt;&amp;gt; question, let me first make sure I've got it correct for my C library,
&lt;br&gt;&amp;gt; because I just recently realized that I've been doing it wrong for
&lt;br&gt;&amp;gt; years.
&lt;br&gt;&lt;br&gt;No, you haven't.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In my libcf configure.ac file I have added the following:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; AC_SEARCH_LIBS([deflate], [z])
&lt;br&gt;&amp;gt; AC_SEARCH_LIBS([ceil], [m])
&lt;br&gt;&amp;gt; AC_SEARCH_LIBS([H5open], [hdf5])
&lt;br&gt;&amp;gt; AC_SEARCH_LIBS([H5DSattach_scale], [hdf5_hl])
&lt;br&gt;&amp;gt; AC_SEARCH_LIBS([Curl_cfree], [curl])
&lt;br&gt;&amp;gt; AC_SEARCH_LIBS([nc_open], [netcdf])
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This finds all the correct libraries in the correct order, and helpfully
&lt;br&gt;&amp;gt; adds them to the LIBS variable, so that I don't have to have things like
&lt;br&gt;&amp;gt; this in my makefile:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if USE_NETCDF4
&lt;br&gt;&amp;gt; LDADD += -lhdf5_hl -lhdf5 -lz 
&lt;br&gt;&amp;gt; endif
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is wonderful, but how does the user pass in a special directory
&lt;br&gt;&amp;gt; that may include his HDF5 library? With the CPPFLAGS and LDFLAGS,
&lt;br&gt;&amp;gt; correct?
&lt;/div&gt;&lt;br&gt;LDFLAGS, yes.
&lt;br&gt;&lt;br&gt;&amp;gt; Meanwhile I support in my configure script a way to specify a location
&lt;br&gt;&amp;gt; for HDF5:
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; AC_ARG_WITH([hdf5],
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; AC_MSG_RESULT([$HDF5DIR])
&lt;br&gt;&lt;br&gt;This is a fine possibility as well.
&lt;br&gt;&lt;br&gt;&amp;gt; What I have been doing is handling all this in my Makefile.am files.
&lt;br&gt;&amp;gt; But that will go away under the new (to me) system of using
&lt;br&gt;&amp;gt; AC_SEARCH_LIBS properly.
&lt;br&gt;&lt;br&gt;Well, complex packages need both. &amp;nbsp;In that case, it is typical to save
&lt;br&gt;in LIBS all libraries that are needed by most or all programs in the
&lt;br&gt;package, and use other variables (like HDF5_LIB, HDF5_INCLUDE or so)
&lt;br&gt;for the rest. &amp;nbsp;Both AC_CHECK_LIB and AC_SEARCH_LIBS allow you to store
&lt;br&gt;their result in other variables as well, through the ACTION-IF-FOUND
&lt;br&gt;arguments of the macros. &amp;nbsp;One difference is that AC_SEARCH_LIBS always
&lt;br&gt;updates $LIBS while AC_CHECK_LIB only does so if ACTION-IF-FOUND is not
&lt;br&gt;given. &amp;nbsp;If needed you can save and restore the $LIBS value to keep it
&lt;br&gt;unchanged.
&lt;br&gt;&lt;br&gt;&amp;gt; But how to get the user's --with-hdf5=/somewhere option into the list of
&lt;br&gt;&amp;gt; directories searched by AC_SEARCH_LIBS? Do I modify CPPFLAGS and LDFLAGS
&lt;br&gt;&amp;gt; before calling AC_SEARCH_LIBS in my configure.ac?
&lt;br&gt;&lt;br&gt;Yes. &amp;nbsp;The CPPFLAGS should be set before you search for headers.
&lt;br&gt;&lt;br&gt;&amp;gt; Or is there some other
&lt;br&gt;&amp;gt; way to tell AC_SEARCH_LIBS to add another directory to search for the
&lt;br&gt;&amp;gt; library?
&lt;br&gt;&lt;br&gt;No.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Autoconf mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26617916&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Autoconf@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.gnu.org/mailman/listinfo/autoconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.gnu.org/mailman/listinfo/autoconf&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Gnu---Autoconf---General-f1480.html&quot; embed=&quot;fixTarget[1480]&quot; target=&quot;_top&quot; &gt;Gnu - Autoconf - General&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/question-about-using-AC_SEARCH_LIBS-with-fortran...-tp26601586p26617916.html" />
</entry>

</feed>
