From MAILER-DAEMON Fri Apr 06 14:48:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGEDD-00088Z-To
	for mharc-autoconf@gnu.org; Fri, 06 Apr 2012 14:48:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48642)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <christopher.howard@frigidcode.com>)
	id 1SGEDB-00087l-G5
	for autoconf@gnu.org; Fri, 06 Apr 2012 14:48:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <christopher.howard@frigidcode.com>)
	id 1SGED9-0003AB-NN
	for autoconf@gnu.org; Fri, 06 Apr 2012 14:48:41 -0400
Received: from [199.167.192.214] (port=57059 helo=robin.frigidcode.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <christopher.howard@frigidcode.com>)
	id 1SGED9-00039t-EY
	for autoconf@gnu.org; Fri, 06 Apr 2012 14:48:39 -0400
Received: from [192.168.227.5] (66-230-86-60-rb1.fai.dsl.dynamic.acsalaska.net
	[66.230.86.60])
	by robin.frigidcode.com (Postfix) with ESMTPSA id 305C198E9E09
	for <autoconf@gnu.org>; Fri,  6 Apr 2012 11:48:35 -0700 (PDT)
Message-ID: <4F7F3B4D.5030608@frigidcode.com>
Date: Fri, 06 Apr 2012 10:51:57 -0800
From: Christopher Howard <christopher.howard@frigidcode.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120402 Thunderbird/11.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: autoconf/automake: handling the installation of desktop files / icons
X-Enigmail-Version: 1.4
OpenPGP: id=714ED81D;
	url=keyserver2.pgp.com
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enigC1147C29D1645DF1495719F4"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 199.167.192.214
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Apr 2012 18:48:43 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC1147C29D1645DF1495719F4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hey guys, I'm trying to get a small game app prepared for final release,
but I'm struggling with one issue: the proper installation of .desktop
files and icons. I want to have this figured out at the source package
level, so that it is easier to make binary packages for various distros
later on.

I couldn't find any guide/tutorial on this subject online, but I looked
at a few other game packages, and eventually came up with this:

code:
--------
desktopdir =3D $(datadir)/applications
desktop_DATA =3D gfifteen.desktop

icondir =3D $(datadir)/icons
icon_DATA =3D gfifteen.svg
--------

A problem I've had with this is that in Gentoo, which installs from
source, $datadir gets changes by the package manager to a special games
data directory, which is one which is not checked by the desktop menu
programs, so my desktop file and icons do not appear in those menus. I
could probably fix this with special code at the Gentoo package level,
but it seems like I should deal with the more fundamental problem that
sometimes a system might not be configured to have the data directory
set to be the same as the freedesktop file directory.

So I am trying to figure out if I should...

* replace $(datadir) above with some hard-coded location (say,
/usr/share), which seems a bit presumptious, or...

* is there some kind of autoconf macro which figures out where
freedesktop .desktop files and icons should be installed and provides a
variable?

--=20
frigidcode.com
indicium.us


--------------enigC1147C29D1645DF1495719F4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPfztSAAoJEI2DxlFxTtgdNi4IAIspqccp9Bkv5jrOhHxWFkeL
mze7cHMJ48TLXqqumd1prvEWbNx7RNEgkiuSs/2DGDdCJDbzl+5YDdfgkwRkfDjs
yBjMiB590XbwwCDxKjdJgq/8Zo2aJ1KIYYpNJ48wnoFBFdI7o88NGtS8WGHm7lI+
2vIQAqf1Id26GBhY9UEQoKVDAscJ2WvrAn6vjkeUo2cgpNCJGjkgAOmcwGjMLBSC
De27cLyZuofbRnIuXPi0q3V2bVLX9qk9CN0FF+1qswtxK4Zy5kzXX85Edzvs9ehM
MX4XlPWN+1KtydBxmtTbK0kgec7FSFDvhZPrBsz15LFij2LSUH7s1o6OMX4TXuY=
=3tWv
-----END PGP SIGNATURE-----

--------------enigC1147C29D1645DF1495719F4--


From MAILER-DAEMON Fri Apr 06 16:29:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGFn8-0000Gy-UX
	for mharc-autoconf@gnu.org; Fri, 06 Apr 2012 16:29:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58767)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SGFn6-0000Fr-9w
	for autoconf@gnu.org; Fri, 06 Apr 2012 16:29:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SGFn4-0001vW-DI
	for autoconf@gnu.org; Fri, 06 Apr 2012 16:29:51 -0400
Received: from mail18.sea5.speakeasy.net ([69.17.117.20]:33121)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SGFn4-0001vA-42
	for autoconf@gnu.org; Fri, 06 Apr 2012 16:29:50 -0400
Received: (qmail 28501 invoked from network); 6 Apr 2012 20:29:46 -0000
Received: by simscan 1.4.0 ppid: 19264, pid: 17222, t: 0.0177s
	scanners: clamav: 0.88.2/m:52/d:10739
Received: from mxperim7.sea5.speakeasy.net ([69.17.117.72])
	(envelope-sender <jklowden@schemamania.org>)
	by mail18.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP
	for <autoconf@gnu.org>; 6 Apr 2012 20:29:46 -0000
Received: from localhost (localhost [127.0.0.1])
	by mxperim7.sea5.speakeasy.net (Postfix) with ESMTP id 3D649AF641
	for <autoconf@gnu.org>; Fri,  6 Apr 2012 13:29:46 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at mxperim7.sea5.speakeasy.net
Received: from mxperim7.sea5.speakeasy.net ([127.0.0.1])
	by localhost (mxperim7.sea5.speakeasy.net [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id blSZRslTlQ92 for <autoconf@gnu.org>;
	Fri,  6 Apr 2012 13:29:46 -0700 (PDT)
Received: from oak.schemamania.org (dsl254-083-208.nyc1.dsl.speakeasy.net
	[216.254.83.208]) by mxperim7.sea5.speakeasy.net (Postfix) with ESMTP
	for <autoconf@gnu.org>; Fri,  6 Apr 2012 13:29:45 -0700 (PDT)
Received: from oak.schemamania.org (localhost [IPv6:::1])
	by oak.schemamania.org (Postfix) with SMTP id 2439730E0E9C
	for <autoconf@gnu.org>; Fri,  6 Apr 2012 16:29:45 -0400 (EDT)
Date: Fri, 6 Apr 2012 16:29:44 -0400
From: "James K. Lowden" <jklowden@schemamania.org>
To: autoconf@gnu.org
Subject: Re: autoconf/automake: handling the installation of desktop files /
	icons
Message-Id: <20120406162944.03d84dba.jklowden@schemamania.org>
In-Reply-To: <4F7F3B4D.5030608@frigidcode.com>
References: <4F7F3B4D.5030608@frigidcode.com>
X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64--netbsd)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 69.17.117.20
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Apr 2012 20:29:54 -0000

On Fri, 06 Apr 2012 10:51:57 -0800
Christopher Howard <christopher.howard@frigidcode.com> wrote:

> in Gentoo, which installs from
> source, $datadir gets changes by the package manager to a special
> games data directory, which is one which is not checked by the
> desktop menu programs, so my desktop file and icons do not appear in
> those menus. 
...
> * is there some kind of autoconf macro which figures out where
> freedesktop .desktop files and icons should be installed and provides
> a variable?

There must be some reliable way to interrogate the environment for the
name of that "special games data directory".  Perhaps a utility that
reports it, something like pkg-config.  Maybe a file in a known
location e.g. /etc.  Maybe even an environment variable.  After all,
other packages face the same question.  

Once you know how to discover the directory name, you can set another
variable, not $datadir, to that location.  If the operation fails
(because it's not Gentoo) you can set your variable to the value of
$datadir.  

Would that do the trick?  

--jkl





From MAILER-DAEMON Sat Apr 07 00:39:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGNQq-0007x1-9Z
	for mharc-autoconf@gnu.org; Sat, 07 Apr 2012 00:39:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42629)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n0nb@n0nb.us>) id 1SGI7V-0003dd-FI
	for autoconf@gnu.org; Fri, 06 Apr 2012 18:59:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <n0nb@n0nb.us>) id 1SGI7T-0002Am-Go
	for autoconf@gnu.org; Fri, 06 Apr 2012 18:59:05 -0400
Received: from smtpauth23.prod.mesa1.secureserver.net ([64.202.165.47]:44502)
	by eggs.gnu.org with smtp (Exim 4.71) (envelope-from <n0nb@n0nb.us>)
	id 1SGI7T-0002Af-7n
	for autoconf@gnu.org; Fri, 06 Apr 2012 18:59:03 -0400
Received: (qmail 19957 invoked from network); 6 Apr 2012 22:58:58 -0000
Received: from unknown (68.234.124.194)
	by smtpauth23.prod.mesa1.secureserver.net (64.202.165.47) with ESMTP;
	06 Apr 2012 22:58:58 -0000
Date: Fri, 6 Apr 2012 17:58:40 -0500
From: Nate Bargmann <n0nb@n0nb.us>
To: autoconf@gnu.org
Subject: Re: autoconf/automake: handling the installation of desktop files /
	icons
Message-ID: <20120406225840.GC31102@n0nb.us>
References: <4F7F3B4D.5030608@frigidcode.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F7F3B4D.5030608@frigidcode.com>
X-Operating-System: Linux 3.2.0-2-686-pae i686
Organization: Amateur Radio!
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
X-Received-From: 64.202.165.47
X-Mailman-Approved-At: Sat, 07 Apr 2012 00:39:22 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Apr 2012 22:59:06 -0000

I think you're going above and beyond the call of duty.  ;-)

However, IMO, it's impossible to account for all the various packaging
schemes at the source distribution level.  In the project I work with,
the source tarball installs to "standard" directories under /usr/local.
After that it is up to the package maintainer of a given distribution to
customize the installation for their binary package management.
Otherwise I think one will go insane or at least set themselves up for a
lot of extra, thankless work trying to chase even the most popular
packaging formats.

YMMV,

- Nate >>

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Ham radio, Linux, bikes, and more: http://www.n0nb.us


From MAILER-DAEMON Sat Apr 07 00:39:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGNQu-000867-Gg
	for mharc-autoconf@gnu.org; Sat, 07 Apr 2012 00:39:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33654)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <paul@dugasenterprises.com>) id 1SGKxx-0003XK-PL
	for autoconf@gnu.org; Fri, 06 Apr 2012 22:01:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <paul@dugasenterprises.com>) id 1SGKxw-0002B2-1c
	for autoconf@gnu.org; Fri, 06 Apr 2012 22:01:25 -0400
Received: from na3sys009aob129.obsmtp.com ([74.125.149.136]:43908
	helo=na3sys009amx259.postini.com)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <paul@dugasenterprises.com>) id 1SGKxv-0002Av-DT
	for autoconf@gnu.org; Fri, 06 Apr 2012 22:01:23 -0400
Received: from mail-ob0-f181.google.com ([209.85.214.181]) (using TLSv1) by
	na3sys009aob129.postini.com ([74.125.148.12]) with SMTP
	ID DSNKT3+f8Me+Ag/BmjtoQB3Ey6gPX5K6vU0H@postini.com;
	Fri, 06 Apr 2012 19:01:23 PDT
Received: by obqv19 with SMTP id v19so4377840obq.40
	for <autoconf@gnu.org>; Fri, 06 Apr 2012 19:01:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=dugasenterprises.com; s=google;
	h=mime-version:date:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	bh=OZDkK6k+mL/+ltACBam9OGyhxIQtFYySDDeGCByLWNU=;
	b=KJP8K7oQQBsLusEJ8kulHvDVm0h8Xb6q0slboJmkQ2yOIzT4xkN0Qk7dd8ot/420FB
	agXsWjADyui6WgBqsLls8ATc2LCdw2VaNnCgeIFBSabqgDh3I0FYYPuglCwijAIL/AcA
	FLBdc2fR+TxEbj4biDYTamFNciTGzg09kvFxQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type
	:content-transfer-encoding:x-gm-message-state;
	bh=OZDkK6k+mL/+ltACBam9OGyhxIQtFYySDDeGCByLWNU=;
	b=KEhIXeE2z++HgcAZC2qBA3qB4vOYLEDGQtRelsvhoD7F9OHLk5R7tuC32iZOaf8hnK
	TsCYYZA1FGwtVZEL2dM/LLjsKgLbezM7T29lIXOjdmcAB20Y3q5vQNkddzl9/hpsCftn
	PhULFmnuyVJ3R8asWQxuWoeV30jNLY8r3IOO6g9TTTRrF3sw7xUrHXqTWFF4lUio+thO
	sUjO6rcJnhi8Acihjde0Z9V9qR4AP9E6Qa2VIhFAUV0nDc9U/yTHRico/eIcbUnGzmU6
	4u86W3gVOyh7jCsDEOV6is1fYrGU1R2hDtF6hoxGkGi0TBFReC0rpPn+dDKzJh6ZPfpT
	Rc/A==
MIME-Version: 1.0
Received: by 10.60.5.231 with SMTP id v7mr8321oev.61.1333764079840; Fri, 06
	Apr 2012 19:01:19 -0700 (PDT)
Received: by 10.182.33.135 with HTTP; Fri, 6 Apr 2012 19:01:19 -0700 (PDT)
Date: Fri, 6 Apr 2012 22:01:19 -0400
Message-ID: <CADnMf=2rgNOpkmPZFFweo3yyVutzPG_mMTp1vQMbXJHpL2hv6g@mail.gmail.com>
Subject: AC_CONFIG_SUBDIRS right away
From: Paul Dugas <paul@dugasenterprises.com>
To: autoconf@gnu.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQmQMKKBuNGC8DYzGRGWS9Sq+b3/tvtUNXQ7LLrrBK99dKsQ1NTaocLalfIel+oRam9eIy7z
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 74.125.149.136
X-Mailman-Approved-At: Sat, 07 Apr 2012 00:39:27 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Apr 2012 02:01:27 -0000

I'm trying to use the pkg-config script provided by a sub-package to
make appropriate additions to CFLAGS, LDFLAGS and LIBS for the parent
package and have discovered the actual sub-package configuration is
delayed until the AC_CONFIG_FILES call.  I found a 2008 post where
someone had run into the same issue but I didn't see a solution
posted.  I'm wondering if, in the intervening time, there's been any
progress in providing a mechanism for a sub-package to be configured
right away.

thx,

Paul
--
Paul Dugas=C2=A0=E2=80=A2=C2=A0Dugas Enterprises, LLC=C2=A0=E2=80=A2=C2=A0C=
omputer Engineer
Paul@DugasEnterprises.com=C2=A0=E2=80=A2=C2=A0+1.404.932.1355=C2=A0=E2=80=
=A2=C2=A0522 Black Canyon Park,
Canton GA 30114 USA


From MAILER-DAEMON Sat Apr 07 02:28:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGP89-0002L7-4M
	for mharc-autoconf@gnu.org; Sat, 07 Apr 2012 02:28:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37615)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <christopher.howard@frigidcode.com>)
	id 1SGP86-0002KG-DK
	for autoconf@gnu.org; Sat, 07 Apr 2012 02:28:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <christopher.howard@frigidcode.com>)
	id 1SGP84-0004eV-JK
	for autoconf@gnu.org; Sat, 07 Apr 2012 02:28:09 -0400
Received: from [199.167.192.214] (port=46095 helo=robin.frigidcode.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <christopher.howard@frigidcode.com>)
	id 1SGP84-0004eR-AO
	for autoconf@gnu.org; Sat, 07 Apr 2012 02:28:08 -0400
Received: from [192.168.227.5] (66-230-86-60-rb1.fai.dsl.dynamic.acsalaska.net
	[66.230.86.60])
	by robin.frigidcode.com (Postfix) with ESMTPSA id D484B156800C
	for <autoconf@gnu.org>; Fri,  6 Apr 2012 23:28:05 -0700 (PDT)
Message-ID: <4F7FDF3E.5030007@frigidcode.com>
Date: Fri, 06 Apr 2012 22:31:26 -0800
From: Christopher Howard <christopher.howard@frigidcode.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120402 Thunderbird/11.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: Re: autoconf/automake: handling the installation of desktop files
	/ icons
References: <4F7F3B4D.5030608@frigidcode.com> <20120406225840.GC31102@n0nb.us>
In-Reply-To: <20120406225840.GC31102@n0nb.us>
X-Enigmail-Version: 1.4
OpenPGP: id=714ED81D;
	url=keyserver2.pgp.com
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig0960CC3B449DA0E7B5FDC81E"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 199.167.192.214
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Apr 2012 06:28:12 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0960CC3B449DA0E7B5FDC81E
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/06/2012 02:58 PM, Nate Bargmann wrote:
> I think you're going above and beyond the call of duty.  ;-)
>=20
> However, IMO, it's impossible to account for all the various packaging
> schemes at the source distribution level.  In the project I work with,
> the source tarball installs to "standard" directories under /usr/local.=

> After that it is up to the package maintainer of a given distribution t=
o
> customize the installation for their binary package management.
> Otherwise I think one will go insane or at least set themselves up for =
a
> lot of extra, thankless work trying to chase even the most popular
> packaging formats.
>=20
> YMMV,
>=20
> - Nate >>
>=20

Thanks. Actually, early today I decided the most sensible thing to do
would be to just /not/ have the desktop/icon files installed by the
source, but rather to just package them with the source and leave the
installation to the distros. I found out upon further research that
putting static files in a static location is not a hard thing for
package managers to do. Gentoo has functions specifically for installing
menu files and icons, and for a Debian package its a simple do_install
call. Furthermore, if I tried to wrap it in make install, this would
cause additional problems, because then people would have to have root
privileges in order to install, since the proper /usr/share locations
are usually root owned.

--=20
frigidcode.com
indicium.us


--------------enig0960CC3B449DA0E7B5FDC81E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPf99EAAoJEI2DxlFxTtgdLYsH/RQu9XAtAw3z8FHjRm3ahYgM
ae46d3GaER1uDTXbdJNVNVeevUSGBZeNkPi6aCXmgAkg3THu36NuJXVVJ7m9H1qy
EVLIAfHRN62uLrfiAiWgAhKr5ZYLo4aLPbSFycMF42g+Cn1nqnDrSZ6yLRhsfb7Y
eY5r0QSVPx7rFCKh3qh79ms3f8todvZiBo4cVkIvX47a1FD6GQ1YVVykyochiqWQ
DpFP8l5tPOK+2AB3O/cxoFgLCbAlBWHEq4X2oCjRp9391PmhjZoUlu0Fe0cIzBgC
Kkps58H6rAQAYbVoBv/fyKIIPofRxszfSi/tQ+CqUrpAtqE5Yw94VqUt0vEHP80=
=YY6A
-----END PGP SIGNATURE-----

--------------enig0960CC3B449DA0E7B5FDC81E--


From MAILER-DAEMON Sat Apr 07 08:31:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGUo7-0000mf-J9
	for mharc-autoconf@gnu.org; Sat, 07 Apr 2012 08:31:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47985)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n0nb@n0nb.us>) id 1SGUo5-0000mH-Ge
	for autoconf@gnu.org; Sat, 07 Apr 2012 08:31:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <n0nb@n0nb.us>) id 1SGUo3-00070L-2t
	for autoconf@gnu.org; Sat, 07 Apr 2012 08:31:53 -0400
Received: from p3plsmtpa07-10.prod.phx3.secureserver.net
	([173.201.192.239]:45962) by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <n0nb@n0nb.us>) id 1SGUo2-0006zk-Qs
	for autoconf@gnu.org; Sat, 07 Apr 2012 08:31:50 -0400
Received: (qmail 1133 invoked from network); 7 Apr 2012 12:31:47 -0000
Received: from unknown (68.234.124.194)
	by p3plsmtpa07-10.prod.phx3.secureserver.net (173.201.192.239) with
	ESMTP; 07 Apr 2012 12:31:47 -0000
Date: Sat, 7 Apr 2012 07:31:29 -0500
From: Nate Bargmann <n0nb@n0nb.us>
To: autoconf@gnu.org
Subject: Re: autoconf/automake: handling the installation of desktop files /
	icons
Message-ID: <20120407123129.GE31102@n0nb.us>
References: <4F7F3B4D.5030608@frigidcode.com> <20120406225840.GC31102@n0nb.us>
	<4F7FDF3E.5030007@frigidcode.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F7FDF3E.5030007@frigidcode.com>
X-Operating-System: Linux 3.2.0-2-686-pae i686
Organization: Amateur Radio!
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 173.201.192.239
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Apr 2012 12:31:55 -0000

* On 2012 07 Apr 01:29 -0500, Christopher Howard wrote:
> Thanks. Actually, early today I decided the most sensible thing to do
> would be to just /not/ have the desktop/icon files installed by the
> source, but rather to just package them with the source and leave the
> installation to the distros.

That will work if you're not concerned about your package working
without some extra work by the local administrator when the package is
built locally.  

My apologies if this is getting a bit off topic for this list.  The File
Hierarchy Standard specifies that /usr/local is a mirror directory
structure of /usr and that distribution package managers are not to
touch that area.  I've interpreted that to mean that locally compiled
packages should stay under /usr/local and not write elsewhere, except
/etc on installation.  So it seems as though your package should put its
.desktop files under /usr/local/share/applications and icons under
/usr/local/share/pixmaps based on the structure under /usr on a Debian
system which aim to meet the FHS.

> I found out upon further research that putting static files in a
> static location is not a hard thing for package managers to do. Gentoo
> has functions specifically for installing menu files and icons, and
> for a Debian package its a simple do_install call. Furthermore, if I
> tried to wrap it in make install, this would cause additional
> problems, because then people would have to have root privileges in
> order to install, since the proper /usr/share locations are usually
> root owned.

Also /usr/share could be read only.  Presumably the system administrator
will make arrangements for /usr/local to be writable before attempting
install the package.  Your generated Makefile will create the needed
directories in the /usr/local hiearchy such as under /usr/local/share
for your package.

It has been my philosophy to assure the package I maintain works under
/usr/local.  This facilitates the local admin being able to install an
updated version from source and with the rest of the system search paths
set to favor packages installed under /usr/local, provides a clean way
to update a package even when the package manager requires an older
version be installed.  You also want to assure that when your package is
installed from source that by default it doesn't overwrite anything
installed by a package manager.  Autoconf helps with this by providing
/usr/local as the default prefix. 

In short, my philosophy is to have the source package independent of
distribution package managers and it seems to work.

- Nate >>

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Ham radio, Linux, bikes, and more: http://www.n0nb.us


From MAILER-DAEMON Sat Apr 07 10:37:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGWm3-00043p-E8
	for mharc-autoconf@gnu.org; Sat, 07 Apr 2012 10:37:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32776)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <richardashaudacity@googlemail.com>)
	id 1SGWm0-000435-ND
	for autoconf@gnu.org; Sat, 07 Apr 2012 10:37:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <richardashaudacity@googlemail.com>)
	id 1SGWly-0000hX-QY
	for autoconf@gnu.org; Sat, 07 Apr 2012 10:37:52 -0400
Received: from mail-wg0-f49.google.com ([74.125.82.49]:32796)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <richardashaudacity@googlemail.com>)
	id 1SGWly-0000hR-H3
	for autoconf@gnu.org; Sat, 07 Apr 2012 10:37:50 -0400
Received: by wgbdr1 with SMTP id dr1so2138067wgb.30
	for <autoconf@gnu.org>; Sat, 07 Apr 2012 07:37:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=20120113;
	h=sender:subject:from:reply-to:to:cc:in-reply-to:references
	:content-type:organization:date:message-id:mime-version:x-mailer
	:content-transfer-encoding;
	bh=ledF/1CtHcJyvNH2Vd6xE3a5fzcvV/68mZlkZYU0ZH4=;
	b=fn/eAO7ussBJB4+sP/82j/HoM7xfwR3iYCFz8Km0YDM9dGvnoaTGQpu89aDrwaVSbv
	EGH6JfQXV5YD/QhetoHSKrDRoYIaWjlzZKQcqFlmcDYoWp55qby4UzSr1tS3qYYouDmz
	cDhiWm6CGNiyJpQkA5s9QQyQuWft/SYVDQk879rlOXgNT/TGJPGJgdmogeLuSu35ddYo
	43wc0FTptOriAqi9kVt42WMb5ZGaBGmg9mpmuH66wQYpjOdVksmAFqvaLQqCo/7T1JH9
	G6OfCzRRrhYBEprcZedEhmEJkN658i3yYKoLz81q2gIRZUeHYy108nweI3QhgmShm2jl
	A2bw==
Received: by 10.180.81.135 with SMTP id a7mr3685269wiy.16.1333809467200;
	Sat, 07 Apr 2012 07:37:47 -0700 (PDT)
Received: from [192.168.0.33] (cpc2-brmb8-2-0-cust5.1-3.cable.virginmedia.com.
	[80.2.155.6])
	by mx.google.com with ESMTPS id ea6sm15084404wib.5.2012.04.07.07.37.45
	(version=SSLv3 cipher=OTHER); Sat, 07 Apr 2012 07:37:45 -0700 (PDT)
Sender: Richard Ash <richardashaudacity@googlemail.com>
Subject: Re: AC_CONFIG_SUBDIRS right away
From: Richard Ash <richard@audacityteam.org>
To: Paul Dugas <paul@dugasenterprises.com>
In-Reply-To: <CADnMf=2rgNOpkmPZFFweo3yyVutzPG_mMTp1vQMbXJHpL2hv6g@mail.gmail.com>
References: <CADnMf=2rgNOpkmPZFFweo3yyVutzPG_mMTp1vQMbXJHpL2hv6g@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Organization: Audacity Team
Date: Sat, 07 Apr 2012 15:37:43 +0100
Message-ID: <1333809463.2539.4.camel@localhost>
Mime-Version: 1.0
X-Mailer: Evolution 2.32.3
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.49
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: richard@audacityteam.org
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Apr 2012 14:37:54 -0000

On Fri, 2012-04-06 at 22:01 -0400, Paul Dugas wrote:
> I'm trying to use the pkg-config script provided by a sub-package to
> make appropriate additions to CFLAGS, LDFLAGS and LIBS for the parent
> package and have discovered the actual sub-package configuration is
> delayed until the AC_CONFIG_FILES call.  I found a 2008 post where
> someone had run into the same issue but I didn't see a solution
> posted.  I'm wondering if, in the intervening time, there's been any
> progress in providing a mechanism for a sub-package to be configured
> right away.

I strongly suspect that was my post.

All I can say is that my solution has been in the Audacity source
tarballs since then, and hasn't to my knowledge been giving anyone
grief.
http://code.google.com/p/audacity/source/browse/audacity-src/trunk/m4/ax_config_dir.m4

I would like a better fix though, not least one that allowed proper
control over what arguments were passed through to the subsidiary
configure scripts.

Richard



From MAILER-DAEMON Sat Apr 07 14:09:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGa4x-0003fj-Jw
	for mharc-autoconf@gnu.org; Sat, 07 Apr 2012 14:09:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56246)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <paul@dugasenterprises.com>) id 1SGa4v-0003fK-BU
	for autoconf@gnu.org; Sat, 07 Apr 2012 14:09:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <paul@dugasenterprises.com>) id 1SGa4t-0005PW-EJ
	for autoconf@gnu.org; Sat, 07 Apr 2012 14:09:36 -0400
Received: from na3sys009aog101.obsmtp.com ([74.125.149.67]:33904)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <paul@dugasenterprises.com>) id 1SGa4t-0005MF-31
	for autoconf@gnu.org; Sat, 07 Apr 2012 14:09:35 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]) (using TLSv1) by
	na3sys009aob101.postini.com ([74.125.148.12]) with SMTP
	ID DSNKT4CC3B1ao9veuAxVYICDbsEE9QopB1HJ@postini.com;
	Sat, 07 Apr 2012 11:09:35 PDT
Received: by obbup19 with SMTP id up19so5456847obb.18
	for <autoconf@gnu.org>; Sat, 07 Apr 2012 11:09:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=dugasenterprises.com; s=google;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=0AKBnvbhlAOWbnT0imXkAjAnR/X6kvFV5E7qJ6GyqwI=;
	b=TPKKZ82U8j1/AyV3Y5c1cA0gnVTVbkCmoioABiV01VUfa4SpO7XK8Wap/tkb5LJpfF
	P4R4Z/RUFNi4XHtBJmb7+BKi7RZs3nZ+ZQ5KHmFV/yAXoAhTBLwnOr1PixAOdRs+j034
	DJ3MgaDLo2kmzf3BksWzovdw8r69xN8wQzEo4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding:x-gm-message-state;
	bh=0AKBnvbhlAOWbnT0imXkAjAnR/X6kvFV5E7qJ6GyqwI=;
	b=meEe47iDvtv/RbnLaay4l8FfNYjPYqn1PaVDPDUZQXEzhilHb1h8UW7TB0T0GzFARs
	hv/7UqDUbFntl8mPlzaBo5G3C07J0nOpHbTxX+gXdSD6QFv1ekDLr5w2ftFrt/uLzmLE
	bFqNRkD1WLx4EPm+gd9zHjakXetZC53aIvjCPnll/OluJ52z5XECr/szvSlHQLC1LZx8
	KpqS42XUmt94EsGEAD6fERu86c3vrkce3CmNGjPhHWwMgBtjbA7VFbNHiZMY45dDDucO
	Im04raqJ0yNksD7vJ3gMFjvA3/wnBgsIIKMsLFTIZsUg/21eC2dYSLez+2YPu/0dDm0M
	oRjQ==
MIME-Version: 1.0
Received: by 10.60.9.38 with SMTP id w6mr2666248oea.41.1333822172255; Sat, 07
	Apr 2012 11:09:32 -0700 (PDT)
Received: by 10.182.33.135 with HTTP; Sat, 7 Apr 2012 11:09:32 -0700 (PDT)
In-Reply-To: <1333809463.2539.4.camel@localhost>
References: <CADnMf=2rgNOpkmPZFFweo3yyVutzPG_mMTp1vQMbXJHpL2hv6g@mail.gmail.com>
	<1333809463.2539.4.camel@localhost>
Date: Sat, 7 Apr 2012 14:09:32 -0400
Message-ID: <CADnMf=1VmxOdxzQH0beaJp-rNAY5sAkNR1a93Q-Vpq5oO5qJtA@mail.gmail.com>
Subject: Re: AC_CONFIG_SUBDIRS right away
From: Paul Dugas <paul@dugasenterprises.com>
To: richard@audacityteam.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQmBWl88EcVybfNnqZXWEjqqMyfyd40lCm3KXMWkeK1BHF7wy9VWPCoO1vaFkbGmaxvS++yh
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 74.125.149.67
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Apr 2012 18:09:38 -0000

On Sat, Apr 7, 2012 at 10:37 AM, Richard Ash <richard@audacityteam.org> wro=
te:
> On Fri, 2012-04-06 at 22:01 -0400, Paul Dugas wrote:
>> I'm trying to use the pkg-config script provided by a sub-package to
>> make appropriate additions to CFLAGS, LDFLAGS and LIBS for the parent
>> package and have discovered the actual sub-package configuration is
>> delayed until the AC_CONFIG_FILES call. =C2=A0I found a 2008 post where
>> someone had run into the same issue but I didn't see a solution
>> posted. =C2=A0I'm wondering if, in the intervening time, there's been an=
y
>> progress in providing a mechanism for a sub-package to be configured
>> right away.
>
> I strongly suspect that was my post.
>
> All I can say is that my solution has been in the Audacity source
> tarballs since then, and hasn't to my knowledge been giving anyone
> grief.
> http://code.google.com/p/audacity/source/browse/audacity-src/trunk/m4/ax_=
config_dir.m4
>
> I would like a better fix though, not least one that allowed proper
> control over what arguments were passed through to the subsidiary
> configure scripts.

Yeah, that was your thread.  I'm a little surprised, as you were back
then, that this isn't something more people want to do.  I was trying
to accomplish the exact approach you were suggesting; using the
installed package if it's there then falling back to a sub-package if
it's not.  I'll take a look at your macro.  Thanks much.

P
--=20
Paul Dugas=C2=A0=E2=80=A2=C2=A0Dugas Enterprises, LLC=C2=A0=E2=80=A2=C2=A0C=
omputer Engineer
Paul@DugasEnterprises.com=C2=A0=E2=80=A2=C2=A0+1.404.932.1355=C2=A0=E2=80=
=A2=C2=A0522 Black Canyon Park,
Canton GA 30114 USA


From MAILER-DAEMON Sat Apr 07 14:53:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGalW-0003Ft-Kb
	for mharc-autoconf@gnu.org; Sat, 07 Apr 2012 14:53:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37428)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dwheeler@dwheeler.com>) id 1SGalU-0003Fn-HC
	for autoconf@gnu.org; Sat, 07 Apr 2012 14:53:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dwheeler@dwheeler.com>) id 1SGalS-00061w-Nr
	for autoconf@gnu.org; Sat, 07 Apr 2012 14:53:36 -0400
Received: from aibo.runbox.com ([91.220.196.211]:56204)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dwheeler@dwheeler.com>) id 1SGalS-00061h-HT
	for autoconf@gnu.org; Sat, 07 Apr 2012 14:53:34 -0400
Received: from [10.9.9.130] (helo=fenris.runbox.com)
	by bars.runbox.com with esmtp (Exim 4.71)
	(envelope-from <dwheeler@dwheeler.com>) id 1SGalP-0001UY-Mg
	for autoconf@gnu.org; Sat, 07 Apr 2012 20:53:31 +0200
Received: from mail by fenris.runbox.com with local  (Exim 4.50)
	id 1SGalP-0002RX-Lm
	for autoconf@gnu.org; Sat, 07 Apr 2012 20:53:31 +0200
Content-Type: text/plain; charset="iso-8859-15"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Received: from [108.18.98.106] by secure.runbox.com with http (uid:258406)
	(RMM 4.0); for <autoconf@gnu.org>; Sat, 07 Apr 2012 18:53:31 GMT
From: "David A. Wheeler" <dwheeler@dwheeler.com>
To: autoconf@gnu.org
Subject: Detecting and warning about potential problems (AC_INIT)
Date: Sat, 07 Apr 2012 14:53:31 -0400 (EDT)
X-Mailer: RMM
Message-Id: <E1SGalP-0002RX-Lm@fenris.runbox.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.196.211
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: dwheeler@dwheeler.com
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Apr 2012 18:53:37 -0000

I just submitted a patch as an attachment to:
 https://savannah.gnu.org/support/index.php?107986

In general, I think the autotools should try to do more detecting and warni=
ng of potential problems.  That ways, users (especially new users) will kno=
w as soon as possible about them.  This patch detects if AC_INIT is missing=
, or if any of its parameters are not normalized.

--- David A. Wheeler


From MAILER-DAEMON Mon Apr 09 14:08:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHJ1A-0007YP-2s
	for mharc-autoconf@gnu.org; Mon, 09 Apr 2012 14:08:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59983)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1SHEcJ-00027q-2E
	for Autoconf@gnu.org; Mon, 09 Apr 2012 09:26:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1SHEcG-000782-VD
	for Autoconf@gnu.org; Mon, 09 Apr 2012 09:26:46 -0400
Received: from sam.nabble.com ([216.139.236.26]:45469)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1SHEcG-00077k-QT
	for Autoconf@gnu.org; Mon, 09 Apr 2012 09:26:44 -0400
Received: from isper.nabble.com ([192.168.236.156])
	by sam.nabble.com with esmtp (Exim 4.72)
	(envelope-from <bounces@nabble.com>) id 1SHEcE-0004Ki-TS
	for Autoconf@gnu.org; Mon, 09 Apr 2012 06:26:42 -0700
Message-ID: <33655483.post@talk.nabble.com>
Date: Mon, 9 Apr 2012 06:26:42 -0700 (PDT)
From: Kabi <karstenkb@gmail.com>
To: Autoconf@gnu.org
Subject: How to force location of headers
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: karstenkb@gmail.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 216.139.236.26
X-Mailman-Approved-At: Mon, 09 Apr 2012 14:08:42 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Apr 2012 13:26:48 -0000


Hi

I am trying to find a way to force make to look for header-files in a
specific location, so I am looking for some option to put in Makefile.am to
make this happen.
This option is for unittesting with check, where I am trying to override
included headers, to avoid controller specific options in the original
headers.

Is this possible?

I am using AM_CFLAGS to include directories where make should look for
headers, but only headers surrounded by <> when included is overridden. make
is still looking for headers surrounded byt "" in the directory with the
projects source .c files.

My Makefile.am
-----------------------------------------------------------------
PRJDIR = ../../xyz_prj

AM_CFLAGS = -Ixyz/xyz -Ixyz


noinst_LTLIBRARIES = lib_xyz.la
noinst_libAT_SMdir = ${includedir}/xyz

libAT_SM_la_SOURCES = ${PRJDIR}/xyz.c

TESTS = check_main
check_PROGRAMS = check_main
check_main_SOURCES = check_main.c check_xyz.c
check_main_CFLAGS = ${AM_CFLAGS}  @CHECK_CFLAGS@
check_main_LDADD = lib_xyz.la @CHECK_LIBS@

ACLOCAL_AMFLAGS = -I m4 --install
-----------------------------------------------------------------

The project source files are compiled into a library (only 1 in this
example) before included into the check project.

-- 
View this message in context: http://old.nabble.com/How-to-force-location-of-headers-tp33655483p33655483.html
Sent from the Gnu - Autoconf - General mailing list archive at Nabble.com.



From MAILER-DAEMON Mon Apr 09 14:08:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHJ1A-0007Yy-AQ
	for mharc-autoconf@gnu.org; Mon, 09 Apr 2012 14:08:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60161)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1SHEdG-00029N-Vr
	for Autoconf@gnu.org; Mon, 09 Apr 2012 09:27:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1SHEdF-0007Fl-28
	for Autoconf@gnu.org; Mon, 09 Apr 2012 09:27:46 -0400
Received: from sam.nabble.com ([216.139.236.26]:45570)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1SHEdE-0007Fb-Tr
	for Autoconf@gnu.org; Mon, 09 Apr 2012 09:27:44 -0400
Received: from isper.nabble.com ([192.168.236.156])
	by sam.nabble.com with esmtp (Exim 4.72)
	(envelope-from <bounces@nabble.com>) id 1SHEdD-0004RW-IT
	for Autoconf@gnu.org; Mon, 09 Apr 2012 06:27:43 -0700
Message-ID: <33655483.post@talk.nabble.com>
Date: Mon, 9 Apr 2012 06:27:43 -0700 (PDT)
From: Kabi <karstenkb@gmail.com>
To: Autoconf@gnu.org
Subject: How to force location of headers
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: karstenkb@gmail.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 216.139.236.26
X-Mailman-Approved-At: Mon, 09 Apr 2012 14:08:43 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Apr 2012 13:27:48 -0000


Hi

I am trying to find a way to force make to look for header-files in a
specific location, so I am looking for some option to put in Makefile.am to
make this happen.
This option is for unittesting with check, where I am trying to override
included headers, to avoid controller specific options in the original
headers.

Is this possible?

I am using AM_CFLAGS to include directories where make should look for
headers, but only headers surrounded by <> when included is overridden. make
is still looking for headers surrounded by "" in the directory with the
projects source .c files.

My Makefile.am
-----------------------------------------------------------------
PRJDIR = ../../xyz_prj

AM_CFLAGS = -Ixyz/xyz -Ixyz


noinst_LTLIBRARIES = lib_xyz.la
noinst_libAT_SMdir = ${includedir}/xyz

libAT_SM_la_SOURCES = ${PRJDIR}/xyz.c

TESTS = check_main
check_PROGRAMS = check_main
check_main_SOURCES = check_main.c check_xyz.c
check_main_CFLAGS = ${AM_CFLAGS}  @CHECK_CFLAGS@
check_main_LDADD = lib_xyz.la @CHECK_LIBS@

ACLOCAL_AMFLAGS = -I m4 --install
-----------------------------------------------------------------

The project source files are compiled into a library (only 1 in this
example) before included into the check project.

-- 
View this message in context: http://old.nabble.com/How-to-force-location-of-headers-tp33655483p33655483.html
Sent from the Gnu - Autoconf - General mailing list archive at Nabble.com.



From MAILER-DAEMON Mon Apr 09 14:45:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHJb8-0000cc-Sc
	for mharc-autoconf@gnu.org; Mon, 09 Apr 2012 14:45:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37398)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <peter@pogma.com>) id 1SHJb5-0000by-Ey
	for Autoconf@gnu.org; Mon, 09 Apr 2012 14:45:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <peter@pogma.com>) id 1SHJb3-0002kp-OJ
	for Autoconf@gnu.org; Mon, 09 Apr 2012 14:45:51 -0400
Received: from pogma.xen.prgmr.com ([68.68.97.8]:47531)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <peter@pogma.com>) id 1SHJb3-0002jX-EP
	for Autoconf@gnu.org; Mon, 09 Apr 2012 14:45:49 -0400
Message-ID: <4F832E58.80908@pogma.com>
X-DKIM: Sendmail DKIM Filter v2.8.3 pogma.xen.prgmr.com 022D3BF53F
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pogma.com; s=pogmail;
	t=1333997145; bh=dooQ66Xta8hvZA8kxmODWBdinfSPpk5rlQTc14Dim0s=;
	h=Date:From:MIME-Version:To:CC:Subject:References:In-Reply-To:
	Content-Type:Content-Transfer-Encoding;
	b=P03b+BJ03ycPXXvFeJDlcY9FSbHGzGRg0KHA0j2RJ/UKbR+oE5r59LmPrO8mKMOfl
	q1K79hJLRBVUtgtcuOBcH4HsSb1EMkW3goNqLswFGW9lUGeyoP/TLO7Y+G0UQPMyVq
	5o1TqJs63DWaD5yZZVQvZlmPPAPOL9CuV6MYTH38=
Date: Mon, 09 Apr 2012 13:45:44 -0500
From: Peter O'Gorman <peter@pogma.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Kabi <karstenkb@gmail.com>
Subject: Re: How to force location of headers
References: <33655483.post@talk.nabble.com>
In-Reply-To: <33655483.post@talk.nabble.com>
X-Enigmail-Version: 1.4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 68.68.97.8
Cc: Autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Apr 2012 18:45:54 -0000

On 04/09/2012 08:27 AM, Kabi wrote:

> I am using AM_CFLAGS to include directories where make should look for
> headers, but only headers surrounded by <> when included is overridden. make
> is still looking for headers surrounded by "" in the directory with the
> projects source .c files.

Searching for files with #include "" is done first in the current file
directory.

To change it with gcc use -I-, which is deprecated, but the only way I
know to remove . from the #include "" search path.

See your gcc/cpp man page though, it's quite possible I missed another
option to do it (-iquote does not appear to remove .).

Peter



From MAILER-DAEMON Thu Apr 12 12:03:26 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIMUY-0000gq-M4
	for mharc-autoconf@gnu.org; Thu, 12 Apr 2012 12:03:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43132)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SIMUN-0000dj-FZ
	for Autoconf@gnu.org; Thu, 12 Apr 2012 12:03:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SIMUG-0002Vi-FR
	for Autoconf@gnu.org; Thu, 12 Apr 2012 12:03:15 -0400
Received: from smtp3.stanford.edu ([171.67.219.83]:39538
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SIMUG-0002Tp-AE
	for Autoconf@gnu.org; Thu, 12 Apr 2012 12:03:08 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id AD86B442B61;
	Thu, 12 Apr 2012 09:03:04 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id 6EC07442BDB;
	Thu, 12 Apr 2012 09:03:04 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 507062F4A8; Thu, 12 Apr 2012 09:03:04 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: Kabi <karstenkb@gmail.com>
Subject: Re: How to force location of headers
In-Reply-To: <33655483.post@talk.nabble.com> (Kabi's message of "Mon, 9 Apr
	2012 06:26:42 -0700 (PDT)")
Organization: The Eyrie
References: <33655483.post@talk.nabble.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Thu, 12 Apr 2012 09:03:03 -0700
Message-ID: <87sjg9vsy0.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.83
Cc: Autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Apr 2012 16:03:25 -0000

Kabi <karstenkb@gmail.com> writes:

> I am using AM_CFLAGS to include directories where make should look for
> headers, but only headers surrounded by <> when included is
> overridden. make is still looking for headers surrounded byt "" in the
> directory with the projects source .c files.

If you can modify the source, get rid of all uses of "" in #include.  I
would recommend never using "" if you can avoid it.  Once you have a good
build system that can handle adding the appropriate -I flags for the
compiler, "" is primarily a source of bugs and annoyances and not really a
help.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Fri Apr 13 15:34:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SImGG-0005Pk-I0
	for mharc-autoconf@gnu.org; Fri, 13 Apr 2012 15:34:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43248)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dawood@csl.sri.com>) id 1SImDf-0004h8-2G
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:31:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dawood@csl.sri.com>) id 1SImDd-0006TX-CD
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:31:42 -0400
Received: from brightmail-internal4.sri.com ([128.18.84.133]:62143)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dawood@csl.sri.com>) id 1SImDd-0006TI-5i
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:31:41 -0400
X-AuditID: 80125485-b7f9a6d000000610-c0-4f887f19e832
Received: from mx0.csl.sri.com (mx0.csl.sri.com [130.107.1.30])
	(using TLS with cipher AES256-SHA (AES256-SHA/256 bits))
	(Client did not present a certificate)
	by brightmail-internal4.sri.com (SRI Internal SMTP Gateway) with SMTP
	id 52.EC.01552.91F788F4; Fri, 13 Apr 2012 12:31:37 -0700 (PDT)
Received: from visnet-188.csl.sri.com (visnet-188.csl.sri.com [130.107.98.188])
	(authenticated bits=0)
	by mx0.csl.sri.com (8.14.3/8.14.2) with ESMTP id q3DJVaJX091974
	(version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO)
	for <autoconf@gnu.org>; Fri, 13 Apr 2012 12:31:37 -0700 (PDT)
	(envelope-from dawood@csl.sri.com)
Message-ID: <4F887F18.2090609@csl.sri.com>
Date: Fri, 13 Apr 2012 12:31:36 -0700
From: Dawood Tariq <dawood@csl.sri.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: Problem using AC_CANONICAL_BUILD
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupiluLIzCtJLcpLzFFi42JpymaU05Ws7/A3mLZLxqLx0Xc2B0aPtmlm
	AYxRXDYpqTmZZalF+nYJXBkfVx9nLvjIUvH4XA9zA+NX5i5GDg4JAROJj6t0uhg5gUwxiQv3
	1rN1MXJxCAmsYpKYeaaBEcK5ySTRNG85G0gVr4CWxLp/XxlBbBYBVYlDl18xg9hsAuoSK6+3
	soDYogLJEkfXn4eqF5Q4OfMJWFxEQETid99UsHphAU2JVYf3sIIcwSxgLfFtdxFImFlAXmL7
	2znMExh5ZyHpnoVQNQtJ1QJG5lWMMklFmekZJbmJmTm6sHAx0SsuytRLzs/dxAgMoQahkNYd
	jCv2GB5iFOBgVOLhFTTr8BdiTSwrrsw9xCjBwawkwhseDRTiTUmsrEotyo8vKs1JLT7EKM3B
	oiTO+82c319IID2xJDU7NbUgtQgmy8TBKdXA2FQ6bcLD4jnzfD9XiHL8ejvnAOcdIR8x4YNF
	HRNlWd2bpu3e73bXsO/go5tMfw5XSNe+3NJfp/xD4a5g7tW25Vayn95cbq2Y+nf5w/BXef7/
	Fq+yL7pqv6Rq6/qLL9g04qXyLv7NcJgX/VVb8KWXxLpPc7+z+2R0ekpaFIRL/K1hVb6oWOFU
	q8RSnJFoqMVcVJwIAI+cMIgdAgAA
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 128.18.84.133
X-Mailman-Approved-At: Fri, 13 Apr 2012 15:34:23 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Apr 2012 19:31:44 -0000

Hello all,

I'm using autoconf 2.68 on Darwin kernel version 10.8.0. I want to use 
the AX_PROG_JAVAH macro to determine the location of the jni.h header 
file and set the CPPFLAGS accordingly. This macro uses the $build_os 
variable which is generated by the AC_CANONICAL_BUILD macro. If I don't 
use the AX_PROG_JAVAH and AC_CANONICAL_BUILD macros, my configure script 
works fine. But if I invoke either of them, I get the following error:

configure: error: cannot find install-sh, install.sh, or shtool in "." 
"./.." "./../.."

Why am I getting this message and how can I get around it?

Thanks,
Dawood


From MAILER-DAEMON Fri Apr 13 15:41:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SImMi-00076v-Ls
	for mharc-autoconf@gnu.org; Fri, 13 Apr 2012 15:41:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54892)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SImMf-00076J-Ky
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:41:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SImMd-0001CP-RO
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:41:01 -0400
Received: from mx1.redhat.com ([209.132.183.28]:42282)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SImMd-0001C7-JA
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:40:59 -0400
Received: from int-mx11.intmail.prod.int.phx2.redhat.com
	(int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3DJevqP028303
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 13 Apr 2012 15:40:57 -0400
Received: from [10.3.113.14] ([10.3.113.14])
	by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q3DJevSU005776; Fri, 13 Apr 2012 15:40:57 -0400
Message-ID: <4F888148.6040301@redhat.com>
Date: Fri, 13 Apr 2012 13:40:56 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Dawood Tariq <dawood@csl.sri.com>
Subject: Re: Problem using AC_CANONICAL_BUILD
References: <4F887F18.2090609@csl.sri.com>
In-Reply-To: <4F887F18.2090609@csl.sri.com>
X-Enigmail-Version: 1.4
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig8741AACC72299A98B456BC24"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Apr 2012 19:41:03 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig8741AACC72299A98B456BC24
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/13/2012 01:31 PM, Dawood Tariq wrote:
> Hello all,
>=20
> I'm using autoconf 2.68 on Darwin kernel version 10.8.0. I want to use
> the AX_PROG_JAVAH macro to determine the location of the jni.h header
> file and set the CPPFLAGS accordingly. This macro uses the $build_os
> variable which is generated by the AC_CANONICAL_BUILD macro. If I don't=

> use the AX_PROG_JAVAH and AC_CANONICAL_BUILD macros, my configure scrip=
t
> works fine. But if I invoke either of them, I get the following error:
>=20
> configure: error: cannot find install-sh, install.sh, or shtool in "."
> "./.." "./../.."
>=20
> Why am I getting this message and how can I get around it?

Probably because you didn't properly populate your AC_CONFIG_AUX_DIR
directory.  I'm guessing you aren't using automake (since automake will
automatically place a copy of install-sh into your CONFIG_AUX_DIR)?  If
so, the solution is to manually place a version of install-sh alongside
your copies of config.guess and config.sub, all in the directory you
passed to AC_CONFIG_AUX_DIR (or, if you aren't using AC_CONFIG_AUX_DIR,
into your top-level directory, although I do recommend using
AC_CONFIG_AUX_DIR).  The version of install-sh shipped with autoconf
2.68 is adequate for the purpose.

https://www.gnu.org/software/autoconf/manual/autoconf.html#Canonicalizing=


https://www.gnu.org/software/autoconf/manual/autoconf.html#Input

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig8741AACC72299A98B456BC24
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPiIFIAAoJEKeha0olJ0NqLYcH/3OiMyXor79QIldZfP2sQGBq
GOwZ+s/BSJnHTOxdPFbT9wpaeCzzK9L0hFKGEf9MLBbO6iIisIjiyDTAHfhjgmNe
J+1FRWlDhRlvv6rsD3FzhIpyFIJRv+evFB8lTwv2SSIMpxp16HxfBrbvhP23EomJ
s647qua95SV1acw4/XihJHTBz6fVt9vTDtwGMB+1IdV21Wh8mGm5QxAAwu7PSezp
+3b2jOuBO1RUh6tR7CbUNVcDmXfQMPnZw3n+0x3J4EiiwPoj3juWQ5mM40B1U5Wj
BDhFXF8zZNeIKPAl9BtSQxJaVww0C/f1Wem+Eo4kWdqx0zqXPbejA3GWAQCpIaA=
=p1d8
-----END PGP SIGNATURE-----

--------------enig8741AACC72299A98B456BC24--


From MAILER-DAEMON Fri Apr 13 15:54:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIma5-0000IS-Jc
	for mharc-autoconf@gnu.org; Fri, 13 Apr 2012 15:54:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34731)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=nbowler=443e8ab73@mail.ellipticsemi.com>)
	id 1SIma2-0000Hm-53
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:54:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=nbowler=443e8ab73@mail.ellipticsemi.com>)
	id 1SIma0-0004e4-1Z
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:54:49 -0400
Received: from mx.scalarmail.ca ([98.158.95.75]:56217
	helo=ironport-01.sms.scalar.ca)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=nbowler=443e8ab73@mail.ellipticsemi.com>)
	id 1SImZz-0004Tm-T7
	for autoconf@gnu.org; Fri, 13 Apr 2012 15:54:47 -0400
Received: from unknown (HELO sms-zimbra-mta-02.sms.scalar.ca) ([192.168.32.56])
	by ironport-01.sms.scalar.ca with ESMTP; 13 Apr 2012 15:54:21 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by sms-zimbra-mta-02.sms.scalar.ca (Postfix) with ESMTP id 2310687C21; 
	Fri, 13 Apr 2012 15:54:21 -0400 (EDT)
Received: from sms-zimbra-mta-02.sms.scalar.ca ([127.0.0.1])
	by localhost (sms-zimbra-mta-02.sms.scalar.ca [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id D-l8JYuzopli; Fri, 13 Apr 2012 15:54:20 -0400 (EDT)
Received: from mail.ellipticsemi.com (dsl-67-204-24-19.acanac.net
	[67.204.24.19]) (Authenticated sender: nbowler@elliptictech.com)
	by sms-zimbra-mta-02.sms.scalar.ca (Postfix) with ESMTPSA id 678E887BFC;
	Fri, 13 Apr 2012 15:54:19 -0400 (EDT)
Received: by mail.ellipticsemi.com (nbSMTP-1.00) for uid 550
	(using TLSv1/SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	nbowler@mail.ellipticsemi.com; Fri, 13 Apr 2012 15:54:19 -0400 (EDT)
Date: Fri, 13 Apr 2012 15:54:18 -0400
From: Nick Bowler <nbowler@elliptictech.com>
To: Eric Blake <eblake@redhat.com>
Subject: Re: Problem using AC_CANONICAL_BUILD
Message-ID: <20120413195418.GA8995@elliptictech.com>
References: <4F887F18.2090609@csl.sri.com>
 <4F888148.6040301@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F888148.6040301@redhat.com>
Organization: Elliptic Technologies Inc.
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 98.158.95.75
Cc: Dawood Tariq <dawood@csl.sri.com>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Apr 2012 19:54:51 -0000

On 2012-04-13 13:40 -0600, Eric Blake wrote:
> On 04/13/2012 01:31 PM, Dawood Tariq wrote:
> > Hello all,
> > 
> > I'm using autoconf 2.68 on Darwin kernel version 10.8.0. I want to use
> > the AX_PROG_JAVAH macro to determine the location of the jni.h header
> > file and set the CPPFLAGS accordingly. This macro uses the $build_os
> > variable which is generated by the AC_CANONICAL_BUILD macro. If I don't
> > use the AX_PROG_JAVAH and AC_CANONICAL_BUILD macros, my configure script
> > works fine. But if I invoke either of them, I get the following error:
> > 
> > configure: error: cannot find install-sh, install.sh, or shtool in "."
> > "./.." "./../.."
> > 
> > Why am I getting this message and how can I get around it?
> 
> Probably because you didn't properly populate your AC_CONFIG_AUX_DIR
> directory.  I'm guessing you aren't using automake (since automake will
> automatically place a copy of install-sh into your CONFIG_AUX_DIR)?  If
> so, the solution is to manually place a version of install-sh alongside
> your copies of config.guess and config.sub, all in the directory you
> passed to AC_CONFIG_AUX_DIR (or, if you aren't using AC_CONFIG_AUX_DIR,
> into your top-level directory, although I do recommend using
> AC_CONFIG_AUX_DIR).  The version of install-sh shipped with autoconf
> 2.68 is adequate for the purpose.

Nevertheless, it's surprising (to me) that AC_CANONICAL_BUILD would
require install-sh.  I can reproduce the error with the following
configure.ac:

  AC_INIT([test], [1.0])
  AC_CANONICAL_BUILD
  AC_OUTPUT

The autoconf manual documents the install-sh requirement if you call
AC_PROG_INSTALL, but the above does not call AC_PROG_INSTALL, nor does
it appear in the output of "autoconf -t AC_PROG_INSTALL".

Moreover, after copying install-sh/config.guess/config.sub, the
generated configure script doesn't even test for a working install, nor
does it reference install-sh in any capacity other than to bail out if
it's not present.

> https://www.gnu.org/software/autoconf/manual/autoconf.html#Canonicalizing

This section of the manual only says you need to copy config.guess and
config.sub.  The requirement for install-sh is not mentioned.

Cheers,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)



From MAILER-DAEMON Fri Apr 13 16:29:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIn7Y-0000s2-Cj
	for mharc-autoconf@gnu.org; Fri, 13 Apr 2012 16:29:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58009)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dawood@csl.sri.com>) id 1SIn7U-0000na-SL
	for autoconf@gnu.org; Fri, 13 Apr 2012 16:29:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dawood@csl.sri.com>) id 1SIn7Q-0006Qd-LH
	for autoconf@gnu.org; Fri, 13 Apr 2012 16:29:24 -0400
Received: from brightmail-internal3.sri.com ([128.18.84.132]:49427)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dawood@csl.sri.com>) id 1SIn7Q-0006Oa-90
	for autoconf@gnu.org; Fri, 13 Apr 2012 16:29:20 -0400
X-AuditID: 80125484-b7f556d000000908-29-4f888c9d34b3
Received: from mx0.csl.sri.com (mx0.csl.sri.com [130.107.1.30])
	(using TLS with cipher AES256-SHA (AES256-SHA/256 bits))
	(Client did not present a certificate)
	by brightmail-internal3.sri.com (SRI Internal SMTP Gateway) with SMTP
	id C6.41.02312.D9C888F4; Fri, 13 Apr 2012 13:29:17 -0700 (PDT)
Received: from visnet-188.csl.sri.com (visnet-188.csl.sri.com [130.107.98.188])
	(authenticated bits=0)
	by mx0.csl.sri.com (8.14.3/8.14.2) with ESMTP id q3DKTGT1095156
	(version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO);
	Fri, 13 Apr 2012 13:29:16 -0700 (PDT)
	(envelope-from dawood@csl.sri.com)
Message-ID: <4F888C9C.4000902@csl.sri.com>
Date: Fri, 13 Apr 2012 13:29:16 -0700
From: Dawood Tariq <dawood@csl.sri.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: Nick Bowler <nbowler@elliptictech.com>
Subject: Re: Problem using AC_CANONICAL_BUILD
References: <4F887F18.2090609@csl.sri.com> <4F888148.6040301@redhat.com>
	<20120413195418.GA8995@elliptictech.com>
In-Reply-To: <20120413195418.GA8995@elliptictech.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsXSlM0opzu3p8PfYOozRYvGR9/ZLCa+Xc9q
	sXX/ayYHZo9DE3awebRNM/N4v+8qWwBzFJdNSmpOZllqkb5dAlfGvSlXWQsei1ScnHSFsYGx
	TbCLkZNDQsBEYu7XOewQtpjEhXvr2UBsIYFVTBIffgl3MXIB2YeYJLacO8YIkuAV0JI4/OsU
	C4jNIqAq8erfQbAGNgF1iZXXW8HiogLJEkfXn2eDqBeUODnzCVhcBKh364seMJsZaPGft7uY
	QGxhAV2J/afuskAsLpS482Y+2EGcAqYSL29sBNrLAVRvLfFtdxFEq7zE9rdzmCcwCsxCsmEW
	QtUsJFULGJlXMcokFWWmZ5TkJmbm6MLC01ivuChTLzk/dxMjMGQbhEJadjCu2GV4iFGAg1GJ
	h1fIrMNfiDWxrLgy9xCjBAezkghveDRQiDclsbIqtSg/vqg0J7X4EKM0B4uSOG+YMb+/kEB6
	YklqdmpqQWoRTJaJg1OqgXEhV919jlk1k4oncf3PSD+t82j9xLvbNvS8W/r6XoDb1+dpu46c
	zBLZUyG5985Utslzjoie6DsndPDufkY57Yh5MbtuqeaLH94RecJtqucixcIDFimBGjxepZOm
	SIVVeTZ+VTaLX3Or42arw++belsOnS08G5TEcu2HBpP0AVell0+llD3aDpUqsRRnJBpqMRcV
	JwIApaHMqlUCAAA=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 128.18.84.132
Cc: autoconf@gnu.org, Eric Blake <eblake@redhat.com>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Apr 2012 20:29:26 -0000

On 4/13/12 12:54 PM, Nick Bowler wrote:
> On 2012-04-13 13:40 -0600, Eric Blake wrote:
>> On 04/13/2012 01:31 PM, Dawood Tariq wrote:
>>> Hello all,
>>>
>>> I'm using autoconf 2.68 on Darwin kernel version 10.8.0. I want to use
>>> the AX_PROG_JAVAH macro to determine the location of the jni.h header
>>> file and set the CPPFLAGS accordingly. This macro uses the $build_os
>>> variable which is generated by the AC_CANONICAL_BUILD macro. If I don't
>>> use the AX_PROG_JAVAH and AC_CANONICAL_BUILD macros, my configure script
>>> works fine. But if I invoke either of them, I get the following error:
>>>
>>> configure: error: cannot find install-sh, install.sh, or shtool in "."
>>> "./.." "./../.."
>>>
>>> Why am I getting this message and how can I get around it?
>> Probably because you didn't properly populate your AC_CONFIG_AUX_DIR
>> directory.  I'm guessing you aren't using automake (since automake will
>> automatically place a copy of install-sh into your CONFIG_AUX_DIR)?  If
>> so, the solution is to manually place a version of install-sh alongside
>> your copies of config.guess and config.sub, all in the directory you
>> passed to AC_CONFIG_AUX_DIR (or, if you aren't using AC_CONFIG_AUX_DIR,
>> into your top-level directory, although I do recommend using
>> AC_CONFIG_AUX_DIR).  The version of install-sh shipped with autoconf
>> 2.68 is adequate for the purpose.
> Nevertheless, it's surprising (to me) that AC_CANONICAL_BUILD would
> require install-sh.  I can reproduce the error with the following
> configure.ac:
>
>    AC_INIT([test], [1.0])
>    AC_CANONICAL_BUILD
>    AC_OUTPUT
>
> The autoconf manual documents the install-sh requirement if you call
> AC_PROG_INSTALL, but the above does not call AC_PROG_INSTALL, nor does
> it appear in the output of "autoconf -t AC_PROG_INSTALL".
>
> Moreover, after copying install-sh/config.guess/config.sub, the
> generated configure script doesn't even test for a working install, nor
> does it reference install-sh in any capacity other than to bail out if
> it's not present.
>
>> https://www.gnu.org/software/autoconf/manual/autoconf.html#Canonicalizing
> This section of the manual only says you need to copy config.guess and
> config.sub.  The requirement for install-sh is not mentioned.
>
> Cheers,

Thank you for the feedback! The script works fine after copying the 
install-sh, config.guess, config.sub files. For now, I found that 
simpler to do than to use automake. I thought I may have been missing 
something or doing something silly but was surprised by the 'install-sh' 
requirement myself. Anyway, thank you again!


From MAILER-DAEMON Fri Apr 13 16:41:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SInIo-0002hi-66
	for mharc-autoconf@gnu.org; Fri, 13 Apr 2012 16:41:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37459)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SInIm-0002gf-0V
	for autoconf@gnu.org; Fri, 13 Apr 2012 16:41:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SInIj-0000nQ-Vx
	for autoconf@gnu.org; Fri, 13 Apr 2012 16:41:03 -0400
Received: from mx1.redhat.com ([209.132.183.28]:48996)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SInIj-0000nI-O1
	for autoconf@gnu.org; Fri, 13 Apr 2012 16:41:01 -0400
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3DKewxD017427
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 13 Apr 2012 16:40:58 -0400
Received: from [10.3.113.14] ([10.3.113.14])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id q3DKevrF012858; Fri, 13 Apr 2012 16:40:57 -0400
Message-ID: <4F888F59.4030409@redhat.com>
Date: Fri, 13 Apr 2012 14:40:57 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Nick Bowler <nbowler@elliptictech.com>
Subject: Re: Problem using AC_CANONICAL_BUILD
References: <4F887F18.2090609@csl.sri.com> <4F888148.6040301@redhat.com>
	<20120413195418.GA8995@elliptictech.com>
In-Reply-To: <20120413195418.GA8995@elliptictech.com>
X-Enigmail-Version: 1.4
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigBA125E7C71D6345A310DFE6B"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: Dawood Tariq <dawood@csl.sri.com>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Apr 2012 20:41:05 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigBA125E7C71D6345A310DFE6B
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/13/2012 01:54 PM, Nick Bowler wrote:

>>> configure: error: cannot find install-sh, install.sh, or shtool in ".=
"
>>> "./.." "./../.."
>>>
>>> Why am I getting this message and how can I get around it?
>>
>> Probably because you didn't properly populate your AC_CONFIG_AUX_DIR
>> directory.  I'm guessing you aren't using automake (since automake wil=
l
>> automatically place a copy of install-sh into your CONFIG_AUX_DIR)?  I=
f
>> so, the solution is to manually place a version of install-sh alongsid=
e
>> your copies of config.guess and config.sub, all in the directory you
>> passed to AC_CONFIG_AUX_DIR (or, if you aren't using AC_CONFIG_AUX_DIR=
,
>> into your top-level directory, although I do recommend using
>> AC_CONFIG_AUX_DIR).  The version of install-sh shipped with autoconf
>> 2.68 is adequate for the purpose.
>=20
> Nevertheless, it's surprising (to me) that AC_CANONICAL_BUILD would
> require install-sh.

Technically, it doesn't.  But it _does_ require AC_CONFIG_AUX_DIR, and
AC_CONFIG_AUX_DIR documents that rather than probe for all possible
auxiliary files, it _only_ probes for install-sh and assumes all other
aux files are in the same location.

Can it be improved?  Probably.  Maybe we could add a macro that
registers a required aux file, and have AC_CONFIG_AUX_DIR probe for the
first such registered file rather than hard-coding the search for
install-sh.  That way, using AC_CANONICAL_BUILD in isolation would then
warn you about missing config.guess, rather than missing install-sh.

But someone has to write the patches.  Would you like to volunteer?

>=20
>> https://www.gnu.org/software/autoconf/manual/autoconf.html#Canonicaliz=
ing
>=20
> This section of the manual only says you need to copy config.guess and
> config.sub.  The requirement for install-sh is not mentioned.

The requirement for install-sh as the hard-coded witness file was
mentioned in the #Input section under AC_CONFIG_AUX_DIR.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigBA125E7C71D6345A310DFE6B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPiI9ZAAoJEKeha0olJ0NqlPoH/2wMrN+Sirnc5mOpzv4Ymcx6
oAODeLvR3xNSxKGhnyd4JpBCalAI0DDFI0b62H3AH/dTHGYCyZmCq746FN+Ac1oa
HX9CxkIDKruJmy+wzS8yI92QTCZvk8heUiyOuJd8syJvXLZZEaPqL414QEjagEMz
Lb0g3BXNUsw7dW0n4KEA+nCeCdrF2Y74ZnIE56mtKzV3s8yr8FmF0U3BRYjWO2rm
YIVEXE1sDyHLuAWMBKW/ppf9hXtCHu/dR6HZBV0UEQhz8l8u7UPJNcewCw8nnViX
us4x+6FwH4jo0+n6uXuziPHG37okcejy5U2Atyhr/kbp34M4ZaiezQZKIrUSu/Q=
=etT4
-----END PGP SIGNATURE-----

--------------enigBA125E7C71D6345A310DFE6B--


From MAILER-DAEMON Sat Apr 14 09:19:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJ2sh-0002Xp-E7
	for mharc-autoconf@gnu.org; Sat, 14 Apr 2012 09:19:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57163)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rajeshwarionline@gmail.com>) id 1SIzSP-0000ys-P5
	for autoconf@gnu.org; Sat, 14 Apr 2012 05:39:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rajeshwarionline@gmail.com>) id 1SIzSN-0008VG-Oa
	for autoconf@gnu.org; Sat, 14 Apr 2012 05:39:49 -0400
Received: from mail-gy0-f169.google.com ([209.85.160.169]:53020)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rajeshwarionline@gmail.com>) id 1SIzSN-0008UJ-Fz
	for autoconf@gnu.org; Sat, 14 Apr 2012 05:39:47 -0400
Received: by ghrr18 with SMTP id r18so2370280ghr.0
	for <autoconf@gnu.org>; Sat, 14 Apr 2012 02:39:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=rp7uFKl8+f6WYVkVRscI+QOx+CDWVdvuOyv6DR25pf4=;
	b=ONWB1HbrsAmEs4I9pUJF+vddBFncYACb2g351t60vCGhATSz2xxr0f1nPYa93+zLIn
	kjkBZzXD3UfmxBJzWLEY0XadHgjN0i3X8HRnXWAeEuMrI154jdC9Q7AX+a0nGzi2o8S/
	6mikXEv4U7bm25HT7WBX21ktcZ/DfaOoeqT1V0JzqFzbLhBO2+tYzvtZR3qdHBkv3CZW
	VW3IwLbl7L8/F7tg2wyl+AAI3zaOkm0tD9sMmrZeLLyHeh6zGT3xEFeo5DqakV2fEIgw
	T+rWHSfTjv3KSpoYUnKAkUW+fXB0R0WhH//x/UxKIQzg5A5pOenk+k1LylPxdavjAGVV
	vtyA==
MIME-Version: 1.0
Received: by 10.236.181.70 with SMTP id k46mr4650859yhm.21.1334396385045; Sat,
	14 Apr 2012 02:39:45 -0700 (PDT)
Received: by 10.236.184.99 with HTTP; Sat, 14 Apr 2012 02:39:44 -0700 (PDT)
Date: Sat, 14 Apr 2012 15:09:44 +0530
Message-ID: <CAJRwAWt-Htr3vKLpn2KmX1tVGk_FPyR_0Duao933tVCrcTcn5g@mail.gmail.com>
Subject: using autotools
From: rajeshwari b <rajeshwarionline@gmail.com>
To: autoconf@gnu.org
Content-Type: multipart/mixed; boundary=20cf305b1264852e9c04bda05ee4
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.169
X-Mailman-Approved-At: Sat, 14 Apr 2012 09:19:09 -0400
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 14 Apr 2012 09:39:51 -0000

--20cf305b1264852e9c04bda05ee4
Content-Type: text/plain; charset=ISO-8859-1

Hi all,
I am a starter interested in autotools of linux in windows xp OS. I have
installed Msys and Msysgit.I have a main directory called hello-initial.
The 'hello-initial' has a src directory containing  hello.c and hello.h. I
created Makefile.am with the following line: SUBDIRS=src.
Within the src directory, created Makefile.am with the following lines,
helloprgdir=../
helloprg_PROGRAMS=hello
hello_SOURCES=hello.c
I cd ed to the hello-initial directory in the msys shell. The log is
attached as config_log.7z. Perhaps some packages need to be installed.
Kindly help.
Rgds,
Rajeshwari

--20cf305b1264852e9c04bda05ee4
Content-Type: application/octet-stream; name="missing.7z"
Content-Disposition: attachment; filename="missing.7z"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_h10gr32p0

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
bgBnAAAAFAoBAFi0W9IYGs0BFQYBACAAAAAAAA==
--20cf305b1264852e9c04bda05ee4
Content-Type: application/octet-stream; name="config_log.7z"
Content-Disposition: attachment; filename="config_log.7z"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_h10gr32s1

N3q8ryccAAMuk6pSWwEAAAAAAABeAAAAAAAAALIgwncABoLKUnPn1L3VZ/SrfXH7EJRWciqlN8Eh
qpwgpdB9biurt0MyPg+WK/Qfq1PBQiDJ7eX+QgGqGeOIivvAHJTvLICn0EVKCFSEq9uc2MKLyJa1
Iq1I1FVQGqoEdLi1Iy0ovtBD1zKZMGiGHsM+7jkyqQ/IvdzLSkYUPodEpSjyNzZ9dxKaON73N525
25e2r+zzCyO3ra23bm8D624Dh2rQ/DHbKJS890DWw8YxmhLmYhgLNu4d/Ikxww8un8y/wu2/48v8
oeJ23P+0Z1NC5OlfLSXaSdBv7pRLHNLR7tvybEwV0Ayn+17QBhfz8uI+luhshSs2uzEEfZqaJY/b
u/AlOmH2xD0pmgA88rL6/7VNusyLnqixuu5vwSClp6puj5S0bq8njRau85IBsHKZRrwK1hWJf9bi
urkw/YfJ5YVCDcAZPTU7bFOlqbTz11/8Vi37kcw0XdPgsZpZAAEEBgABCYFbAAcLAQABIwMBAQVd
AAABAAyC4wAICgHMrOmwAAAFAREfAGMAbwBuAGYAaQBnAF8AbABvAGcALgB0AHgAdAAAABQKAQCw
oJl7GhrNARUGAQAgAAAAAAA=
--20cf305b1264852e9c04bda05ee4--


From MAILER-DAEMON Sat Apr 14 14:41:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJ7uZ-0000zH-Ds
	for mharc-autoconf@gnu.org; Sat, 14 Apr 2012 14:41:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56999)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SJ7uW-0000yj-9v
	for autoconf@gnu.org; Sat, 14 Apr 2012 14:41:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SJ7uU-0000aq-Gz
	for autoconf@gnu.org; Sat, 14 Apr 2012 14:41:23 -0400
Received: from mail21.sea5.speakeasy.net ([69.17.117.23]:33497)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SJ7uU-0000a9-82
	for autoconf@gnu.org; Sat, 14 Apr 2012 14:41:22 -0400
Received: (qmail 17939 invoked from network); 14 Apr 2012 18:14:27 -0000
Received: by simscan 1.4.0 ppid: 25436, pid: 31864, t: 0.0149s
	scanners: clamav: 0.88.2/m:52/d:10739
Received: from mxperim8.sea5.speakeasy.net ([69.17.117.73])
	(envelope-sender <jklowden@schemamania.org>)
	by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP
	for <autoconf@gnu.org>; 14 Apr 2012 18:14:27 -0000
Received: from localhost (localhost [127.0.0.1])
	by mxperim8.sea5.speakeasy.net (Postfix) with ESMTP id B03C38382D
	for <autoconf@gnu.org>; Sat, 14 Apr 2012 11:14:27 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at mxperim8.sea5.speakeasy.net
Received: from mxperim8.sea5.speakeasy.net ([127.0.0.1])
	by localhost (mxperim8.sea5.speakeasy.net [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id PyTGHQw2bLVU for <autoconf@gnu.org>;
	Sat, 14 Apr 2012 11:14:27 -0700 (PDT)
Received: from oak.schemamania.org (dsl254-083-208.nyc1.dsl.speakeasy.net
	[216.254.83.208]) by mxperim8.sea5.speakeasy.net (Postfix) with ESMTP
	for <autoconf@gnu.org>; Sat, 14 Apr 2012 11:14:27 -0700 (PDT)
Received: from oak.schemamania.org (localhost [IPv6:::1])
	by oak.schemamania.org (Postfix) with SMTP id 3CD7230E1842
	for <autoconf@gnu.org>; Sat, 14 Apr 2012 14:14:26 -0400 (EDT)
Date: Sat, 14 Apr 2012 14:14:26 -0400
From: "James K. Lowden" <jklowden@schemamania.org>
To: autoconf@gnu.org
Subject: Re: How to force location of headers
Message-Id: <20120414141426.5dfc2ad7.jklowden@schemamania.org>
In-Reply-To: <87sjg9vsy0.fsf@windlord.stanford.edu>
References: <33655483.post@talk.nabble.com>
	<87sjg9vsy0.fsf@windlord.stanford.edu>
X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64--netbsd)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 69.17.117.23
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 14 Apr 2012 18:41:25 -0000

On Thu, 12 Apr 2012 09:03:03 -0700
Russ Allbery <rra@stanford.edu> wrote:

> "" is primarily a source of bugs and annoyances

Based on what?  The use of "" instead of <> around the include filename
is a signal that the file is expected to found locally and may override
the normal one.  Not only does it save the work of putzing with -I, it
expresses something that in a multi-directory project is tricky to
capture in a Makefile.  

In 25 years I don't remember a single bug or annoyance
deriving from it, nor has the ISO seen fit to remove or recommend
against the feature. Your experience may of course be different, but
that's not cause for general advice.  

--jkl


From MAILER-DAEMON Sat Apr 14 16:39:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJ9kY-0007ak-7H
	for mharc-autoconf@gnu.org; Sat, 14 Apr 2012 16:39:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35652)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SJ9kV-0007aK-Ua
	for autoconf@gnu.org; Sat, 14 Apr 2012 16:39:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SJ9kU-00011C-2U
	for autoconf@gnu.org; Sat, 14 Apr 2012 16:39:11 -0400
Received: from smtp3.stanford.edu ([171.67.219.83]:53822
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SJ9kT-00010H-Sz
	for autoconf@gnu.org; Sat, 14 Apr 2012 16:39:09 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id 13A5444293E
	for <autoconf@gnu.org>; Sat, 14 Apr 2012 13:39:06 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id A2782442901
	for <autoconf@gnu.org>; Sat, 14 Apr 2012 13:39:05 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 6C8E62F4A8; Sat, 14 Apr 2012 13:39:05 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: autoconf@gnu.org
Subject: Re: How to force location of headers
In-Reply-To: <20120414141426.5dfc2ad7.jklowden@schemamania.org> (James
	K. Lowden's message of "Sat, 14 Apr 2012 14:14:26 -0400")
Organization: The Eyrie
References: <33655483.post@talk.nabble.com>
	<87sjg9vsy0.fsf@windlord.stanford.edu>
	<20120414141426.5dfc2ad7.jklowden@schemamania.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Sat, 14 Apr 2012 13:39:04 -0700
Message-ID: <87fwc6giaf.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.83
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 14 Apr 2012 20:39:13 -0000

"James K. Lowden" <jklowden@schemamania.org> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> "" is primarily a source of bugs and annoyances

> Based on what?

Problems just like the one on this thread, or the breakage Debian saw with
multiarch and headers that relied on "", or similar problems that we've
seen over the years with software using -I- to try to work around problems
with "".  I've also seen it cause problems with non-recursive make and
with VPATH builds with different compilers that disagreed over what the
local directory is for "" in different situations.

See also the Autoconf manual advice for the config.h header, which gives
yet another reason:

       To provide for VPATH builds, remember to pass the C compiler a
    `-I.'  option (or `-I..'; whichever directory contains `config.h').
    Even if you use `#include "config.h"', the preprocessor searches only
    the directory of the currently read file, i.e., the source directory,
    not the build directory.

       With the appropriate `-I' option, you can use `#include
    <config.h>'.  Actually, it's a good habit to use it, because in the
    rare case when the source directory contains another `config.h', the
    build directory should be searched first.

and indeed it was that advice that pushed me towards getting rid of "" in
my projects many years ago.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Sun Apr 15 12:19:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJSBC-00021k-BO
	for mharc-autoconf@gnu.org; Sun, 15 Apr 2012 12:19:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52514)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <richardashaudacity@googlemail.com>)
	id 1SJSB8-0001yo-UV
	for autoconf@gnu.org; Sun, 15 Apr 2012 12:19:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <richardashaudacity@googlemail.com>)
	id 1SJSB6-0005IJ-Vu
	for autoconf@gnu.org; Sun, 15 Apr 2012 12:19:54 -0400
Received: from mail-wg0-f49.google.com ([74.125.82.49]:57482)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <richardashaudacity@googlemail.com>)
	id 1SJSB6-0005Ht-Lv
	for autoconf@gnu.org; Sun, 15 Apr 2012 12:19:52 -0400
Received: by wgbdr1 with SMTP id dr1so3323207wgb.30
	for <autoconf@gnu.org>; Sun, 15 Apr 2012 09:19:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=20120113;
	h=sender:subject:from:reply-to:to:cc:in-reply-to:references
	:content-type:organization:date:message-id:mime-version:x-mailer
	:content-transfer-encoding;
	bh=ONas6B1fwSvQhHFSQW+fREr6QiaVhQyPIhAmzChELwk=;
	b=XRM2EWxzoHL39ig24HmEsXoynnom1uqMiI6cMjJla2dHl8W2K/0yZIoywe7OHwhajc
	Ut98/T0o4JUTWnsJr1HMDFkIReaDJJGmSlpNpovOAqFn/fDda91YY+CGm+onicClRCoE
	exOZIx6k2Q2xlT2omxlI2gwWOD1hqH8jTjJqfRAv2iLuaUBSRmZQJknhAirns+jaN7Ds
	xobUZOuCBSzbHTOQuw28VMb1R0Vit6nAJSve6u+BZr36OgBt4NJCM5T9OmZsnoFW5zwu
	t1X4bwJXi4Q1hWYpfJ3AzG4fAFKrn0ilgazUqJ6YkiFVTnj5Rig+EBm94uooTokfsYCi
	OI0Q==
Received: by 10.216.137.27 with SMTP id x27mr5088101wei.70.1334506789050;
	Sun, 15 Apr 2012 09:19:49 -0700 (PDT)
Received: from [192.168.0.33] (cpc2-brmb8-2-0-cust5.1-3.cable.virginmedia.com.
	[80.2.155.6])
	by mx.google.com with ESMTPS id j3sm21354993wiw.1.2012.04.15.09.19.46
	(version=SSLv3 cipher=OTHER); Sun, 15 Apr 2012 09:19:47 -0700 (PDT)
Sender: Richard Ash <richardashaudacity@googlemail.com>
Subject: Re: AC_CONFIG_SUBDIRS right away
From: Richard Ash <richard@audacityteam.org>
To: Paul Dugas <paul@dugasenterprises.com>
In-Reply-To: <CADnMf=0vu4vcoqX=BzdKT5qvY0VqwnKnFO80_VcpWvWDjc9OMQ@mail.gmail.com>
References: <CADnMf=2rgNOpkmPZFFweo3yyVutzPG_mMTp1vQMbXJHpL2hv6g@mail.gmail.com>
	<1333809463.2539.4.camel@localhost>
	<CADnMf=1VmxOdxzQH0beaJp-rNAY5sAkNR1a93Q-Vpq5oO5qJtA@mail.gmail.com>
	<CADnMf=0vu4vcoqX=BzdKT5qvY0VqwnKnFO80_VcpWvWDjc9OMQ@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Organization: Audacity Team
Date: Sun, 15 Apr 2012 17:19:45 +0100
Message-ID: <1334506785.2534.3.camel@localhost>
Mime-Version: 1.0
X-Mailer: Evolution 2.32.3
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.49
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: richard@audacityteam.org
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Apr 2012 16:19:56 -0000

On Tue, 2012-04-10 at 12:02 -0400, Paul Dugas wrote:


>         Yeah, that was your thread.  I'm a little surprised, as you
>         were back
>         then, that this isn't something more people want to do.  I was
>         trying
>         to accomplish the exact approach you were suggesting; using
>         the
>         installed package if it's there then falling back to a
>         sub-package if
>         it's not.  I'll take a look at your macro.  Thanks much.
> 
> 
> Trying to use your macro today simply replacing my AC_CONFIG_SUBDIRS()
> call with AX_CONFIG_DIR().  Seems that my script to bootstrap the
> build system is no longer recursing into the sub-package.  Looked at
> the repository where you have the macro and don't see where it's
> used.  Wonder if you could point me in the right direction.

http://code.google.com/p/audacity/source/browse/audacity-src/trunk/m4/audacity_checklib_widgetextra.m4

It won't help with your auto-bootstrap I suspect, because I expect that
is scanning for certain hard-coded macro names to detect recursion, and
it won't know about my macro (because it re-implements rather than
wrapping, there is nothing to catch the recursion).

This is likely to cause problems with some of the other "auto" features
as well - I expect it to break the --help=recursive option to configure,
but that's broken already for Audacity, so I didn't test.

Richard



From MAILER-DAEMON Sun Apr 15 18:28:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJXvb-0007UJ-TT
	for mharc-autoconf@gnu.org; Sun, 15 Apr 2012 18:28:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47159)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJXva-0007UA-63
	for autoconf@gnu.org; Sun, 15 Apr 2012 18:28:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJXvY-00080W-G0
	for autoconf@gnu.org; Sun, 15 Apr 2012 18:28:13 -0400
Received: from smtp12.dentaku.gol.com ([203.216.5.74]:33190)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>)
	id 1SJXvY-00080H-6Y; Sun, 15 Apr 2012 18:28:12 -0400
Received: from 61.245.22.233.eo.eaccess.ne.jp ([61.245.22.233]
	helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku)
	(envelope-from <miles@gnu.org>)
	id 1SJXvW-0001IZ-9u; Mon, 16 Apr 2012 07:28:10 +0900
Received: by catnip.gol.com (Postfix, from userid 1000)
	id 68001DFC1; Mon, 16 Apr 2012 07:28:09 +0900 (JST)
From: Miles Bader <miles@gnu.org>
To: autoconf@gnu.org
Subject: default searchpaths on *BSD machines?
System-Type: x86_64-unknown-linux-gnu
Date: Mon, 16 Apr 2012 07:28:09 +0900
Message-ID: <871unohbpi.fsf@catnip.gol.com>
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: ClamAV GOL (outbound)
X-Abuse-Complaints: abuse@gol.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 203.216.5.74
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Apr 2012 22:28:15 -0000

I notice that FreeBSD (etc) put a lot of optionally installed
("/usr/ports") software in /usr/local, but the system compiler's
search-paths on these machines by default _don't_ include
/usr/local...

So my autoconf'd project doesn't find various libraries, even if the
user thought he had installed them.

What's the usual way to handle this issue...?

  1) Add /usr/local to paths by default
  (e.g. CPPFLAGS+=-I/usr/local/include, LDFLAGS+=-L/usr/local/lib)

  2) Add $(prefix) to paths by default

  3) Somehow detect such a system, and do one of the above only for
  them...

  4) Have an option to set this (--with-extra-seach-root= ... argh ugly
  name but), but require the user give the option explicitly

  5) Insist the user specify CPPFLAGS, LDFLAGS, etc, on the configure
  command-line

  6) ...?

[Do FreeBSD Makefiles set things up to search /usr/local by default?]

Thanks,

-Miles

-- 
Learning, n. The kind of ignorance distinguishing the studious.


From MAILER-DAEMON Sun Apr 15 18:53:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJYK7-000456-PK
	for mharc-autoconf@gnu.org; Sun, 15 Apr 2012 18:53:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33798)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1SJYK4-00044y-Lh
	for autoconf@gnu.org; Sun, 15 Apr 2012 18:53:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1SJYK2-0006ZS-16
	for autoconf@gnu.org; Sun, 15 Apr 2012 18:53:32 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:57422)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>)
	id 1SJYK1-0006Yp-Oz; Sun, 15 Apr 2012 18:53:29 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q3FMrKV2009109; Sun, 15 Apr 2012 17:53:21 -0500 (CDT)
Date: Sun, 15 Apr 2012 17:53:20 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Miles Bader <miles@gnu.org>
Subject: Re: default searchpaths on *BSD machines?
In-Reply-To: <871unohbpi.fsf@catnip.gol.com>
Message-ID: <alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>
References: <871unohbpi.fsf@catnip.gol.com>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Sun, 15 Apr 2012 17:53:21 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 65.66.246.74
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Apr 2012 22:53:34 -0000

On Mon, 16 Apr 2012, Miles Bader wrote:

> I notice that FreeBSD (etc) put a lot of optionally installed
> ("/usr/ports") software in /usr/local, but the system compiler's
> search-paths on these machines by default _don't_ include
> /usr/local...
>
> So my autoconf'd project doesn't find various libraries, even if the
> user thought he had installed them.
>
> What's the usual way to handle this issue...?
>
>  1) Add /usr/local to paths by default
>  (e.g. CPPFLAGS+=-I/usr/local/include, LDFLAGS+=-L/usr/local/lib)

The approach I use is to create a /usr/local/share/config.site file 
with this content:

#=========================================
# config.site for configure
#

# Change some defaults.

test "$prefix" = NONE && prefix=/usr/local

CFLAGS_DEFAULT='-O2'
CXXFLAGS_DEFAULT='-O'

CPPFLAGS_DEFAULT="-I/usr/local/include"
LDFLAGS_DEFAULT="-L/usr/local/lib"
LIBS_DEFAULT=

set -a          # Auto-export environment variables

if test "${ac_env_CC_set}" != set
then
   CC="$CC_DEFAULT"
fi

if test "${ac_env_CXX_set}" != set
then
   CXX="$CXX_DEFAULT"
fi

if test "${ac_env_CFLAGS_set}" != set
then
   CFLAGS="$CFLAGS_DEFAULT"
fi

if test "${ac_env_CXXFLAGS_set}" != set
then
   CXXFLAGS="$CXXFLAGS_DEFAULT"
fi

if test "${ac_env_CPPFLAGS_set}" != set
then
   CPPFLAGS="$CPPFLAGS_DEFAULT"
fi

if test "${ac_env_LDFLAGS_set}" = set
then
   LDFLAGS="$LDFLAGS $LDFLAGS_DEFAULT"
else
   LDFLAGS="$LDFLAGS_DEFAULT"
fi

set +a          # Stop auto-exporting variables

echo "CC       = \"$CC\""
echo "CXX      = \"$CXX\""
echo "CFLAGS   = \"$CFLAGS\""
echo "CXXFLAGS = \"$CXXFLAGS\""
echo "CPPFLAGS = \"$CPPFLAGS\""
echo "LDFLAGS  = \"$LDFLAGS\""
#=========================================

-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Sun Apr 15 19:52:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJZFS-0000hE-HL
	for mharc-autoconf@gnu.org; Sun, 15 Apr 2012 19:52:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46959)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJZFQ-0000h8-35
	for autoconf@gnu.org; Sun, 15 Apr 2012 19:52:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJZFO-0006Ft-8N
	for autoconf@gnu.org; Sun, 15 Apr 2012 19:52:47 -0400
Received: from smtp12.dentaku.gol.com ([203.216.5.74]:39592)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>)
	id 1SJZFN-0006Fo-Ur; Sun, 15 Apr 2012 19:52:46 -0400
Received: from 61.245.22.233.eo.eaccess.ne.jp ([61.245.22.233]
	helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku)
	(envelope-from <miles@gnu.org>)
	id 1SJZFK-0005gN-5S; Mon, 16 Apr 2012 08:52:42 +0900
Received: by catnip.gol.com (Postfix, from userid 1000)
	id 363D3DFC1; Mon, 16 Apr 2012 08:52:41 +0900 (JST)
From: Miles Bader <miles@gnu.org>
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Subject: Re: default searchpaths on *BSD machines?
References: <871unohbpi.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>
System-Type: x86_64-unknown-linux-gnu
Date: Mon, 16 Apr 2012 08:52:41 +0900
In-Reply-To: <alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>
	(Bob Friesenhahn's message of "Sun, 15 Apr 2012 17:53:20 -0500 (CDT)")
Message-ID: <87vcl0ft86.fsf@catnip.gol.com>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: ClamAV GOL (outbound)
X-Abuse-Complaints: abuse@gol.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 203.216.5.74
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Apr 2012 23:52:49 -0000

Bob Friesenhahn <bfriesen@simple.dallas.tx.us> writes:
>> I notice that FreeBSD (etc) put a lot of optionally installed
>> ("/usr/ports") software in /usr/local, but the system compiler's
>> search-paths on these machines by default _don't_ include
>> /usr/local...
>>
>> So my autoconf'd project doesn't find various libraries, even if the
>> user thought he had installed them.
>>
>> What's the usual way to handle this issue...?
>>
>>  1) Add /usr/local to paths by default
>>  (e.g. CPPFLAGS+=-I/usr/local/include, LDFLAGS+=-L/usr/local/lib)
>
> The approach I use is to create a /usr/local/share/config.site file
> with this content:

That's something a (knowledgeable) installer can do to make installing
packages easier on his system, but I'm mainly thinking about what a
_packager_ can do to make things easier for installers that haven't
done such a thing...

Thanks,

-miles

-- 
Kilt, n. A costume sometimes worn by Scotchmen [sic] in America and Americans
in Scotland.


From MAILER-DAEMON Mon Apr 16 09:58:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJmRk-0006ir-5t
	for mharc-autoconf@gnu.org; Mon, 16 Apr 2012 09:58:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43038)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1SJmRd-0006iO-UL
	for autoconf@gnu.org; Mon, 16 Apr 2012 09:58:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1SJmRX-0004NA-Iu
	for autoconf@gnu.org; Mon, 16 Apr 2012 09:58:17 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:59153)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>)
	id 1SJmRX-0004Ms-Ae; Mon, 16 Apr 2012 09:58:11 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q3GDw7SU013000; Mon, 16 Apr 2012 08:58:08 -0500 (CDT)
Date: Mon, 16 Apr 2012 08:58:07 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Miles Bader <miles@gnu.org>
Subject: Re: default searchpaths on *BSD machines?
In-Reply-To: <87vcl0ft86.fsf@catnip.gol.com>
Message-ID: <alpine.GSO.2.01.1204160852520.1678@freddy.simplesystems.org>
References: <871unohbpi.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>
	<87vcl0ft86.fsf@catnip.gol.com>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Mon, 16 Apr 2012 08:58:08 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 65.66.246.74
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 13:58:22 -0000

On Mon, 16 Apr 2012, Miles Bader wrote:
>>>
>>> What's the usual way to handle this issue...?
>>>
>>>  1) Add /usr/local to paths by default
>>>  (e.g. CPPFLAGS+=-I/usr/local/include, LDFLAGS+=-L/usr/local/lib)
>>
>> The approach I use is to create a /usr/local/share/config.site file
>> with this content:
>
> That's something a (knowledgeable) installer can do to make installing
> packages easier on his system, but I'm mainly thinking about what a
> _packager_ can do to make things easier for installers that haven't
> done such a thing...

It isn't really feasable for a 3rd party to guess where add-on 
packages are installed on your machine.  FreeBSD 'ports' puts packages 
under /usr/local but the packages may very well have been distributed 
with the base OS (not under /usr/local), or the user may have 
installed the packages he wants to use under some other prefix. 
Sometimes the versions under /usr/local are not the latest versions 
because the 'ports' have not been rebuilt yet after a system update.

This is a case where I would make reference to the documentation which 
discusses these issues.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Mon Apr 16 16:01:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJs7D-0005ya-ST
	for mharc-autoconf@gnu.org; Mon, 16 Apr 2012 16:01:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40590)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SJs7B-0005xx-ND
	for autoconf@gnu.org; Mon, 16 Apr 2012 16:01:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SJs79-00018C-Pn
	for autoconf@gnu.org; Mon, 16 Apr 2012 16:01:33 -0400
Received: from mail21.sea5.speakeasy.net ([69.17.117.23]:35061)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SJs79-000177-H0
	for autoconf@gnu.org; Mon, 16 Apr 2012 16:01:31 -0400
Received: (qmail 26846 invoked from network); 16 Apr 2012 20:01:28 -0000
Received: by simscan 1.4.0 ppid: 5739, pid: 29571, t: 0.1591s
	scanners: clamav: 0.88.2/m:52/d:10739
Received: from mxperim4.sea5.speakeasy.net ([69.17.117.69])
	(envelope-sender <jklowden@schemamania.org>)
	by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP
	for <autoconf@gnu.org>; 16 Apr 2012 20:01:28 -0000
Received: from localhost (localhost [127.0.0.1])
	by mxperim4.sea5.speakeasy.net (Postfix) with ESMTP id 189CE166A0D;
	Mon, 16 Apr 2012 12:58:35 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at mxperim4.sea5.speakeasy.net
Received: from mxperim4.sea5.speakeasy.net ([127.0.0.1])
	by localhost (mxperim4.sea5.speakeasy.net [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id kpQtoAnnSCvI; Mon, 16 Apr 2012 12:58:34 -0700 (PDT)
Received: from oak.schemamania.org (dsl254-083-208.nyc1.dsl.speakeasy.net
	[216.254.83.208])
	by mxperim4.sea5.speakeasy.net (Postfix) with ESMTP;
	Mon, 16 Apr 2012 12:58:34 -0700 (PDT)
Received: from oak.schemamania.org (localhost [IPv6:::1])
	by oak.schemamania.org (Postfix) with SMTP id 9CAA930E13F2;
	Mon, 16 Apr 2012 16:01:26 -0400 (EDT)
Date: Mon, 16 Apr 2012 16:01:26 -0400
From: "James K. Lowden" <jklowden@schemamania.org>
To: Russ Allbery <rra@stanford.edu>
Subject: Re: How to force location of headers
Message-Id: <20120416160126.e8f37631.jklowden@schemamania.org>
In-Reply-To: <87fwc6giaf.fsf@windlord.stanford.edu>
References: <33655483.post@talk.nabble.com>
	<87sjg9vsy0.fsf@windlord.stanford.edu>
	<20120414141426.5dfc2ad7.jklowden@schemamania.org>
	<87fwc6giaf.fsf@windlord.stanford.edu>
X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64--netbsd)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 69.17.117.23
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 20:01:35 -0000

On Sat, 14 Apr 2012 13:39:04 -0700
Russ Allbery <rra@stanford.edu> wrote:

> "James K. Lowden" <jklowden@schemamania.org> writes:
> > Russ Allbery <rra@stanford.edu> wrote:
> 
> >> "" is primarily a source of bugs and annoyances
> 
> > Based on what?
> 
> Problems just like the one on this thread, or the breakage Debian saw
> with multiarch and headers that relied on "", or similar problems
> that we've seen over the years with software using -I- to try to work
> around problems with "".  I've also seen it cause problems with
> non-recursive make and with VPATH builds with different compilers
> that disagreed over what the local directory is for "" in different
> situations.

Ah, VPATH.  Don't use it, always found better ways.  

Portability issues, hmm.  I see the standard doesn't define exactly
where "here" is, where #include "" looks before consulting the regular
search path.  Every compiler I've ever used defined "here" as "the
directory in which the source file resides", irrespective of object
location or cwd.  

The project I maintain, FreeTDS, uses "" includes quite a bit:

$ find . -name \*.c | xargs grep '#include.*"' | wc -l
     513

and has done for many years.  It's never caused anyone to complain
about it on the message list.  But we *do* #include <config.h> because
of course it's never in the same directory as the .c file.  And we make
sure the autotools output can be processed by BSD and GNU make.  

Debian has packaged FreeTDS for a long time.  We've made changes at the
packager's behest.  Include file notation never came up.  

I don't doubt what you say about your own experience.  I do doubt that
"" is the real culprit given all the shenanigans and interpolation that
go into crafting and producing a Makefile.  I certainly wouldn't want
to extrapolate from some rare experience -- not carefully isolated,
unless I misunderstand, from all other possibilities -- to the general
case that it's not perfectly safe and useful in most circumstances.  

--jkl


From MAILER-DAEMON Mon Apr 16 20:37:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJwPu-0007Mi-DJ
	for mharc-autoconf@gnu.org; Mon, 16 Apr 2012 20:37:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38340)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJwPr-0007MS-To
	for autoconf@gnu.org; Mon, 16 Apr 2012 20:37:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJwPo-00032n-LA
	for autoconf@gnu.org; Mon, 16 Apr 2012 20:37:07 -0400
Received: from smtp12.dentaku.gol.com ([203.216.5.74]:33286)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>)
	id 1SJwPo-000327-Bw; Mon, 16 Apr 2012 20:37:04 -0400
Received: from 61.245.22.233.eo.eaccess.ne.jp ([61.245.22.233]
	helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku)
	(envelope-from <miles@gnu.org>)
	id 1SJwPl-0001Qo-Ql; Tue, 17 Apr 2012 09:37:01 +0900
Received: by catnip.gol.com (Postfix, from userid 1000)
	id 9FA0FDFC1; Tue, 17 Apr 2012 09:37:01 +0900 (JST)
From: Miles Bader <miles@gnu.org>
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Subject: Re: default searchpaths on *BSD machines?
References: <871unohbpi.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>
	<87vcl0ft86.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204160852520.1678@freddy.simplesystems.org>
System-Type: x86_64-unknown-linux-gnu
Date: Tue, 17 Apr 2012 09:37:01 +0900
In-Reply-To: <alpine.GSO.2.01.1204160852520.1678@freddy.simplesystems.org>
	(Bob Friesenhahn's message of "Mon, 16 Apr 2012 08:58:07 -0500 (CDT)")
Message-ID: <878vhvkxci.fsf@catnip.gol.com>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: ClamAV GOL (outbound)
X-Abuse-Complaints: abuse@gol.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 203.216.5.74
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 00:37:09 -0000

Bob Friesenhahn <bfriesen@simple.dallas.tx.us> writes:
>> That's something a (knowledgeable) installer can do to make
>> installing packages easier on his system, but I'm mainly thinking
>> about what a _packager_ can do to make things easier for installers
>> that haven't done such a thing...
>
> It isn't really feasable for a 3rd party to guess where add-on
> packages are installed on your machine.  FreeBSD 'ports' puts packages
> under /usr/local but the packages may very well have been distributed
> with the base OS (not under /usr/local), or the user may have
> installed the packages he wants to use under some other
> prefix. Sometimes the versions under /usr/local are not the latest
> versions because the 'ports' have not been rebuilt yet after a system
> update.

Hmm, OK, so in that case, does anybody know what typical practice for
FreeBSD users is (so I can be sure to cater to it)?  They must
encounter this issue all the time.

Do they usually just specify CFLAGS/CPPFLAGS/LDFLAGS on the configure
command line [maybe via a local config.site file as mentioned]?

Thanks,

-miles

-- 
Accordion, n. An instrument in harmony with the sentiments of an assassin.


From MAILER-DAEMON Mon Apr 16 20:45:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJwYM-0001Q0-0E
	for mharc-autoconf@gnu.org; Mon, 16 Apr 2012 20:45:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53200)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1SJwYJ-0001Pm-5f
	for autoconf@gnu.org; Mon, 16 Apr 2012 20:45:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>) id 1SJwYH-0007QP-KG
	for autoconf@gnu.org; Mon, 16 Apr 2012 20:45:50 -0400
Received: from stenn.ntp.org ([149.20.68.30]:23153)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stenn@stenn.ntp.org>)
	id 1SJwYE-0007Oi-Na; Mon, 16 Apr 2012 20:45:46 -0400
Received: from localhost ([127.0.0.1] helo=stenn.ntp.org)
	by stenn.ntp.org with esmtp (Exim 4.77 (FreeBSD))
	(envelope-from <stenn@stenn.ntp.org>)
	id 1SJwY5-000AVC-Nx; Mon, 16 Apr 2012 17:45:37 -0700
To: Miles Bader <miles@gnu.org>
Subject: Re: default searchpaths on *BSD machines?
In-reply-to: <878vhvkxci.fsf@catnip.gol.com>
References: <871unohbpi.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>
	<87vcl0ft86.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204160852520.1678@freddy.simplesystems.org>
	<878vhvkxci.fsf@catnip.gol.com>
Comments: In-reply-to Miles Bader <miles@gnu.org>
	message dated "Tue, 17 Apr 2012 09:37:01 +0900."
X-Mailer: MH-E 7.4.2; nmh 1.3; XEmacs 21.4 (patch 22)
Mime-Version: 1.0 (generated by tm-edit 1.8)
Content-Type: text/plain; charset=US-ASCII
Date: Mon, 16 Apr 2012 17:45:37 -0700
From: Harlan Stenn <stenn@ntp.org>
Message-Id: <E1SJwY5-000AVC-Nx@stenn.ntp.org>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 149.20.68.30
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 00:45:52 -0000

Miles wrote:
> 
> Hmm, OK, so in that case, does anybody know what typical practice for
> FreeBSD users is (so I can be sure to cater to it)?  They must
> encounter this issue all the time.
> 
> Do they usually just specify CFLAGS/CPPFLAGS/LDFLAGS on the configure
> command line [maybe via a local config.site file as mentioned]?

It's never been an issue for me, and I've been using FreeBSD for a very
long time.  I have /usr/local/bin and /usr/local/sbin in my PATH, and
when I run "configure" my builds just work.

Just like anything else, it's up to the installer to put things where
they are supposed to go, and it's up to the local admins to tell folks
what the default PATHs should be for things to work as expected.

In my experience whenever I try and be "too smart" or fix problems I
think other folks *might* have, I end up causing problems, not solving
potential ones.

Put another way, I look for my packages to have sufficient "mechanism"
to allow the local installers/users to implement their "policy" choices,
and I do my best to avoid forcing my policy choices on them (ie, I
choose the "normal" policy choices and give folks a way to override
them).

H


From MAILER-DAEMON Mon Apr 16 21:24:26 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJx9e-0005Iq-1n
	for mharc-autoconf@gnu.org; Mon, 16 Apr 2012 21:24:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46531)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJx9Y-0005Ik-SR
	for autoconf@gnu.org; Mon, 16 Apr 2012 21:24:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <miles@gnu.org>) id 1SJx9U-0005Fn-Ki
	for autoconf@gnu.org; Mon, 16 Apr 2012 21:24:20 -0400
Received: from smtp12.dentaku.gol.com ([203.216.5.74]:58334)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <miles@gnu.org>)
	id 1SJx9U-0005F9-C4; Mon, 16 Apr 2012 21:24:16 -0400
Received: from 61.245.22.233.eo.eaccess.ne.jp ([61.245.22.233]
	helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku)
	(envelope-from <miles@gnu.org>)
	id 1SJx9Q-000513-Fk; Tue, 17 Apr 2012 10:24:12 +0900
Received: by catnip.gol.com (Postfix, from userid 1000)
	id 98E7ADFC1; Tue, 17 Apr 2012 10:24:11 +0900 (JST)
From: Miles Bader <miles@gnu.org>
To: Harlan Stenn <stenn@ntp.org>
Subject: Re: default searchpaths on *BSD machines?
References: <871unohbpi.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>
	<87vcl0ft86.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204160852520.1678@freddy.simplesystems.org>
	<878vhvkxci.fsf@catnip.gol.com> <E1SJwY5-000AVC-Nx@stenn.ntp.org>
System-Type: x86_64-unknown-linux-gnu
Date: Tue, 17 Apr 2012 10:24:11 +0900
In-Reply-To: <E1SJwY5-000AVC-Nx@stenn.ntp.org> (Harlan Stenn's message of
	"Mon, 16 Apr 2012 17:45:37 -0700")
Message-ID: <87wr5fjglg.fsf@catnip.gol.com>
Lines: 54
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: ClamAV GOL (outbound)
X-Abuse-Complaints: abuse@gol.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 203.216.5.74
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 01:24:24 -0000

Harlan Stenn <stenn@ntp.org> writes:
>> Hmm, OK, so in that case, does anybody know what typical practice
>> for FreeBSD users is (so I can be sure to cater to it)?  They must
>> encounter this issue all the time.
>> 
>> Do they usually just specify CFLAGS/CPPFLAGS/LDFLAGS on the
>> configure command line [maybe via a local config.site file as
>> mentioned]?
>
> It's never been an issue for me, and I've been using FreeBSD for a
> very long time.  I have /usr/local/bin and /usr/local/sbin in my
> PATH, and when I run "configure" my builds just work.

Can you give some details as to the mechanism by which this works in
most cases?  As far as I can tell, a configure script won't find any
includes or libraries in /usr/local by default -- at least _my_
configure script didn't, when I tested on a new install of FreeBSD.

To be more explicit, my configure script checks for libraries,
e.g. "libjpeg" using standard techniques:

   # Check for jpeg image library
   #
   have_libjpeg=no
   AC_CHECK_LIB([jpeg], [jpeg_start_compress], [have_libjpeg=yes])
   if test $have_libjpeg = yes; then
     AC_SUBST([libjpeg_LIBS], [-ljpeg])
     AC_DEFINE([HAVE_LIBJPEG], [1], [Define if libjpeg is installed])
   fi
   AM_CONDITIONAL([have_libjpeg], [test $have_libjpeg = yes])

I installed "libjpeg" using the FreeBSD ports infrastructure, but my
configure script still couldn't "see" it... once I explicitly added
"-I/usr/local/include" to CPPFLAGS, and "-L/usr/local/lib" to LDFLAGS,
then it did find it.

> Just like anything else, it's up to the installer to put things where
> they are supposed to go, and it's up to the local admins to tell folks
> what the default PATHs should be for things to work as expected.

Ok, but which "PATHs" are these?  The executable search path doesn't
cover include files or libraries...

Things I can think of:  CPPFLAGS (for includes), LDFLAGS (for
libraries), PKG_CONFIG_PATH (for stuff that uses pkg-config), etc...

Thanks,

-miles

-- 
"Nah, there's no bigger atheist than me.  Well, I take that back.
I'm a cancer screening away from going agnostic and a biopsy away
from full-fledged Christian."  [Adam Carolla]


From MAILER-DAEMON Mon Apr 16 21:46:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJxVM-0007u3-Lk
	for mharc-autoconf@gnu.org; Mon, 16 Apr 2012 21:46:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48013)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mpsuzuki@hiroshima-u.ac.jp>) id 1SJxVK-0007tx-5X
	for autoconf@gnu.org; Mon, 16 Apr 2012 21:46:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mpsuzuki@hiroshima-u.ac.jp>) id 1SJxVI-0005cn-Fe
	for autoconf@gnu.org; Mon, 16 Apr 2012 21:46:49 -0400
Received: from smtp02.hiroshima-u.ac.jp ([133.41.15.117]:59359)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mpsuzuki@hiroshima-u.ac.jp>)
	id 1SJxVH-0005cA-Tv; Mon, 16 Apr 2012 21:46:48 -0400
Received: from smtp02.hiroshima-u.ac.jp (smtp02.hiroshima-u.ac.jp [127.0.0.1])
	by dummy.hiroshima-u.ac.jp (Postfix) with ESMTP id 15BCE88DB2E;
	Tue, 17 Apr 2012 10:46:43 +0900 (JST)
Received: from [133.41.163.120] (1814-120.cup.hiroshima-u.ac.jp
	[133.41.163.120]) (using TLSv1 with cipher AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp02.hiroshima-u.ac.jp (Postfix) with ESMTP id F24E588DB29;
	Tue, 17 Apr 2012 10:46:42 +0900 (JST)
Message-ID: <4F8CCB82.1010509@hiroshima-u.ac.jp>
Date: Tue, 17 Apr 2012 10:46:42 +0900
From: suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
User-Agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080406)
MIME-Version: 1.0
To: Miles Bader <miles@gnu.org>
Subject: Re: [autoconf] Re: default searchpaths on *BSD machines?
References: <871unohbpi.fsf@catnip.gol.com>	<alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>	<87vcl0ft86.fsf@catnip.gol.com>	<alpine.GSO.2.01.1204160852520.1678@freddy.simplesystems.org>	<878vhvkxci.fsf@catnip.gol.com>
	<E1SJwY5-000AVC-Nx@stenn.ntp.org> <87wr5fjglg.fsf@catnip.gol.com>
In-Reply-To: <87wr5fjglg.fsf@catnip.gol.com>
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
X-TM-AS-Product-Ver: IMSS-7.1.0.1326-6.8.0.1017-18844.003
X-TM-AS-Result: No--6.308-10.0-31-10
X-imss-scan-details: No--6.308-10.0-31-10
X-TM-AS-User-Approved-Sender: No
X-TM-AS-User-Blocked-Sender: No
X-TMASE-MatchedRID: jOF9SGbtYWxITndh1lLRAe5i6weAmSDKjLOy13Cgb4+qvcIF1TcLYIkR
	ixE3GPtztgHbAEnVS4g88oVR6orOoL/IgBcjbUavA9lly13c/gFT4DtiSkMnWOOxOq7LQlGLOj3
	IramXtso2m68LFteVZAxhJTzmP/CIWGB4rkBKlVezI1v7J4hECivY8ODAxZsi8JGeRYYBDDoxk9
	MRqRFrbKmAfpMgmLcUV4moBiL+YbSq8gvEUudt+LGahAAB2/aU+gtHj7OwNO0UBC9Bhrukg0EzX
	yFKH/RF+XseHzlX1quA7t6cnSaVHvD+Bs6CaHao
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 133.41.15.117
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 01:46:51 -0000

Miles Bader wrote:
> I installed "libjpeg" using the FreeBSD ports infrastructure, but my
> configure script still couldn't "see" it... once I explicitly added
> "-I/usr/local/include" to CPPFLAGS, and "-L/usr/local/lib" to LDFLAGS,
> then it did find it.
> 
>> Just like anything else, it's up to the installer to put things where
>> they are supposed to go, and it's up to the local admins to tell folks
>> what the default PATHs should be for things to work as expected.
> 
> Ok, but which "PATHs" are these?  The executable search path doesn't
> cover include files or libraries...
> 
> Things I can think of:  CPPFLAGS (for includes), LDFLAGS (for
> libraries), PKG_CONFIG_PATH (for stuff that uses pkg-config), etc...

Although I don't use the latest version of FreeBSD, I don't think
package system of FreeBSD is so officious to set the environmental
variants for the compilers, so I sympathize with Miles.

However, pkg-config installed by the binary package scans following
directories automatically.
/usr/local/libdata/pkgconfig:/usr/local/lib/pkgconfig:/usr/X11R6/libdata/pkgconfig:/usr/X11R6/lib/pkgconfig

Yet I've not checked if the binary package of gcc (not the default
/usr/bin/cc, installed to /usr/local/bin) will search /usr/local
trees by default.

Regards,
mpsuzuki


From MAILER-DAEMON Tue Apr 17 12:43:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SKBUl-0001mg-Dr
	for mharc-autoconf@gnu.org; Tue, 17 Apr 2012 12:43:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45393)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SKBUd-0001l7-OF
	for autoconf@gnu.org; Tue, 17 Apr 2012 12:43:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SKBUX-0001AB-Cg
	for autoconf@gnu.org; Tue, 17 Apr 2012 12:43:03 -0400
Received: from mail21.sea5.speakeasy.net ([69.17.117.23]:48335)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SKBUX-00019p-34
	for autoconf@gnu.org; Tue, 17 Apr 2012 12:42:57 -0400
Received: (qmail 11565 invoked from network); 17 Apr 2012 16:42:54 -0000
Received: by simscan 1.4.0 ppid: 22933, pid: 25203, t: 0.2279s
	scanners: clamav: 0.88.2/m:52/d:10739
Received: from mxperim4.sea5.speakeasy.net ([69.17.117.69])
	(envelope-sender <jklowden@schemamania.org>)
	by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP
	for <autoconf@gnu.org>; 17 Apr 2012 16:42:54 -0000
Received: from localhost (localhost [127.0.0.1])
	by mxperim4.sea5.speakeasy.net (Postfix) with ESMTP id 9344E166A1E
	for <autoconf@gnu.org>; Tue, 17 Apr 2012 09:39:59 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at mxperim4.sea5.speakeasy.net
Received: from mxperim4.sea5.speakeasy.net ([127.0.0.1])
	by localhost (mxperim4.sea5.speakeasy.net [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id 7gyky-G76lNE for <autoconf@gnu.org>;
	Tue, 17 Apr 2012 09:39:59 -0700 (PDT)
Received: from oak.schemamania.org (dsl254-083-208.nyc1.dsl.speakeasy.net
	[216.254.83.208]) by mxperim4.sea5.speakeasy.net (Postfix) with ESMTP
	for <autoconf@gnu.org>; Tue, 17 Apr 2012 09:39:59 -0700 (PDT)
Received: from oak.schemamania.org (localhost [IPv6:::1])
	by oak.schemamania.org (Postfix) with SMTP id 1BC7330E14B5
	for <autoconf@gnu.org>; Tue, 17 Apr 2012 12:42:53 -0400 (EDT)
Date: Tue, 17 Apr 2012 12:42:52 -0400
From: "James K. Lowden" <jklowden@schemamania.org>
To: autoconf@gnu.org
Subject: Re: default searchpaths on *BSD machines?
Message-Id: <20120417124252.0619d382.jklowden@schemamania.org>
In-Reply-To: <87wr5fjglg.fsf@catnip.gol.com>
References: <871unohbpi.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204151751320.1678@freddy.simplesystems.org>
	<87vcl0ft86.fsf@catnip.gol.com>
	<alpine.GSO.2.01.1204160852520.1678@freddy.simplesystems.org>
	<878vhvkxci.fsf@catnip.gol.com> <E1SJwY5-000AVC-Nx@stenn.ntp.org>
	<87wr5fjglg.fsf@catnip.gol.com>
X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64--netbsd)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 69.17.117.23
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 16:43:10 -0000

On Tue, 17 Apr 2012 10:24:11 +0900
Miles Bader <miles@gnu.org> wrote:

> I installed "libjpeg" using the FreeBSD ports infrastructure, but my
> configure script still couldn't "see" it... once I explicitly added
> "-I/usr/local/include" to CPPFLAGS, and "-L/usr/local/lib" to LDFLAGS,
> then it did find it.

That in fact is the right solution.  The package should honor
CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS, and LIBS.  As long as it doesn't
overwrite them, the user can describe the location of any needed
libraries through them to the package.  

Keep in mind that the default search paths are configurable,
either someplace like /etc/ld.so.conf, or when the compiler/linker
itself was built.  I don't know how autoconf discovers these settings,
though.  

The pkgsrc system puts things in /usr/pkg.  Sometimes these override
older versions /usr; sometimes packages are themselves overridden
in /usr/local.  It's up to the person building the package to know
what's where, and to communicate that to the package.  All you as
packager can do is make it possible.  

Autoconf could help, though.  It would be nice if configure.ac supported
an option to define a simple search path for library finding, e.g.

	DETECT_ROOTS=${HOME}:/usr/local:/usr/pkg:/usr

and generated all the magical -I, -L, and -Wl arguments.  There's an
awful lot of redundancy and arcania required to get this stuff right,
and quite a bit of variety among packages.  

--jkl


From MAILER-DAEMON Tue Apr 17 13:01:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SKBm1-0006ML-5p
	for mharc-autoconf@gnu.org; Tue, 17 Apr 2012 13:01:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54974)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SKBlu-0006L3-0o
	for autoconf@gnu.org; Tue, 17 Apr 2012 13:00:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SKBln-0007iY-Mh
	for autoconf@gnu.org; Tue, 17 Apr 2012 13:00:53 -0400
Received: from mail12.sea5.speakeasy.net ([69.17.117.14]:59523)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SKBln-0007hN-6O
	for autoconf@gnu.org; Tue, 17 Apr 2012 13:00:47 -0400
Received: (qmail 30363 invoked from network); 17 Apr 2012 17:00:43 -0000
Received: by simscan 1.4.0 ppid: 29968, pid: 25466, t: 0.1268s
	scanners: clamav: 0.88.2/m:52/d:10739
Received: from mxperim8.sea5.speakeasy.net ([69.17.117.73])
	(envelope-sender <jklowden@schemamania.org>)
	by mail12.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP
	for <autoconf@gnu.org>; 17 Apr 2012 17:00:43 -0000
Received: from localhost (localhost [127.0.0.1])
	by mxperim8.sea5.speakeasy.net (Postfix) with ESMTP id 3B67E8384E
	for <autoconf@gnu.org>; Tue, 17 Apr 2012 10:00:43 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at mxperim8.sea5.speakeasy.net
Received: from mxperim8.sea5.speakeasy.net ([127.0.0.1])
	by localhost (mxperim8.sea5.speakeasy.net [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id oemrLUPI51hG for <autoconf@gnu.org>;
	Tue, 17 Apr 2012 10:00:43 -0700 (PDT)
Received: from oak.schemamania.org (dsl254-083-208.nyc1.dsl.speakeasy.net
	[216.254.83.208]) by mxperim8.sea5.speakeasy.net (Postfix) with ESMTP
	for <autoconf@gnu.org>; Tue, 17 Apr 2012 10:00:42 -0700 (PDT)
Received: from oak.schemamania.org (localhost [IPv6:::1])
	by oak.schemamania.org (Postfix) with SMTP id 4FF2330E13F2
	for <autoconf@gnu.org>; Tue, 17 Apr 2012 13:00:42 -0400 (EDT)
Date: Tue, 17 Apr 2012 13:00:42 -0400
From: "James K. Lowden" <jklowden@schemamania.org>
To: autoconf@gnu.org
Subject: RPATH for unit tests
Message-Id: <20120417130042.0a012e83.jklowden@schemamania.org>
X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64--netbsd)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 69.17.117.14
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 17:01:00 -0000

The topic of default search paths reminded me of an old problem I've
never solved to my satisfaction.  Perhaps there's a feature I don't
know about.  

FreeTDS is three things from an autoconf point of view:

1.  libraries, shared and static
2.  utilities linked to the libraries
3.  unit tests

The problems are:

1.  How to make sure the unit tests link to the build directory and not
the install directory?  After all, the point of running the unit tests
is to test the code just built, not the old version currently
installed.  

2.  How to *test* the utilties against the libraries in the build tree,
but run them normally linked to the install tree?  

I solve these myself with LD_LIBRARY_PATH in a script at runtime.  I
estimate that puts me among 0.01% of the user base.  

I guess what I think I want is a way to frob the RPATH for case
#1, and a way to set LD_LIBRARY_PATH in make.am for case #2.  Currently
both get their RPATH set based on defaults determined by the configure
script.  

Certainly I need  a way to set the RPATH of utilities, which will be
installed and need to refer to installed libraries, from unit tests,
which won't and don't.  

If you are curious, the configure.ac can be found here:
http://gitorious.org/freetds/freetds/blobs/master/configure.ac



From MAILER-DAEMON Tue Apr 17 13:08:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SKBsy-0000c6-Bg
	for mharc-autoconf@gnu.org; Tue, 17 Apr 2012 13:08:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52405)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1SKBso-00004v-Bg
	for autoconf@gnu.org; Tue, 17 Apr 2012 13:08:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1SKBsi-0001aL-0v
	for autoconf@gnu.org; Tue, 17 Apr 2012 13:08:01 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:62327)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1SKBsh-0001Xy-QI
	for autoconf@gnu.org; Tue, 17 Apr 2012 13:07:55 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q3HH7lNH018932; Tue, 17 Apr 2012 12:07:47 -0500 (CDT)
Date: Tue, 17 Apr 2012 12:07:47 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: "James K. Lowden" <jklowden@schemamania.org>
Subject: Re: RPATH for unit tests
In-Reply-To: <20120417130042.0a012e83.jklowden@schemamania.org>
Message-ID: <alpine.GSO.2.01.1204171207070.12711@freddy.simplesystems.org>
References: <20120417130042.0a012e83.jklowden@schemamania.org>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Tue, 17 Apr 2012 12:07:47 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 65.66.246.74
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2012 17:08:10 -0000

On Tue, 17 Apr 2012, James K. Lowden wrote:
>
> The problems are:
>
> 1.  How to make sure the unit tests link to the build directory and not
> the install directory?  After all, the point of running the unit tests
> is to test the code just built, not the old version currently
> installed.
>
> 2.  How to *test* the utilties against the libraries in the build tree,
> but run them normally linked to the install tree?

Both of these issues are mostly solved by GNU libtool, which is part 
of Autotools.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Sat Apr 21 11:36:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLcM7-0002cm-UI
	for mharc-autoconf@gnu.org; Sat, 21 Apr 2012 11:36:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56040)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <audio-mobster@gmx.de>) id 1SLWhL-0005hm-0l
	for autoconf@gnu.org; Sat, 21 Apr 2012 05:33:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <audio-mobster@gmx.de>) id 1SLWhF-0004N5-T3
	for autoconf@gnu.org; Sat, 21 Apr 2012 05:33:42 -0400
Received: from mailout-de.gmx.net ([213.165.64.22]:44392)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <audio-mobster@gmx.de>) id 1SLWhF-0004Ml-JK
	for autoconf@gnu.org; Sat, 21 Apr 2012 05:33:37 -0400
Received: (qmail invoked by alias); 21 Apr 2012 09:33:32 -0000
Received: from unknown (EHLO [10.58.95.100]) [82.113.99.100]
	by mail.gmx.net (mp040) with SMTP; 21 Apr 2012 11:33:32 +0200
X-Authenticated: #18794534
X-Provags-ID: V01U2FsdGVkX18JkEIpuzQJeOTf5CM9Qryx71kt/uhrxCyHpefJJ9
	0sS+/MLXCFjSZs
Message-ID: <4F927E38.5050507@gmx.de>
Date: Sat, 21 Apr 2012 11:30:32 +0200
From: =?ISO-8859-15?Q?Ulrich-Lorenz_Schl=FCter?= <audio-mobster@gmx.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120402 Thunderbird/11.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: jackmixdesk autoconf question
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.22
X-Mailman-Approved-At: Sat, 21 Apr 2012 11:36:08 -0400
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Apr 2012 09:33:47 -0000

Hello there.

Can these files be a reason for undefined references when compiling?


configure.ac


> dnl Require autoconf version >= 2.57
> AC_PREREQ(2.57)
>
> dnl ############# Initialization
>
> AC_INIT([jackmixdesk], [0.4], [audio-mobster@gmx.de])
>
> AC_CONFIG_SRCDIR([mixdesk.c])
> AC_CANONICAL_SYSTEM
>
> dnl Version 1.7 of automake is recommended
> AM_INIT_AUTOMAKE([1.7])
> AM_CONFIG_HEADER([config.h])
>
>
> dnl ############# Compiler and tools Checks
>
> AC_PROG_CC
> AC_PROG_INSTALL
> AC_PROG_LN_S
> AC_C_INLINE
>
>
> dnl ############## Library Checks
>
> AC_CHECK_LIB([m], [sqrt], , [AC_MSG_ERROR(Can't find libm)])
> AC_CHECK_LIB([m], [powf])
>
> # Check for libjack (need 0.100.0 for jack_client_open)
> PKG_CHECK_MODULES(JACK, jack >= 0.100.0)
>
> # Check for liblash
> PKG_CHECK_MODULES(LASH, lash-1.0)
>
> # Check for liblo
> PKG_CHECK_MODULES(LO, liblo >= 0.23)
>
> # Check for libxml2
> PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.27)
>
> # Check for GTK 2.0
> PKG_CHECK_MODULES(GTK, gtk+-2.0, HAVE_GTK="Yes", HAVE_GTK="No")
>
> # Check for libX11
> PKG_CHECK_MODULES(X11, x11, HAVE_X11="Yes", HAVE_X11="No")
>
> # Check for libgnomecanvas
> PKG_CHECK_MODULES(LIBGNOMECANVAS, libgnomecanvas-2.0,
> HAVE_LIBGNOMECANVAS="Yes", HAVE_LIBGNOMECANVAS="No")
>
> # Check for libidn
> PKG_CHECK_MODULES(IDN, libidn, HAVE_IDN="Yes", HAVE_IDN="No")
>
>
> dnl ############## Decide what to build
>
> BUILD_PROGRAMS="jackmixdesk"
>
> if test "x$HAVE_GTK" == "xYes"
>    test "x$HAVE_LIBGNOMECANVAS" == "xYes"
>    test "x$HAVE_IDN" == "xYes"
>    test "x$HAVE_X11" == "xYes"
> then
>     BUILD_PROGRAMS="$BUILD_PROGRAMS jackmixdesk_gtk"
> else
>     AC_MSG_WARN([Not building GTK frontend due to missing libraries])
> fi  
>
> AC_SUBST(BUILD_PROGRAMS)
>
>
>
> dnl ############## Header Checks
>
> AC_HEADER_STDC
> AC_CHECK_HEADERS([stdlib.h string.h strings.h sys/time.h unistd.h])
>
> # Checks for typedefs, structures, and compiler characteristics.
> AC_C_CONST
> AC_C_INLINE
> AC_TYPE_SIZE_T
> AC_TYPE_SIGNAL
>
> # Checks for library functions.
> AC_FUNC_MALLOC
>
> AC_CONFIG_FILES([Makefile])
>
> AC_OUTPUT
Makefile.am


> AUTOMAKE_OPTIONS = foreign
>
> bin_PROGRAMS = @BUILD_PROGRAMS@
> EXTRA_PROGRAMS = jackmixdesk jackmixdesk_gtk
>
> jackmixdesk_SOURCES = mixdesk.c db.h
>
> jackmixdesk_CFLAGS = -Wall -O2 @JACK_CFLAGS@ @LASH_CFLAGS@ @LO_CFLAGS@
> @XML2_CFLAGS@
>
> jackmixdesk_LDFLAGS = -lm @JACK_LIBS@ @LASH_LIBS@ @LO_LIBS@ @XML2_LIBS@
>
> jackmixdesk_gtk_SOURCES = config.h phatknob.h phatknob.c \
> phatvfanslider.c phathfanslider.c \
> phatkeyboard.c phatpad.h phatvkeyboard.h phatkeyboard.h  phatprivate.h \
> phathfanslider.h  phathkeyboard.c phatprivate.c  phatfanslider.h\
> phathkeyboard.h phatpad.c phatvfanslider.h mixdesk_gtk.c
>
> jackmixdesk_gtk_CFLAGS = -Wall -O2 @JACK_CFLAGS@ @IDN_CFLAGS@
> @LO_CFLAGS@ \
> @GTK_CFLAGS@ @LIBGNOMECANVAS_CFLAGS@ @LASH_CFLAGS@ @XML2_CFLAGS@
> @X11_CFLAGS@ -DINSTALL_DIR=\"$(datadir)\"
>
> jackmixdesk_gtk_LDFLAGS = -lm @JACK_LIBS@ @IDN_LIBS@ @LO_LIBS@
> @GTK_LIBS@ @X11_LIBS@ @LIBGNOMECANVAS_LIBS@ @LASH_LIBS@ @XML2_LIBS@
>
> pixmapdir =$(datadir)/$(PACKAGE)/pixmaps
> pixmap_DATA = knob.png
>
> licensedir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> license_DATA = COPYING
>
> readmedir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> readme_DATA = README
>
> svgdiagramdir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> svgdiagram_DATA = jackmixdesk.svg
>
> pngdiagramdir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> pngdiagram_DATA = jackmixdesk.png
>
> tododir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> todo_DATA = TODO
>
> EXTRA_DIST = autogen.sh TODO doc/jackmixdesk.svg
mixdesk_gtk.c


> #include "phatfanslider.h"
> #include "phatvfanslider.h"
> #include "phathfanslider.h"
console


> /home/uli/workspace/jackmixdesk/trunk/mixdesk_gtk.c:2859: undefined
> reference to `phat_fan_slider_set_value'
Thanks a lot

Uli









From MAILER-DAEMON Sat Apr 21 11:36:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLcM7-0002ak-EF
	for mharc-autoconf@gnu.org; Sat, 21 Apr 2012 11:36:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45365)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ulrich-lorenz.schlueter@gmx.de>) id 1SLWd8-0005Tt-HH
	for autoconf@gnu.org; Sat, 21 Apr 2012 05:29:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ulrich-lorenz.schlueter@gmx.de>) id 1SLWd3-0002p3-Dh
	for autoconf@gnu.org; Sat, 21 Apr 2012 05:29:22 -0400
Received: from mailout-de.gmx.net ([213.165.64.22]:53850)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ulrich-lorenz.schlueter@gmx.de>) id 1SLWd3-0002ov-4M
	for autoconf@gnu.org; Sat, 21 Apr 2012 05:29:17 -0400
Received: (qmail invoked by alias); 21 Apr 2012 09:29:13 -0000
Received: from unknown (EHLO [10.58.95.100]) [82.113.99.100]
	by mail.gmx.net (mp012) with SMTP; 21 Apr 2012 11:29:13 +0200
X-Authenticated: #116852279
X-Provags-ID: V01U2FsdGVkX1/ThChvnEnTeOjZpeteo/90/+4thwQ8HfSM6YAdms
	VqzX2xYDtwJfSZ
Message-ID: <4F927D34.7020705@gmx.de>
Date: Sat, 21 Apr 2012 11:26:12 +0200
From: =?ISO-8859-15?Q?Ulrich-Lorenz_Schl=FCter?=
	<ulrich-lorenz.schlueter@gmx.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120402 Thunderbird/11.0.1
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: jackmixdesk autotools question
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.22
X-Mailman-Approved-At: Sat, 21 Apr 2012 11:36:08 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Apr 2012 09:29:27 -0000

Hello there.

Can these files be a reason for undefined references when compiling?


configure.ac

> dnl Require autoconf version >= 2.57
> AC_PREREQ(2.57)
>
> dnl ############# Initialization
>
> AC_INIT([jackmixdesk], [0.4], [audio-mobster@gmx.de])
>
> AC_CONFIG_SRCDIR([mixdesk.c])
> AC_CANONICAL_SYSTEM
>
> dnl Version 1.7 of automake is recommended
> AM_INIT_AUTOMAKE([1.7])
> AM_CONFIG_HEADER([config.h])
>
>
> dnl ############# Compiler and tools Checks
>
> AC_PROG_CC
> AC_PROG_INSTALL
> AC_PROG_LN_S
> AC_C_INLINE
>
>
> dnl ############## Library Checks
>
> AC_CHECK_LIB([m], [sqrt], , [AC_MSG_ERROR(Can't find libm)])
> AC_CHECK_LIB([m], [powf])
>
> # Check for libjack (need 0.100.0 for jack_client_open)
> PKG_CHECK_MODULES(JACK, jack >= 0.100.0)
>
> # Check for liblash
> PKG_CHECK_MODULES(LASH, lash-1.0)
>
> # Check for liblo
> PKG_CHECK_MODULES(LO, liblo >= 0.23)
>
> # Check for libxml2
> PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.27)
>
> # Check for GTK 2.0
> PKG_CHECK_MODULES(GTK, gtk+-2.0, HAVE_GTK="Yes", HAVE_GTK="No")
>
> # Check for libX11
> PKG_CHECK_MODULES(X11, x11, HAVE_X11="Yes", HAVE_X11="No")
>
> # Check for libgnomecanvas
> PKG_CHECK_MODULES(LIBGNOMECANVAS, libgnomecanvas-2.0,
> HAVE_LIBGNOMECANVAS="Yes", HAVE_LIBGNOMECANVAS="No")
>
> # Check for libidn
> PKG_CHECK_MODULES(IDN, libidn, HAVE_IDN="Yes", HAVE_IDN="No")
>
>
> dnl ############## Decide what to build
>
> BUILD_PROGRAMS="jackmixdesk"
>
> if test "x$HAVE_GTK" == "xYes"
>    test "x$HAVE_LIBGNOMECANVAS" == "xYes"
>    test "x$HAVE_IDN" == "xYes"
>    test "x$HAVE_X11" == "xYes"
> then
>     BUILD_PROGRAMS="$BUILD_PROGRAMS jackmixdesk_gtk"
> else
>     AC_MSG_WARN([Not building GTK frontend due to missing libraries])
> fi  
>
> AC_SUBST(BUILD_PROGRAMS)
>
>
>
> dnl ############## Header Checks
>
> AC_HEADER_STDC
> AC_CHECK_HEADERS([stdlib.h string.h strings.h sys/time.h unistd.h])
>
> # Checks for typedefs, structures, and compiler characteristics.
> AC_C_CONST
> AC_C_INLINE
> AC_TYPE_SIZE_T
> AC_TYPE_SIGNAL
>
> # Checks for library functions.
> AC_FUNC_MALLOC
>
> AC_CONFIG_FILES([Makefile])
>
> AC_OUTPUT
Makefile.am

> AUTOMAKE_OPTIONS = foreign
>
> bin_PROGRAMS = @BUILD_PROGRAMS@
> EXTRA_PROGRAMS = jackmixdesk jackmixdesk_gtk
>
> jackmixdesk_SOURCES = mixdesk.c db.h
>
> jackmixdesk_CFLAGS = -Wall -O2 @JACK_CFLAGS@ @LASH_CFLAGS@ @LO_CFLAGS@
> @XML2_CFLAGS@
>
> jackmixdesk_LDFLAGS = -lm @JACK_LIBS@ @LASH_LIBS@ @LO_LIBS@ @XML2_LIBS@
>
> jackmixdesk_gtk_SOURCES = config.h phatknob.h phatknob.c \
> phatvfanslider.c phathfanslider.c \
> phatkeyboard.c phatpad.h phatvkeyboard.h phatkeyboard.h  phatprivate.h \
> phathfanslider.h  phathkeyboard.c phatprivate.c  phatfanslider.h\
> phathkeyboard.h phatpad.c phatvfanslider.h mixdesk_gtk.c
>
> jackmixdesk_gtk_CFLAGS = -Wall -O2 @JACK_CFLAGS@ @IDN_CFLAGS@
> @LO_CFLAGS@ \
> @GTK_CFLAGS@ @LIBGNOMECANVAS_CFLAGS@ @LASH_CFLAGS@ @XML2_CFLAGS@
> @X11_CFLAGS@ -DINSTALL_DIR=\"$(datadir)\"
>
> jackmixdesk_gtk_LDFLAGS = -lm @JACK_LIBS@ @IDN_LIBS@ @LO_LIBS@
> @GTK_LIBS@ @X11_LIBS@ @LIBGNOMECANVAS_LIBS@ @LASH_LIBS@ @XML2_LIBS@
>
> pixmapdir =$(datadir)/$(PACKAGE)/pixmaps
> pixmap_DATA = knob.png
>
> licensedir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> license_DATA = COPYING
>
> readmedir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> readme_DATA = README
>
> svgdiagramdir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> svgdiagram_DATA = jackmixdesk.svg
>
> pngdiagramdir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> pngdiagram_DATA = jackmixdesk.png
>
> tododir =$(datadir)/doc/$(PACKAGE)-$(VERSION)
> todo_DATA = TODO
>
> EXTRA_DIST = autogen.sh TODO doc/jackmixdesk.svg
mixdesk_gtk.c

> #include "phatfanslider.h"
> #include "phatvfanslider.h"
> #include "phathfanslider.h"
console

> /home/uli/workspace/jackmixdesk/trunk/mixdesk_gtk.c:2859: undefined
> reference to `phat_fan_slider_set_value'
Thanks a lot

Uli









From MAILER-DAEMON Mon Apr 23 11:24:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SML7v-0005FV-L6
	for mharc-autoconf@gnu.org; Mon, 23 Apr 2012 11:24:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43432)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SML7s-0005EG-DC
	for autoconf@gnu.org; Mon, 23 Apr 2012 11:24:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SML7q-0006QL-0n
	for autoconf@gnu.org; Mon, 23 Apr 2012 11:24:27 -0400
Received: from mx1.redhat.com ([209.132.183.28]:34968)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SML7p-0006Pu-Or
	for autoconf@gnu.org; Mon, 23 Apr 2012 11:24:25 -0400
Received: from int-mx09.intmail.prod.int.phx2.redhat.com
	(int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3NFOKtV032194
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Mon, 23 Apr 2012 11:24:20 -0400
Received: from [10.3.113.98] (ovpn-113-98.phx2.redhat.com [10.3.113.98])
	by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q3NFOJas019352; Mon, 23 Apr 2012 11:24:20 -0400
Message-ID: <4F957423.4030907@redhat.com>
Date: Mon, 23 Apr 2012 09:24:19 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: =?ISO-8859-1?Q?Ulrich-Lorenz_Schl=FCter?= <audio-mobster@gmx.de>
Subject: Re: jackmixdesk autoconf question
References: <4F927E38.5050507@gmx.de>
In-Reply-To: <4F927E38.5050507@gmx.de>
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig2743091BD49155CB1DDD14C4"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Apr 2012 15:24:29 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig2743091BD49155CB1DDD14C4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/21/2012 03:30 AM, Ulrich-Lorenz Schl=FCter wrote:
> Hello there.
>=20
> Can these files be a reason for undefined references when compiling?
>=20

> mixdesk_gtk.c
>=20
>=20
>> #include "phatfanslider.h"
>> #include "phatvfanslider.h"
>> #include "phathfanslider.h"
> console
>=20
>=20
>> /home/uli/workspace/jackmixdesk/trunk/mixdesk_gtk.c:2859: undefined
>> reference to `phat_fan_slider_set_value'
> Thanks a lot

This question is better directed to the jackmixdesk folks, as it is not
an autoconf issue.  It may be a case of you having an older version of a
library installed, which is missing entry points that the jackmixdesk
program is assuming will be present, and where jackmixdesk can add an
autoconf test to probe for that situation, but the point still remains
that such a patch would be to jackmixdesk, not autoconf.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig2743091BD49155CB1DDD14C4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPlXQjAAoJEKeha0olJ0NqInwH/2SU1vS0Kwg69hsBt+ocK2hq
LpLAxE2EI3PNG881Tl/vZ/Nafn8huEpMfW5am6egYrqwzqYtm+tLQsCT0QKO728M
I1K1ZB1zdkBNs+zd6PCrZDO9E6nSbMAOTmDxaPzVPbt1YZGAZ8gXmjez3LpDGBtf
TxnHahlLc8/r02l1Mm0LxoPP60j6wR4o8iHuNRL/SPEVTylCXuwdsd/W4LqFt5EN
eTyN0Qt3ljQX8RiDdvhOT8IkzGIjxFQhMZqUc7Cs5v/79ocRv5xPYQq0imt3ZKoB
vdE7ELRQRh/U3dGb6Il9gwak47U04gPGA7dh0ehvDwyw05JA1Wjb3eGnAeLMf+4=
=A/tv
-----END PGP SIGNATURE-----

--------------enig2743091BD49155CB1DDD14C4--


From MAILER-DAEMON Tue Apr 24 18:19:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SMo54-0002vP-2d
	for mharc-autoconf@gnu.org; Tue, 24 Apr 2012 18:19:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60528)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SMo51-0002vA-4F
	for Autoconf@gnu.org; Tue, 24 Apr 2012 18:19:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SMo4y-0004ZL-CK
	for Autoconf@gnu.org; Tue, 24 Apr 2012 18:19:26 -0400
Received: from mx1.redhat.com ([209.132.183.28]:16335)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1SMo4s-0004Sp-FT; Tue, 24 Apr 2012 18:19:18 -0400
Received: from int-mx09.intmail.prod.int.phx2.redhat.com
	(int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3OMJFmG012254
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 24 Apr 2012 18:19:15 -0400
Received: from [10.3.113.98] (ovpn-113-98.phx2.redhat.com [10.3.113.98])
	by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q3OMJEt7024707; Tue, 24 Apr 2012 18:19:14 -0400
Message-ID: <4F9726E1.7050602@redhat.com>
Date: Tue, 24 Apr 2012 16:19:13 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: stefano.lattarini@gmail.com,
	"automake-patches@gnu.org" <automake-patches@gnu.org>,
	Autoconf <Autoconf@gnu.org>
Subject: [FYI] {master} refactor: use modern semantics of 'open'
References: 5f9329d501bcb4004885df8ff2a73f3cd202749c.1332973972.git.stefano.lattarini@gmail.com
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigDAB50DD11290EEA864834E5E"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Apr 2012 22:19:29 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigDAB50DD11290EEA864834E5E
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

> * lib/Automake/XFile.pm: Update comments and POD documentation to
> suggest a more idiomatic/modern usage.
> (open): Be more robust in detecting whether the created file handle
> is being opened for writing.
> * lib/Automake/FileUtils.pm (update_file, contents): Call the
> 'Automake::XFile' and 'File::IO' constructors with two arguments
> rather than one; this change obsoletes ...
> (open_quote): ... this subroutine, which has thus been removed.
> (@EXPORT): Drop '&open_quote'.
>=20
> Signed-off-by: Stefano Lattarini <address@hidden>
> ---
>  lib/Automake/FileUtils.pm |   33 +++------------------------------
>  lib/Automake/XFile.pm     |   13 +++++++++----
>  2 files changed, 12 insertions(+), 34 deletions(-)
>=20
>  Change tested with perl 5.10.1 and perl 5.6.0.  No regression in the
>  testsuite.  Patch already pushed to master.

Help!  I can't release autoconf 2.69 until I figure out how to work
around this patch.  After updating to the latest shared files, as well
as applying this patch, I'm now stuck with output going to a literal
file named '-' instead of going to stdout.  I suspect that the
conversion to the 2-arg form is mishandling our idiom of '-' as standard
in/out.

=46rom 6ee479858ab4a4c4054d6ee334adae4e38295e52 Mon Sep 17 00:00:00 2001
From: Eric Blake <eblake@redhat.com>
Date: Tue, 24 Apr 2012 16:06:03 -0600
Subject: [PATCH] bin: replace older perl open_quote workaround with moder=
n
 idiom

Now that we require more modern perl, we might as well use it.  See
https://lists.gnu.org/archive/html/automake-patches/2012-03/msg00111.html=

for an example of how using 2-argument open makes life nicer.

* bin/autoheader.in: Use two-arg open, not open_quote.
* bin/autom4te.in: Likewise.
* bin/autoscan.in: Likewise.
* bin/autoupdate.in: Likewise.
* bin/ifnames.in: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
---
 bin/autoheader.in |   12 ++++++------
 bin/autom4te.in   |   17 +++++++++--------
 bin/autoscan.in   |   12 ++++++------
 bin/autoupdate.in |   16 ++++++++--------
 bin/ifnames.in    |    2 +-
 5 files changed, 30 insertions(+), 29 deletions(-)

diff --git a/bin/autoheader.in b/bin/autoheader.in
index d81a313..f51382f 100644
--- a/bin/autoheader.in
+++ b/bin/autoheader.in
@@ -201,7 +201,7 @@ $config_h_in ||=3D "$config_h.in";
 # only the name of the macro.
 %symbol =3D map { s/\(.*//; $_ =3D> 1 } keys %symbol;

-my $out =3D new Autom4te::XFile ("> " . open_quote ("$tmp/config.hin"));=

+my $out =3D new Autom4te::XFile "$tmp/config.hin", ">";

 # Don't write "do not edit" -- it will get copied into the
 # config.h, which it's ok to edit.
@@ -210,7 +210,7 @@ print $out "/* $config_h_in.  Generated from
$ARGV[0] by autoheader.  */\n";
 # Dump the top.
 if ($config_h_top)
   {
-    my $in =3D new Autom4te::XFile ("< " . open_quote ($config_h_top));
+    my $in =3D new Autom4te::XFile $config_h_top, "<";
     while ($_ =3D $in->getline)
       {
 	print $out $_;
@@ -220,7 +220,7 @@ if ($config_h_top)
 # Dump `acconfig.h', except for its bottom portion.
 if ($acconfig_h)
   {
-    my $in =3D new Autom4te::XFile ("< " . open_quote ($acconfig_h));
+    my $in =3D new Autom4te::XFile $acconfig_h, "<";
     while ($_ =3D $in->getline)
       {
 	last if /\@BOTTOM\@/;
@@ -238,7 +238,7 @@ foreach (sort keys %verbatim)
 # Dump bottom portion of `acconfig.h'.
 if ($acconfig_h)
   {
-    my $in =3D new Autom4te::XFile ("< " . open_quote ($acconfig_h));
+    my $in =3D new Autom4te::XFile $acconfig_h, "<";
     my $dump =3D 0;
     while ($_ =3D $in->getline)
       {
@@ -250,7 +250,7 @@ if ($acconfig_h)
 # Dump the bottom.
 if ($config_h_bot)
   {
-    my $in =3D new Autom4te::XFile ("< " . open_quote ($config_h_bot));
+    my $in =3D new Autom4te::XFile $config_h_bot, "<";
     while ($_ =3D $in->getline)
       {
 	print $out $_;
@@ -261,7 +261,7 @@ $out->close;

 # Check that all the symbols have a template.
 {
-  my $in =3D new Autom4te::XFile ("< " . open_quote ("$tmp/config.hin"))=
;
+  my $in =3D new Autom4te::XFile "$tmp/config.hin", "<";
   my $suggest_ac_define =3D 1;
   while ($_ =3D $in->getline)
     {
diff --git a/bin/autom4te.in b/bin/autom4te.in
index 11773c9..c2424c9 100644
--- a/bin/autom4te.in
+++ b/bin/autom4te.in
@@ -258,7 +258,7 @@ sub load_configuration ($)
   my ($file) =3D @_;
   use Text::ParseWords;

-  my $cfg =3D new Autom4te::XFile ("< " . open_quote ($file));
+  my $cfg =3D new Autom4te::XFile $file, "<";
   my $lang;
   while ($_ =3D $cfg->getline)
     {
@@ -527,7 +527,8 @@ sub handle_output ($$)
   handle_traces ($req, "$tmp/patterns",
 		 ('m4_pattern_forbid' =3D> 'forbid:$1:$2',
 		  'm4_pattern_allow'  =3D> 'allow:$1'));
-  my @patterns =3D new Autom4te::XFile ("< " . open_quote
("$tmp/patterns"))->getlines;
+  my $pattern_file =3D new Autom4te::XFile "$tmp/patterns", "<";
+  my @patterns =3D $pattern_file->getlines;
   chomp @patterns;
   my %forbidden =3D
     map { /^forbid:([^:]+):.+$/ =3D> /^forbid:[^:]+:(.+)$/ } @patterns;
@@ -554,7 +555,7 @@ sub handle_output ($$)
     }
   fatal "cannot create $output: $!"
     unless $out;
-  my $in =3D new Autom4te::XFile ("< " . open_quote ($ocache . $req->id)=
);
+  my $in =3D new Autom4te::XFile $ocache . $req->id, "<";

   my %prohibited;
   my $res;
@@ -599,7 +600,7 @@ sub handle_output ($$)
   if ($ARGV[$#ARGV] ne '-')
     {
       my $prohibited =3D '\b(' . join ('|', keys %prohibited) . ')\b';
-      my $file =3D new Autom4te::XFile ("< " . open_quote ($ARGV[$#ARGV]=
));
+      my $file =3D new Autom4te::XFile $ARGV[$#ARGV], "<";

       while ($_ =3D $file->getline)
 	{
@@ -717,7 +718,7 @@ sub handle_traces ($$%)
   verb "formatting traces for `$output': " . join (', ', sort keys %trac=
e);

   # Processing the traces.
-  my $trace_m4 =3D new Autom4te::XFile ("> " . open_quote
("$tmp/traces.m4"));
+  my $trace_m4 =3D new Autom4te::XFile "$tmp/traces.m4", ">";

   $_ =3D <<'EOF';
   divert(-1)
@@ -818,7 +819,7 @@ EOF
   #
   # Pay attention that the file name might include colons, if under DOS
   # for instance, so we don't use `[^:]+'.
-  my $traces =3D new Autom4te::XFile ("< " . open_quote ($tcache .
$req->id));
+  my $traces =3D new Autom4te::XFile $tcache . $req->id, "<";
   while ($_ =3D $traces->getline)
     {
       # Trace with arguments, as the example above.  We don't try
@@ -834,7 +835,7 @@ EOF
   $trace_m4->close;

   my $in =3D new Autom4te::XFile ("$m4 " . shell_quote ("$tmp/traces.m4"=
)
=2E " |");
-  my $out =3D new Autom4te::XFile ("> " . open_quote ($output));
+  my $out =3D new Autom4te::XFile $output, ">";

   # This is dubious: should we really transform the quadrigraphs in
   # traces?  It might break balanced [ ] etc. in the output.  The
@@ -896,7 +897,7 @@ sub up_to_date ($)
   handle_traces ($req, "$tmp/dependencies",
 		 ('include'    =3D> '$1',
 		  'm4_include' =3D> '$1'));
-  my $deps =3D new Autom4te::XFile ("< " . open_quote ("$tmp/dependencie=
s"));
+  my $deps =3D new Autom4te::XFile "$tmp/dependencies", "<";
   while ($_ =3D $deps->getline)
     {
       chomp;
diff --git a/bin/autoscan.in b/bin/autoscan.in
index a67c48d..8aad720 100644
--- a/bin/autoscan.in
+++ b/bin/autoscan.in
@@ -169,7 +169,7 @@ sub init_tables ()
   # instead of duplicating the code in lots of configure.ac files.
   my $file =3D find_file ("autoscan/autoscan.list",
 			reverse (@prepend_include), @include);
-  my $table =3D new Autom4te::XFile "< " . open_quote ($file);
+  my $table =3D new Autom4te::XFile $file, "<";
   my $tables_are_consistent =3D 1;

   while ($_ =3D $table->getline)
@@ -244,7 +244,7 @@ sub scan_c_file ($)
   # Nonzero if in a multiline comment.
   my $in_comment =3D 0;

-  my $file =3D new Autom4te::XFile "< " . open_quote ($file_name);
+  my $file =3D new Autom4te::XFile $file_name, "<";

   while ($_ =3D $file->getline)
     {
@@ -310,7 +310,7 @@ sub scan_makefile ($)
   my ($file_name) =3D @_;
   push @makefiles, $File::Find::name;

-  my $file =3D new Autom4te::XFile "< " . open_quote ($file_name);
+  my $file =3D new Autom4te::XFile $file_name, "<";

   while ($_ =3D $file->getline)
     {
@@ -352,7 +352,7 @@ sub scan_sh_file ($)
   my ($file_name) =3D @_;
   push @shfiles, $File::Find::name;

-  my $file =3D new Autom4te::XFile "< " . open_quote ($file_name);
+  my $file =3D new Autom4te::XFile $file_name, "<";

   while ($_ =3D $file->getline)
     {
@@ -521,7 +521,7 @@ sub output ($)
   my $configure_scan =3D shift;
   my %unique_makefiles;

-  my $file =3D new Autom4te::XFile "> " . open_quote ($configure_scan);
+  my $file =3D new Autom4te::XFile $configure_scan, ">";

   print $file
     ("#                                               -*- Autoconf -*-\n=
" .
@@ -639,7 +639,7 @@ sub check_configure_ac ($)
 ## -------------- ##

 parse_args;
-$log =3D new Autom4te::XFile "> " . open_quote ("$me.log");
+$log =3D new Autom4te::XFile "$me.log", ">";

 $autoconf .=3D " --debug" if $debug;
 $autoconf .=3D " --verbose" if $verbose;
diff --git a/bin/autoupdate.in b/bin/autoupdate.in
index 9737d49..ff56759 100644
--- a/bin/autoupdate.in
+++ b/bin/autoupdate.in
@@ -130,7 +130,7 @@ sub handle_autoconf_macros ()
 {
   # Get the builtins.
   xsystem ("echo dumpdef | $m4 2>" . shell_quote ("$tmp/m4.defs") . "
>/dev/null");
-  my $m4_defs =3D new Autom4te::XFile "< " . open_quote ("$tmp/m4.defs")=
;
+  my $m4_defs =3D new Autom4te::XFile "$tmp/m4.defs", "<";
   while ($_ =3D $m4_defs->getline)
     {
       $m4_builtins{$1} =3D 1
@@ -186,9 +186,9 @@ sub handle_autoconf_macros ()

   # ac.m4 -- autoquoting definitions of the AC macros (M4sugar excluded)=
=2E
   # unac.m4 -- undefine the AC macros.
-  my $ac_m4 =3D new Autom4te::XFile "> " . open_quote ("$tmp/ac.m4");
+  my $ac_m4 =3D new Autom4te::XFile "$tmp/ac.m4", ">";
   print $ac_m4 "# ac.m4 -- autoquoting definitions of the AC macros.\n";=

-  my $unac_m4 =3D new Autom4te::XFile "> " . open_quote ("$tmp/unac.m4")=
;
+  my $unac_m4 =3D new Autom4te::XFile "$tmp/unac.m4", ">";
   print $unac_m4 "# unac.m4 -- undefine the AC macros.\n";
   foreach (sort keys %ac_macros)
     {
@@ -199,11 +199,11 @@ sub handle_autoconf_macros ()
   # m4save.m4 -- save the m4 builtins.
   # unm4.m4 -- disable the m4 builtins.
   # m4.m4 -- enable the m4 builtins.
-  my $m4save_m4 =3D new Autom4te::XFile "> " . open_quote ("$tmp/m4save.=
m4");
+  my $m4save_m4 =3D new Autom4te::XFile "$tmp/m4save.m4", ">";
   print $m4save_m4 "# m4save.m4 -- save the m4 builtins.\n";
-  my $unm4_m4 =3D new Autom4te::XFile "> " . open_quote ("$tmp/unm4.m4")=
;
+  my $unm4_m4 =3D new Autom4te::XFile "$tmp/unm4.m4", ">";
   print $unm4_m4 "# unm4.m4 -- disable the m4 builtins.\n";
-  my $m4_m4 =3D new Autom4te::XFile "> " . open_quote ("$tmp/m4.m4");
+  my $m4_m4 =3D new Autom4te::XFile "$tmp/m4.m4", ">";
   print $m4_m4 "# m4.m4 -- enable the m4 builtins.\n";
   foreach (sort keys %m4_builtins)
     {
@@ -381,9 +381,9 @@ EOF
     $input_m4 =3D~ s/\$file/$file/g;

     # prepared input -- input, but reenables the quote before each AU
macro.
-    open INPUT_M4, "> " . open_quote ("$tmp/input.m4")
+    open INPUT_M4, "$tmp/input.m4", ">"
        or error "cannot open: $!";
-    open FILE, "< " . open_quote ($file)
+    open FILE, $file, "<"
        or error "cannot open: $!";
     print INPUT_M4 "$input_m4";
     while (<FILE>)
diff --git a/bin/ifnames.in b/bin/ifnames.in
index ba2cd05..51cec64 100644
--- a/bin/ifnames.in
+++ b/bin/ifnames.in
@@ -96,7 +96,7 @@ my %occurrence;
 sub scan_file ($)
 {
   my ($file_name) =3D @_;
-  my $file =3D new Autom4te::XFile ("< " . open_quote ($file_name));
+  my $file =3D new Autom4te::XFile $file_name, "<";
   while ($_ =3D $file->getline)
     {
       # Continuation lines.
--=20
1.7.7.6


--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigDAB50DD11290EEA864834E5E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPlybiAAoJEKeha0olJ0NqIKcIAJqk0t+LqeF4KP0YAP/j4VKc
fmD1+58ZI2B4w1vVf/fHicBQRIkRexhFsT2swCqVuMVHR6iDzFlq4aAk6sveTbKj
gWwe5MFKmIa7fb5uof332mzzWKuGtueudFbyyDGQ9P+aBUGJptdoZk42HhuS7YoA
ql8Ckc5j3Enq+LhZrOrsyBDL/g1WUJt5Trhdm+ugBSQ52UA3ePWXO3Dwpkgvb5oe
w7US681eSR0gw2ipdE83wLRbtdp2De8LGcYUJPI6V7lUwRUiIca/rUeebvuFMq8o
HaOFpzJHhWEIkM3JzQnTcbobMaPOyF9WZjDWTP/Dep6YA1ayMMb4cxvbTNdRet8=
=vKB+
-----END PGP SIGNATURE-----

--------------enigDAB50DD11290EEA864834E5E--


From MAILER-DAEMON Tue Apr 24 18:50:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SMoZ5-0007wT-EO
	for mharc-autoconf@gnu.org; Tue, 24 Apr 2012 18:50:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60301)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SMoZ3-0007wN-7D
	for Autoconf@gnu.org; Tue, 24 Apr 2012 18:50:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SMoZ1-0007WU-7m
	for Autoconf@gnu.org; Tue, 24 Apr 2012 18:50:28 -0400
Received: from smtp3.stanford.edu ([171.67.219.83]:53040
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>)
	id 1SMoZ1-0007Uw-1x; Tue, 24 Apr 2012 18:50:27 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id BBB6E4454B1;
	Tue, 24 Apr 2012 15:50:22 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id 544F544545C;
	Tue, 24 Apr 2012 15:50:22 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 1B7C92F4A8; Tue, 24 Apr 2012 15:50:22 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: Eric Blake <eblake@redhat.com>
Subject: Re: [FYI] {master} refactor: use modern semantics of 'open'
In-Reply-To: <4F9726E1.7050602@redhat.com> (Eric Blake's message of "Tue, 24
	Apr 2012 16:19:13 -0600")
Organization: The Eyrie
References: <4F9726E1.7050602@redhat.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Tue, 24 Apr 2012 15:50:21 -0700
Message-ID: <877gx4sq1e.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.83
Cc: Autoconf <Autoconf@gnu.org>, stefano.lattarini@gmail.com,
	"automake-patches@gnu.org" <automake-patches@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Apr 2012 22:50:30 -0000

Eric Blake <eblake@redhat.com> writes:

> Help!  I can't release autoconf 2.69 until I figure out how to work
> around this patch.  After updating to the latest shared files, as well
> as applying this patch, I'm now stuck with output going to a literal
> file named '-' instead of going to stdout.  I suspect that the
> conversion to the 2-arg form is mishandling our idiom of '-' as standard
> in/out.

If you call open with three arguments, "-" has no special meaning and
refers to a file named "-" (since the whole point of three-argument open
is to remove all magic interpretations of the filename string).  The
easiest way to work around this is probably to change the Automake helper
functions that sit between the code and the Perl open command and have
them switch to calling open with two arguments if the file name is "-".

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Tue Apr 24 19:08:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SMoqF-00019R-Ou
	for mharc-autoconf@gnu.org; Tue, 24 Apr 2012 19:08:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59896)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SMoqC-00018o-Qa
	for Autoconf@gnu.org; Tue, 24 Apr 2012 19:08:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SMoqA-0004yX-Qk
	for Autoconf@gnu.org; Tue, 24 Apr 2012 19:08:12 -0400
Received: from mx1.redhat.com ([209.132.183.28]:26644)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1SMoqA-0004yK-I3; Tue, 24 Apr 2012 19:08:10 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
	(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3ON88rw002942
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 24 Apr 2012 19:08:08 -0400
Received: from [10.3.113.98] (ovpn-113-98.phx2.redhat.com [10.3.113.98])
	by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q3ON87W0019918; Tue, 24 Apr 2012 19:08:07 -0400
Message-ID: <4F973256.6020801@redhat.com>
Date: Tue, 24 Apr 2012 17:08:06 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Russ Allbery <rra@stanford.edu>
Subject: Re: [FYI] {master} refactor: use modern semantics of 'open'
References: <4F9726E1.7050602@redhat.com>
	<877gx4sq1e.fsf@windlord.stanford.edu>
In-Reply-To: <877gx4sq1e.fsf@windlord.stanford.edu>
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig159A4413B7308127D0ABB9D3"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: Autoconf <Autoconf@gnu.org>, stefano.lattarini@gmail.com,
	"automake-patches@gnu.org" <automake-patches@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Apr 2012 23:08:14 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig159A4413B7308127D0ABB9D3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/24/2012 04:50 PM, Russ Allbery wrote:
> Eric Blake <eblake@redhat.com> writes:
>=20
>> Help!  I can't release autoconf 2.69 until I figure out how to work
>> around this patch.  After updating to the latest shared files, as well=

>> as applying this patch, I'm now stuck with output going to a literal
>> file named '-' instead of going to stdout.  I suspect that the
>> conversion to the 2-arg form is mishandling our idiom of '-' as standa=
rd
>> in/out.
>=20
> If you call open with three arguments, "-" has no special meaning and
> refers to a file named "-" (since the whole point of three-argument ope=
n
> is to remove all magic interpretations of the filename string).  The
> easiest way to work around this is probably to change the Automake help=
er
> functions that sit between the code and the Perl open command and have
> them switch to calling open with two arguments if the file name is "-".=


Indeed, this hack gets me further, but still not complete success:

diff --git i/lib/Autom4te/XFile.pm w/lib/Autom4te/XFile.pm
index 19b73aa..95a452b 100644
--- i/lib/Autom4te/XFile.pm
+++ w/lib/Autom4te/XFile.pm
@@ -138,7 +138,14 @@ sub open
   # comment in IO::Handle.
   ${*$fh}{'autom4te_xfile_file'} =3D "$file";

-  if (!$fh->SUPER::open (@_))
+  if (defined $mode && "$file" eq '-')
+    {
+      if (!$fh->SUPER::open ("$mode$file"))
+	{
+	  fatal "cannot open $file: $!";
+	}
+    }
+  elsif (!$fh->SUPER::open (@_))
     {
       fatal "cannot open $file: $!";
     }

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig159A4413B7308127D0ABB9D3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPlzJXAAoJEKeha0olJ0NqzvQH/0kEBWiGBVMI0sGg48+XU3y1
uvIxkFzFNIHaFIp0iI7JBTU8kvE6fA+h1CtLlV3F6hEMovsAjzz0IJmrV8QV5w4b
iZLyx2k5Y32rj2T6eIYdhu2rw4p6GERStuwXarT3SBG0QXteyFmJa6HfW2j2e2UU
g7uBv5NA8iNBCSFktqMoWxETo0EVOcrnZxlwvnyUU8piB9oBmYAU0wFV7vF5YQN2
V5IkIB5FDWW+WDA3arRrSdjZdnxlKjKGSvTAx8qgyjdB7tbbjwNZ4+yU60G6TOZm
WVPLgqkIgD5G5ZdutXvhcp1iAf54vBgarjYgwhU5cMYvG7xt+kiOfWxvcR3c3Ic=
=ZXFI
-----END PGP SIGNATURE-----

--------------enig159A4413B7308127D0ABB9D3--


From MAILER-DAEMON Tue Apr 24 19:18:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SMozu-0003KE-Qi
	for mharc-autoconf@gnu.org; Tue, 24 Apr 2012 19:18:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47441)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SMozs-0003JY-5p
	for Autoconf@gnu.org; Tue, 24 Apr 2012 19:18:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SMozq-0000E7-37
	for Autoconf@gnu.org; Tue, 24 Apr 2012 19:18:11 -0400
Received: from mail-wi0-f177.google.com ([209.85.212.177]:58055)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>)
	id 1SMozp-0000Dw-R5; Tue, 24 Apr 2012 19:18:10 -0400
Received: by wibhj13 with SMTP id hj13so982190wib.12
	for <multiple recipients>; Tue, 24 Apr 2012 16:18:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:mime-version:to:cc:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	bh=9hhxZVyrAEIXTTSxMv5fqlL1aATBDQxHkOwRVfODPzU=;
	b=qS0TPFUclPYZSq1tspUKQqNLsCwnJHlQWu6TI60KyBgfKqbp5VdYC/Y2uzQdaymtnP
	Q/AeDgLdHTCqTbvQq1V0qgS/DSC4AqAkOCYtmfARsy8ARfumF1RfXKvcej+mdIQDq/mV
	EZAsbPqgMUwQgEM4+nQu2prmx5hE7OaR2/8R6KGCRufai6FM+ZpsC7KHbWGOxWNFLy7H
	ci2JY8nVidaVFSdFRoQqB8CaZAjOa/Kw/ilq6iuHX4shcu0Vd63TyaQpWiHFUtIaPKgg
	rNUirbBtWw3KW/XtNXcOMq9pkLWHxEmLWFX05u9G708NIu3J9QbjD5Fo+GEN4JlkG5Vh
	oZVg==
Received: by 10.180.105.69 with SMTP id gk5mr12971288wib.3.1335309485968;
	Tue, 24 Apr 2012 16:18:05 -0700 (PDT)
Received: from [82.56.30.206]
	(host206-30-dynamic.56-82-r.retail.telecomitalia.it. [82.56.30.206])
	by mx.google.com with ESMTPS id 17sm34453817wis.0.2012.04.24.16.18.03
	(version=SSLv3 cipher=OTHER); Tue, 24 Apr 2012 16:18:04 -0700 (PDT)
Message-ID: <4F9734A1.5030601@gmail.com>
Date: Wed, 25 Apr 2012 01:17:53 +0200
From: Stefano Lattarini <stefano.lattarini@gmail.com>
MIME-Version: 1.0
To: Eric Blake <eblake@redhat.com>
Subject: Re: [FYI] {master} refactor: use modern semantics of 'open'
References: <4F9726E1.7050602@redhat.com>
	<877gx4sq1e.fsf@windlord.stanford.edu>
	<4F973256.6020801@redhat.com>
In-Reply-To: <4F973256.6020801@redhat.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.212.177
Cc: Russ Allbery <rra@stanford.edu>, Autoconf <Autoconf@gnu.org>,
	"automake-patches@gnu.org" <automake-patches@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Apr 2012 23:18:13 -0000

Hi Eric, Russ.

On 04/25/2012 01:08 AM, Eric Blake wrote:
> On 04/24/2012 04:50 PM, Russ Allbery wrote:
>> Eric Blake <eblake@redhat.com> writes:
>>
>>> Help!  I can't release autoconf 2.69 until I figure out how to work
>>> around this patch.  After updating to the latest shared files, as well
>>> as applying this patch, I'm now stuck with output going to a literal
>>> file named '-' instead of going to stdout.  I suspect that the
>>> conversion to the 2-arg form is mishandling our idiom of '-' as standard
>>> in/out.
>>
>> If you call open with three arguments, "-" has no special meaning and
>> refers to a file named "-" (since the whole point of three-argument open
>> is to remove all magic interpretations of the filename string).  The
>> easiest way to work around this is probably to change the Automake helper
>> functions that sit between the code and the Perl open command and have
>> them switch to calling open with two arguments if the file name is "-".
> 
> Indeed, this hack gets me further, but still not complete success:
> 
> diff --git i/lib/Autom4te/XFile.pm w/lib/Autom4te/XFile.pm
> index 19b73aa..95a452b 100644
> --- i/lib/Autom4te/XFile.pm
> +++ w/lib/Autom4te/XFile.pm
> @@ -138,7 +138,14 @@ sub open
>    # comment in IO::Handle.
>    ${*$fh}{'autom4te_xfile_file'} = "$file";
> 
> -  if (!$fh->SUPER::open (@_))
> +  if (defined $mode && "$file" eq '-')
> +    {
> +      if (!$fh->SUPER::open ("$mode$file"))
> +	{
> +	  fatal "cannot open $file: $!";
> +	}
> +    }
> +  elsif (!$fh->SUPER::open (@_))
>      {
>        fatal "cannot open $file: $!";
>      }
> 
My hope is that you'll manage to quickly find a patch (preferably to
be applied to the Autoconf repository only) that can work around the
issue effectively.  If you don't, I will (after Automake 1.12 is out)
accept a commit reverting my patch, since keeping Autoconf sane and
working is definitely, absolutely more worth than a having a ten-line
simplification in Automake.

If anything, this issue shows that the Automake::XFile module (and
other similar modules as well) should live in their own git
repository, which both Autoconf and Automake should use as a
submodule -- and which (for $DEITY's sake!), should be unit-tested.
Any volunteer?

Thanks, and sorry for the confusion,
  Stefano


From MAILER-DAEMON Tue Apr 24 19:25:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SMp76-000472-BG
	for mharc-autoconf@gnu.org; Tue, 24 Apr 2012 19:25:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50304)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SMp72-00045y-EY
	for Autoconf@gnu.org; Tue, 24 Apr 2012 19:25:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SMp70-0003Ce-Dv
	for Autoconf@gnu.org; Tue, 24 Apr 2012 19:25:36 -0400
Received: from mx1.redhat.com ([209.132.183.28]:64037)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1SMp6z-0003Am-Qw; Tue, 24 Apr 2012 19:25:34 -0400
Received: from int-mx12.intmail.prod.int.phx2.redhat.com
	(int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3ONPTCP029206
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 24 Apr 2012 19:25:29 -0400
Received: from [10.3.113.98] (ovpn-113-98.phx2.redhat.com [10.3.113.98])
	by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q3ONPT9R009802; Tue, 24 Apr 2012 19:25:29 -0400
Message-ID: <4F973668.1050405@redhat.com>
Date: Tue, 24 Apr 2012 17:25:28 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Stefano Lattarini <stefano.lattarini@gmail.com>
Subject: Re: [FYI] {master} refactor: use modern semantics of 'open'
References: <4F9726E1.7050602@redhat.com>
	<877gx4sq1e.fsf@windlord.stanford.edu>
	<4F973256.6020801@redhat.com> <4F9734A1.5030601@gmail.com>
In-Reply-To: <4F9734A1.5030601@gmail.com>
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigC29D75ADB67A769BC0CBF769"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: Russ Allbery <rra@stanford.edu>, Autoconf <Autoconf@gnu.org>,
	"automake-patches@gnu.org" <automake-patches@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Apr 2012 23:25:38 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC29D75ADB67A769BC0CBF769
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/24/2012 05:17 PM, Stefano Lattarini wrote:
> Hi Eric, Russ.
>=20
> On 04/25/2012 01:08 AM, Eric Blake wrote:
>> On 04/24/2012 04:50 PM, Russ Allbery wrote:
>>> Eric Blake <eblake@redhat.com> writes:
>>>
>>>> Help!  I can't release autoconf 2.69 until I figure out how to work
>>>> around this patch.  After updating to the latest shared files, as we=
ll
>>>> as applying this patch, I'm now stuck with output going to a literal=

>>>> file named '-' instead of going to stdout.  I suspect that the
>>>> conversion to the 2-arg form is mishandling our idiom of '-' as stan=
dard
>>>> in/out.
>>>
>>> If you call open with three arguments, "-" has no special meaning and=

>>> refers to a file named "-" (since the whole point of three-argument o=
pen
>>> is to remove all magic interpretations of the filename string).  The
>>> easiest way to work around this is probably to change the Automake he=
lper
>>> functions that sit between the code and the Perl open command and hav=
e
>>> them switch to calling open with two arguments if the file name is "-=
".
>>
>> Indeed, this hack gets me further, but still not complete success:

Actually, this appears to make _all_ the XFile uses work; all that
remains broken is places such as bin/autoupdate.in calling raw open
instead of using XFile.

>>
>> diff --git i/lib/Autom4te/XFile.pm w/lib/Autom4te/XFile.pm
>> index 19b73aa..95a452b 100644
>> --- i/lib/Autom4te/XFile.pm
>> +++ w/lib/Autom4te/XFile.pm
>> @@ -138,7 +138,14 @@ sub open
>>    # comment in IO::Handle.
>>    ${*$fh}{'autom4te_xfile_file'} =3D "$file";
>>
>> -  if (!$fh->SUPER::open (@_))
>> +  if (defined $mode && "$file" eq '-')
>> +    {
>> +      if (!$fh->SUPER::open ("$mode$file"))
>> +	{
>> +	  fatal "cannot open $file: $!";
>> +	}
>> +    }
>> +  elsif (!$fh->SUPER::open (@_))

In other words, since the point of XFile is to ensure binmode, and to
make open nicer to use, making XFile the owner of '-' magic seems like
the right thing to do, and the real remaining autoconf bug is that we
aren't using XFile everywhere.

> My hope is that you'll manage to quickly find a patch (preferably to
> be applied to the Autoconf repository only) that can work around the
> issue effectively.  If you don't, I will (after Automake 1.12 is out)
> accept a commit reverting my patch, since keeping Autoconf sane and
> working is definitely, absolutely more worth than a having a ten-line
> simplification in Automake.

I don't think we need to revert your patch, so much as add the '-'
handling enhancement.  But I figured out a solution: release autoconf
2.69 _without_ fetching the latest from automake, which in turn will let
you release automake 1.12 depending on autoconf 2.69, and _then_ we fix
the fallout.

>=20
> If anything, this issue shows that the Automake::XFile module (and
> other similar modules as well) should live in their own git
> repository, which both Autoconf and Automake should use as a
> submodule -- and which (for $DEITY's sake!), should be unit-tested.
> Any volunteer?

Alas, my perl-fu is weak enough that I'm not sure how good my
unit-testing attempts would be.  But moving the files to a common
repository seems doable (how about gnulib?).

>=20
> Thanks, and sorry for the confusion,

And sorry I didn't review your automake patch queue sooner, since I
wasn't thinking about the impact to autoconf.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigC29D75ADB67A769BC0CBF769
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPlzZoAAoJEKeha0olJ0NqygUH/3iHlY+gERURWxK9dMInDlk4
xPoPqWjbRegtkP3W2CfrBqbTMjdNy4pr5VcV1JGIw/VUopIBRnvoeOfVx9kqkMwD
ZG8ceqCkhtPVjZo6clTsjTNUVBEMLOIX1olr2Lkf5Oi6v/cUJnm8UnOZtVs0BT8e
SZualMCbKKigC0nnaa4kGbwh3h9BKDB8VqdlubEALfigW9tnHBE+aYGs58nk2ccv
S9zP061rc0AJ0sRp9OIgepYTetGtH4oEyXvF3+fCf+9eEtHHBdmplkbvJ/Zkp8jR
KwjG79lgljYJlifLQOnE2+YHg0lIld49GTSzlEb1JxJY8fQBUrGWkzpmvNAviIw=
=mV0R
-----END PGP SIGNATURE-----

--------------enigC29D75ADB67A769BC0CBF769--


From MAILER-DAEMON Tue Apr 24 23:32:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SMsyL-0000nr-4n
	for mharc-autoconf@gnu.org; Tue, 24 Apr 2012 23:32:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33745)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SMsyI-0000nU-GD
	for Autoconf@gnu.org; Tue, 24 Apr 2012 23:32:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SMsyG-0001mn-Fn
	for Autoconf@gnu.org; Tue, 24 Apr 2012 23:32:50 -0400
Received: from mx1.redhat.com ([209.132.183.28]:16763)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1SMsyC-0001m3-9h; Tue, 24 Apr 2012 23:32:44 -0400
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3P3WfjK031427
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Tue, 24 Apr 2012 23:32:41 -0400
Received: from [10.3.113.19] ([10.3.113.19])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id q3P3WeJP032385; Tue, 24 Apr 2012 23:32:41 -0400
Message-ID: <4F977050.8070107@redhat.com>
Date: Tue, 24 Apr 2012 21:32:32 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: info-gnu@gnu.org, Autoconf <Autoconf@gnu.org>
Subject: GNU autoconf 2.69 released [stable]
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig467CA8F497D375901AB8CAF6"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: autotools-announce@gnu.org, "bug-autoconf@gnu.org" <bug-autoconf@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Autoconf <Autoconf@gnu.org>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Apr 2012 03:32:52 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig467CA8F497D375901AB8CAF6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

The GNU Autoconf team is pleased to announce the stable release of
Autoconf 2.69.  Autoconf is an extensible package of M4 macros that
produce shell scripts to automatically configure software source code
packages.  These scripts can adapt the packages to many kinds of
UNIX-like systems without manual user intervention.  Autoconf creates a
configuration script for a package from a template file that lists the
operating system features that the package can use, in the form of M4
macro calls.

Among other improvements, this release fixes a couple of regressions
introduced in previous releases, greatly enhances Fortran support, adds
Go support, and updates the documentation license.  It also requires
that developer have perl 5.6 or newer when running autoconf (although
generated configure scripts remain independent of perl, as always).  See
a more complete list below.

Here are the compressed sources:
  http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz   (1.9MB)
  http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.xz   (1.2MB)

Here are the GPG detached signatures[*]:
  http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz.sig
  http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.xz.sig

Use a mirror for higher download bandwidth:
  http://www.gnu.org/order/ftp.html

[*] Use a .sig file to verify that the corresponding file (without the
=2Esig suffix) is intact.  First, be sure to download both the .sig file
and the corresponding tarball.  Then, run a command like this:

  gpg --verify autoconf-2.69.tar.gz.sig

If that command fails because you don't have the required public key,
then run this command to import it:

  gpg --keyserver keys.gnupg.net --recv-keys A7A16B4A2527436A

and rerun the 'gpg --verify' command.

This release was bootstrapped with the following tools:
  Automake 1.11.1

NEWS

* Noteworthy changes in release 2.69 (2012-04-24) [stable]

** Autoconf now requires perl 5.6 or better (but generated configure
   scripts continue to run without perl).

* Noteworthy changes in release 2.68b (2012-03-01) [beta]
  Released by Eric Blake, based on git versions 2.68.*.

** Autoconf-generated configure scripts now unconditionally re-execute
   themselves with $CONFIG_SHELL, if that's set in the environment.

** The texinfo documentation no longer specifies "front-cover" or
   "back-cover" texts, so that it may now be included in Debian's
   "main" section.

** Support for the Go programming language has been added.  The new
   macro AC_LANG_GO sets variables GOC and GOFLAGS.

** AS_LITERAL_IF again treats '=3D' as a literal.  Regression introduced
   in 2.66.

** The macro AS_EXECUTABLE_P, present since 2.50, is now documented.

** Macros

- AC_PROG_LN_S and AS_LN_S now fall back on 'cp -pR' (not 'cp -p') if
  'ln -s' does not work.  This works better for symlinks to directories.

- New macro AC_HEADER_CHECK_STDBOOL.

- New and updated macros for Fortran support:

    AC_FC_CHECK_BOUNDS to enable array bounds checking
    AC_F77_IMPLICIT_NONE and AC_FC_IMPLICIT_NONE to disable implicit inte=
ger
    AC_FC_MODULE_EXTENSION to compute the Fortran 90 module name extensio=
n
    AC_FC_MODULE_FLAG for the Fortran 90 module search path flag
    AC_FC_MODULE_OUTPUT_FLAG for the Fortran 90 module output directory f=
lag
    AC_FC_PP_SRCEXT for preprocessed Fortran source files extensions
    AC_FC_PP_DEFINE for the Fortran preprocessor define flag

--=20
Eric Blake, on behalf of
The GNU Autoconf team


--------------enig467CA8F497D375901AB8CAF6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPl3BYAAoJEKeha0olJ0NqXoIH/iTJCdoyMxVneTX77RsGSSLK
BYjfQuUS46+1PJJlpfojZ7Qrm7z3ft27kv3oNCMo1wmUgzdagRXpwa1/r7D1GrEP
c8ZMocgn8GW3I0FESVjm75oxybR28w2kBO4cUgk54Wlpsd6x1N74mY3xDEEu+Dvw
0EsE3D6hGu7U5wUsE89DVGg7vlOg2gBtZwplkbaHu9Jj4dG8fXh3Le0gaRNGdKSe
Q3IC7+DRv9RLEaM1ZtKksb7uL3bXcmDJzmnTfM3exTnce1fZJiE0OWco3OHoBbj4
Hk0BU1gqygZSZj1y2egqh5LHBUpjeLlKleOZpw+1DjoP4BTKUP9Xw82Q8hjLcxY=
=xzHZ
-----END PGP SIGNATURE-----

--------------enig467CA8F497D375901AB8CAF6--


From MAILER-DAEMON Wed Apr 25 12:16:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SN4tZ-00065b-6G
	for mharc-autoconf@gnu.org; Wed, 25 Apr 2012 12:16:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53299)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SN4Ky-0003yw-O1
	for autoconf@gnu.org; Wed, 25 Apr 2012 11:41:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SN4Kw-0007ub-Rf
	for autoconf@gnu.org; Wed, 25 Apr 2012 11:41:00 -0400
Received: from ypig.lip.ens-lyon.fr ([140.77.13.48]:38494)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SN4Kw-0007r4-LN
	for autoconf@gnu.org; Wed, 25 Apr 2012 11:40:58 -0400
Received: from vlefevre by ypig.lip.ens-lyon.fr with local (Exim 4.77)
	(envelope-from <vincent@vinc17.net>)
	id 1SN4Kt-0006Cs-JR; Wed, 25 Apr 2012 17:40:55 +0200
Date: Wed, 25 Apr 2012 17:40:55 +0200
From: Vincent Lefevre <vincent@vinc17.net>
To: autoconf@gnu.org
Subject: AC_C_NORETURN macro?
Message-ID: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
Mail-Followup-To: Vincent Lefevre <vincent@vinc17.net>, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Mailer-Info: http://www.vinc17.net/mutt/
User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 140.77.13.48
X-Mailman-Approved-At: Wed, 25 Apr 2012 12:16:44 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Apr 2012 15:41:05 -0000

It seems that it is not possible to check whether _Noreturn (C11)
or noreturn (via C11 #include <stdnoreturn.h>) or something similar
(e.g. GCC's "__attribute__ ((noreturn))") is supported with a native
autoconf macro (I think that AC_C_NORETURN would be the best name).
I haven't found anything about noreturn in the list archive.
Is there any plan to add such a macro?

Note: I'm not subscribed to the autoconf list, please Cc me.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


From MAILER-DAEMON Wed Apr 25 12:24:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SN514-0001Lj-5n
	for mharc-autoconf@gnu.org; Wed, 25 Apr 2012 12:24:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43327)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SN50z-0001L5-8N
	for autoconf@gnu.org; Wed, 25 Apr 2012 12:24:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SN50x-0007Uq-7w
	for autoconf@gnu.org; Wed, 25 Apr 2012 12:24:24 -0400
Received: from mx1.redhat.com ([209.132.183.28]:46061)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1SN50w-0007Tz-VM; Wed, 25 Apr 2012 12:24:23 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
	(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3PGOKHI024930
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 25 Apr 2012 12:24:20 -0400
Received: from [10.3.113.99] (ovpn-113-99.phx2.redhat.com [10.3.113.99])
	by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q3PGOJx4002852; Wed, 25 Apr 2012 12:24:20 -0400
Message-ID: <4F982533.2060003@redhat.com>
Date: Wed, 25 Apr 2012 10:24:19 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Vincent Lefevre <vincent@vinc17.net>, autoconf@gnu.org,
	bug-gnulib <bug-gnulib@gnu.org>
Subject: Re: AC_C_NORETURN macro?
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
In-Reply-To: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigE0A1F599DBB0DFDEAB6B5C85"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Apr 2012 16:24:29 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigE0A1F599DBB0DFDEAB6B5C85
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

[adding bug-gnulib]

On 04/25/2012 09:40 AM, Vincent Lefevre wrote:
> It seems that it is not possible to check whether _Noreturn (C11)
> or noreturn (via C11 #include <stdnoreturn.h>) or something similar
> (e.g. GCC's "__attribute__ ((noreturn))") is supported with a native
> autoconf macro (I think that AC_C_NORETURN would be the best name).
> I haven't found anything about noreturn in the list archive.
> Is there any plan to add such a macro?

Right now, gnulib already has not only such a macro, but also a
<stdnoreturn.h> replacement header that supports this functionality for
generic C11 compilers and older GCC, as well as working around a bug in
MSVC vs. native Windows headers and their use of 'noreturn' in contexts
that are incompatible with C11 usage.  I'm not sure if it is worth
trying to backport the gnulib work into upstream autoconf, or to just
recommend that you use the gnulib solution up front (adding a macro,
without also adding the code that exploits the macro, as gnulib does
with its replacement <stdnoreturn.h> header, makes the macro harder to us=
e).

http://git.savannah.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dblob_plain;f=3Dmod=
ules/stdnoreturn

>=20
> Note: I'm not subscribed to the autoconf list, please Cc me.

It's list policy to 'reply-all' in the first place.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigE0A1F599DBB0DFDEAB6B5C85
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPmCUzAAoJEKeha0olJ0Nq1EMIAKTXeckvnD8dLQZmcYSKjiMc
J670OFQnASYC0U8PQvN5eYxPfK1FBgtaqkc/pFDf/XoLFtGIzRqgYaTGaRSEpyZ6
oHldNJbt3wNRd3jVMl6PXZjzaysfYqjl7HKz5ToLQhyoVDuijJeLF+PyXhepjU8f
0igGoV9uoHPA/rMUGchgGwB/UDoZOrOSXDbdViow9syWA5vU0kdlONd6RqQGic8Q
SM3fntB+ExDxpZUM6/3yqIs6x9r+SeBHsDqyzfxmj5Lsy2Aoq9YTROFun6QspcA7
s4Y/FX5nBbpQiGhLTuRffMluYpsOqbGynZM88LsTYUjwDk172yp5nZNbDALOC7I=
=zEnE
-----END PGP SIGNATURE-----

--------------enigE0A1F599DBB0DFDEAB6B5C85--


From MAILER-DAEMON Wed Apr 25 16:05:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SN8T6-0006HF-KD
	for mharc-autoconf@gnu.org; Wed, 25 Apr 2012 16:05:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53628)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SN8T3-0006Gf-Ri
	for autoconf@gnu.org; Wed, 25 Apr 2012 16:05:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SN8T2-0005VM-3R
	for autoconf@gnu.org; Wed, 25 Apr 2012 16:05:37 -0400
Received: from mail27.sea5.speakeasy.net ([69.17.117.31]:43474)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1SN8T1-0005S9-Qr
	for autoconf@gnu.org; Wed, 25 Apr 2012 16:05:36 -0400
Received: (qmail 1650 invoked from network); 25 Apr 2012 20:05:27 -0000
Received: by simscan 1.4.0 ppid: 1534, pid: 14368, t: 0.5544s
	scanners: clamav: 0.88.2/m:52/d:10739
Received: from mxperim6.sea5.speakeasy.net ([69.17.117.71])
	(envelope-sender <jklowden@schemamania.org>)
	by mail27.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP
	for <autoconf@gnu.org>; 25 Apr 2012 20:05:26 -0000
Received: from localhost (localhost [127.0.0.1])
	by mxperim6.sea5.speakeasy.net (Postfix) with ESMTP id 85D0710AFDA
	for <autoconf@gnu.org>; Wed, 25 Apr 2012 13:05:26 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at mxperim6.sea5.speakeasy.net
Received: from mxperim6.sea5.speakeasy.net ([127.0.0.1])
	by localhost (mxperim6.sea5.speakeasy.net [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id esEhrnqRyPTF for <autoconf@gnu.org>;
	Wed, 25 Apr 2012 13:05:26 -0700 (PDT)
Received: from oak.schemamania.org (dsl254-083-208.nyc1.dsl.speakeasy.net
	[216.254.83.208]) by mxperim6.sea5.speakeasy.net (Postfix) with ESMTP
	for <autoconf@gnu.org>; Wed, 25 Apr 2012 13:05:25 -0700 (PDT)
Received: from oak.schemamania.org (localhost [IPv6:::1])
	by oak.schemamania.org (Postfix) with SMTP id 6312E30E2068
	for <autoconf@gnu.org>; Wed, 25 Apr 2012 16:05:25 -0400 (EDT)
Date: Wed, 25 Apr 2012 16:05:24 -0400
From: "James K. Lowden" <jklowden@schemamania.org>
To: autoconf@gnu.org
Subject: test for visibility
Message-Id: <20120425160524.b67f6622.jklowden@schemamania.org>
X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64--netbsd)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 69.17.117.31
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Apr 2012 20:05:39 -0000

I would like to be able to test whether or not the preprocessor
supports the visibility pragma.   My program today says:

#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
#pragma GCC visibility push(hidden)
#endif

which cries out for a feature test

#if HAVE_PRAGMA_VISIBILITY
#pragma GCC visibility push(hidden)
#endif

because e.g. clang defines GCC. 

My search of the docs and the m4 macro archive didn't turn up anything,
so I thought maybe I'd contribute one.  The macro below almost works,
but for the fact that clang only warns about the construct.  (It is
the warnings I would like to squelch.)  

How do I tell the compiler to use -Werror within an m4 macro?  I see
AC_LANG_WERROR and AC_PROG_CPP_WERROR, but afaict they aren't available
within m4.  Alternatively, how can I construct a macro that returns
"no" if the compiler issues a diagnostic?  

Text of the macro follows.  Many thanks for your advice.  

--jkl

dnl Test whether or not the compiler supports visibility
AC_DEFUN([AC_HAVE_PRAGMA_VISIBILITY],
 [AC_CACHE_CHECK([whether the compiler supports visibility],
   ac_cv_have_pragma_visibility,
   [AC_LINK_IFELSE([AC_LANG_PROGRAM([
#pragma GCC visibility push(hidden)
      ],[
int i;
      ])],
     ac_cv_have_pragma_visibility=yes,
     ac_cv_have_pragma_visibility=no)])
  if test $ac_cv_have_pragma_visibility = yes; then
   AC_DEFINE(HAVE_PRAGMA_VISIBILITY, 1, 
   	[Define to 1 if your system supports pragma GCC visibility.])
  fi])



From MAILER-DAEMON Wed Apr 25 20:21:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNCSW-0000XT-OF
	for mharc-autoconf@gnu.org; Wed, 25 Apr 2012 20:21:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56743)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andrew.w.nosenko@gmail.com>) id 1SNCST-0000WA-HG
	for autoconf@gnu.org; Wed, 25 Apr 2012 20:21:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <andrew.w.nosenko@gmail.com>) id 1SNCSR-000861-PD
	for autoconf@gnu.org; Wed, 25 Apr 2012 20:21:17 -0400
Received: from mail-qa0-f48.google.com ([209.85.216.48]:37285)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <andrew.w.nosenko@gmail.com>) id 1SNCSR-00085e-IH
	for autoconf@gnu.org; Wed, 25 Apr 2012 20:21:15 -0400
Received: by qady23 with SMTP id y23so98443qad.0
	for <autoconf@gnu.org>; Wed, 25 Apr 2012 17:21:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=dQseIhuHgvy2flilJ8UUnJu5obMv2ZUZhGH3ARwSITc=;
	b=YQ9p7WGq1b3GdiWzVydmXNlMRrSVz4ATT9uAYcO091mAJ94EI1hbzjLg0iV0KkvIie
	j/g7ByZ4rWf7ZQyAqtkVwSYNocy4cn7l69UczI4RKLhnW190qmsOq9UQMDJtA3Or7TDn
	JgAEEpadkz4b5xdK+8fwLX3uRCcvcHkbD5FoeLrvHZA1nTRYvAihbUl70sjBHPRkiN95
	01Gz/qald1ALNVuAVhyFi4DsMWVTPNYurpXPJqv6IlfTZ7qw+8MUVkp7zCH5WatxbpLw
	VjReaG4z9gLdMjog/N5uYmuKaw4pKdbeMKMpFBgjAGwZQnv0oed3H97T+NfPlyyC8gER
	XG0A==
MIME-Version: 1.0
Received: by 10.224.198.70 with SMTP id en6mr3676044qab.62.1335399673049; Wed,
	25 Apr 2012 17:21:13 -0700 (PDT)
Received: by 10.229.98.210 with HTTP; Wed, 25 Apr 2012 17:21:13 -0700 (PDT)
In-Reply-To: <20120425160524.b67f6622.jklowden@schemamania.org>
References: <20120425160524.b67f6622.jklowden@schemamania.org>
Date: Thu, 26 Apr 2012 03:21:13 +0300
Message-ID: <CALa-7vxHPq2Go+mWaSdO3fAREOQXRtXm4qRFbvETUhVchZQ26Q@mail.gmail.com>
Subject: Re: test for visibility
From: "Andrew W. Nosenko" <andrew.w.nosenko@gmail.com>
To: "James K. Lowden" <jklowden@schemamania.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.216.48
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 00:21:18 -0000

On Wed, Apr 25, 2012 at 23:05, James K. Lowden <jklowden@schemamania.org> w=
rote:
> I would like to be able to test whether or not the preprocessor
> supports the visibility pragma. =A0 My program today says:
>
> #if defined(__GNUC__) && __GNUC__ >=3D 4 && !defined(__MINGW32__)
> #pragma GCC visibility push(hidden)
> #endif
>
> which cries out for a feature test
>
> #if HAVE_PRAGMA_VISIBILITY
> #pragma GCC visibility push(hidden)
> #endif
>
> because e.g. clang defines GCC.

Ok, but what if compiler does not support "#pragma GCC visibility",
what you plan to do?

The reason of question: if samples above are full, i.e. you indeed
don't have #else part, then you just don't need the #if at all.

If compiler supports "#pragma GCC visibility" then it will execute it
with #if (because HAVE_PRAGMA_VISIBILITY will be defined) or without.
If compiler doesn't support it, then pragma GCC visibility will be
skipped with #if (because undefined HAVE_PRAGMA_VISIBILITY) or without
(just because unknown pragmas are ignored per standard).

--=20
Andrew W. Nosenko <andrew.w.nosenko@gmail.com>


From MAILER-DAEMON Wed Apr 25 20:33:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNCdz-0001kZ-Ax
	for mharc-autoconf@gnu.org; Wed, 25 Apr 2012 20:33:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55754)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SNCdw-0001hQ-CS
	for autoconf@gnu.org; Wed, 25 Apr 2012 20:33:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SNCdj-0003oW-CM
	for autoconf@gnu.org; Wed, 25 Apr 2012 20:33:07 -0400
Received: from smtp2.stanford.edu ([171.67.219.82]:39415
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SNCdj-0003nr-6b
	for autoconf@gnu.org; Wed, 25 Apr 2012 20:32:55 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id 4C6A16044F0;
	Wed, 25 Apr 2012 17:32:52 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id BF6E7603F19;
	Wed, 25 Apr 2012 17:32:51 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id 851D32F45D; Wed, 25 Apr 2012 17:32:51 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: "Andrew W. Nosenko" <andrew.w.nosenko@gmail.com>
Subject: Re: test for visibility
In-Reply-To: <CALa-7vxHPq2Go+mWaSdO3fAREOQXRtXm4qRFbvETUhVchZQ26Q@mail.gmail.com>
	(Andrew W. Nosenko's message of "Thu, 26 Apr 2012 03:21:13 +0300")
Organization: The Eyrie
References: <20120425160524.b67f6622.jklowden@schemamania.org>
	<CALa-7vxHPq2Go+mWaSdO3fAREOQXRtXm4qRFbvETUhVchZQ26Q@mail.gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Wed, 25 Apr 2012 17:32:51 -0700
Message-ID: <87d36ve3ik.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.82
Cc: "James K. Lowden" <jklowden@schemamania.org>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 00:33:10 -0000

"Andrew W. Nosenko" <andrew.w.nosenko@gmail.com> writes:

> Ok, but what if compiler does not support "#pragma GCC visibility",
> what you plan to do?

> The reason of question: if samples above are full, i.e. you indeed
> don't have #else part, then you just don't need the #if at all.

> If compiler supports "#pragma GCC visibility" then it will execute it
> with #if (because HAVE_PRAGMA_VISIBILITY will be defined) or without.
> If compiler doesn't support it, then pragma GCC visibility will be
> skipped with #if (because undefined HAVE_PRAGMA_VISIBILITY) or without
> (just because unknown pragmas are ignored per standard).

Indeed, all of my code just uses pairs of:

#pragma GCC visibility push(hidden)
#pragma GCC visibility pop

unconditionally.  Non-GCC compilers just ignore the pragmata (and then
hopefully some of the same effect, although not the performance gains, are
imposed by either symbol versioning or by libtool export lists, depending
on what's available).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Thu Apr 26 04:54:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNKTJ-0001hm-CH
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 04:54:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54271)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNKTB-0001hN-RP
	for autoconf@gnu.org; Thu, 26 Apr 2012 04:54:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNKT5-0007lU-9B
	for autoconf@gnu.org; Thu, 26 Apr 2012 04:54:33 -0400
Received: from vinc17.pck.nerim.net ([213.41.242.187]:49662
	helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>)
	id 1SNKT4-0007hY-OA; Thu, 26 Apr 2012 04:54:27 -0400
Received: by xvii.vinc17.org (Postfix, from userid 1000)
	id 27F5E310006; Thu, 26 Apr 2012 10:54:23 +0200 (CEST)
Date: Thu, 26 Apr 2012 10:54:23 +0200
From: Vincent Lefevre <vincent@vinc17.net>
To: Eric Blake <eblake@redhat.com>
Subject: Re: AC_C_NORETURN macro?
Message-ID: <20120426085422.GE3626@xvii.vinc17.org>
Mail-Followup-To: Vincent Lefevre <vincent@vinc17.net>,
	Eric Blake <eblake@redhat.com>, autoconf@gnu.org,
	bug-gnulib <bug-gnulib@gnu.org>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F982533.2060003@redhat.com>
X-Mailer-Info: http://www.vinc17.net/mutt/
User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.41.242.187
Cc: autoconf@gnu.org, bug-gnulib <bug-gnulib@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 08:54:40 -0000

On 2012-04-25 10:24:19 -0600, Eric Blake wrote:
> Right now, gnulib already has not only such a macro, but also a
> <stdnoreturn.h> replacement header that supports this functionality for
> generic C11 compilers and older GCC, as well as working around a bug in
> MSVC vs. native Windows headers and their use of 'noreturn' in contexts
> that are incompatible with C11 usage.  I'm not sure if it is worth
> trying to backport the gnulib work into upstream autoconf, or to just
> recommend that you use the gnulib solution up front (adding a macro,
> without also adding the code that exploits the macro, as gnulib does
> with its replacement <stdnoreturn.h> header, makes the macro harder to =
use).

The gnulib code, as I can see it under Debian, looks strange.
In lib/stdnoreturn.in.h:

#if 1200 <=3D _MSC_VER
/* Standard include files on this platform contain declarations like
   "__declspec (noreturn) void abort (void);".  "#define noreturn
   _Noreturn" would cause this declaration to be rewritten to the
   invalid "__declspec (__declspec (noreturn)) void abort (void);".
   Instead, define noreturn to empty, so that such declarations are
   rewritten to "__declspec () void abort (void);", which is
   equivalent to "void abort (void);"; this gives up on noreturn's
   advice to the compiler but at least it is valid code.  */
# define noreturn /*empty*/
#else
# define noreturn _Noreturn
#endif

IMHO, the problem with _MSC_VER (which is not a bug, because
"noreturn" wasn't reserved) means that using the <stdnoreturn.h>
header is not the right solution for code that needs to be pre-C11
compatible; indeed some implementations may have another use of
"noreturn". I think there's also a clash with GCC's

  __attribute__ ((noreturn))

if it is used by some depencency (e.g. GMP).

modules/snippet/_Noreturn references build-aux/snippet/_Noreturn.h,
which is:

#ifndef _Noreturn
# if (3 <=3D __GNUC__ || (__GNUC__ =3D=3D 2 && 8 <=3D __GNUC_MINOR__) \
      || 0x5110 <=3D __SUNPRO_C)
#  define _Noreturn __attribute__ ((__noreturn__))
# elif 1200 <=3D _MSC_VER
#  define _Noreturn __declspec (noreturn)
# else
#  define _Noreturn
# endif
#endif

but I don't see how it can be correct on a non-GCC non-SunPro C11
implementation: _Noreturn would get defined to nothing; the code
would be valid, but the C11 _Noreturn function specifier would not
be used.

I had changed the MPFR code to:

* Autoconf part:

dnl Check for _Noreturn function specifier (ISO C11)
AC_CACHE_CHECK([for _Noreturn], mpfr_cv_have_noreturn, [
  AC_COMPILE_IFELSE([AC_LANG_SOURCE([[_Noreturn void foo(int);]])],
    mpfr_cv_have_noreturn=3Dyes, mpfr_cv_have_noreturn=3Dno)
])
if test "$mpfr_cv_have_noreturn" =3D "yes"; then
  AC_DEFINE(MPFR_HAVE_NORETURN,1,[Define if the _Noreturn function specif=
ier is supported.])
fi

* The internal header part (mpfr-impl.h):

#if defined(MPFR_HAVE_NORETURN)
/* _Noreturn is specified by ISO C11 (Section 6.7.4);
   in GCC, it is supported as of version 4.7. */
# define MPFR_NORETURN _Noreturn
#elif __MPFR_GNUC(3,0) || __MPFR_ICC(8,1,0)
# define MPFR_NORETURN __attribute__ ((noreturn))
#else
# define MPFR_NORETURN
#endif

I think that something like

#elif 1200 <=3D _MSC_VER
# define MPFR_NORETURN __declspec (noreturn)

could be added. And perhaps it would be better to add

  && !defined(noreturn)

for the GCC and MSVC cases.

--=20
Vincent Lef=E8vre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


From MAILER-DAEMON Thu Apr 26 07:13:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNMdL-0000pM-Iz
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 07:13:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59383)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SNMdE-0000mJ-0g
	for Autoconf@gnu.org; Thu, 26 Apr 2012 07:13:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SNMd7-0000Sn-MJ
	for Autoconf@gnu.org; Thu, 26 Apr 2012 07:13:03 -0400
Received: from mail-bk0-f41.google.com ([209.85.214.41]:55639)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>)
	id 1SNMd7-0000Sf-D0; Thu, 26 Apr 2012 07:12:57 -0400
Received: by bkvi17 with SMTP id i17so1048689bkv.0
	for <multiple recipients>; Thu, 26 Apr 2012 04:12:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:mime-version:to:cc:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	bh=ojcIPgngFl6toTH4qUfVw6GU9q9u7zTO8pE6ZvlG1ew=;
	b=eoKPGomLpA6k7tmTC6PpqlakEgK5Kwyz9q+L70CZ8hLBNriBlLhN3LpdhZiiTPj9Co
	JNG7T2COTXg1XOYcQQoe4qCDVuEjFWAAf5aR7mbCFx8sXhHMGQU166E/a+/Z9xOIxz/6
	XC5qB2JLjLe6qPfv0c6VuhNjS1JZMIB1mTXBTI8QqQ0QvdTOEuNDC9JQxc4ADzbzUJ1t
	SWoJuhP4LgifSps2rqfs6AGEqSQ2rpZE7m8GoZ67d80y6bAufsyfZWXw62ygznZjeQ7t
	o931lKEcJqj9zc7rYWEliu/o9HfMko8918NfpWkE3PUDbHJ2DiYPSIGB8inNNubcwZZf
	PCIw==
Received: by 10.204.129.87 with SMTP id n23mr2130156bks.19.1335438774359;
	Thu, 26 Apr 2012 04:12:54 -0700 (PDT)
Received: from [87.5.99.161]
	(host161-99-dynamic.5-87-r.retail.telecomitalia.it. [87.5.99.161])
	by mx.google.com with ESMTPS id h18sm4902135bkh.8.2012.04.26.04.12.51
	(version=SSLv3 cipher=OTHER); Thu, 26 Apr 2012 04:12:53 -0700 (PDT)
Message-ID: <4F992DB0.5020800@gmail.com>
Date: Thu, 26 Apr 2012 13:12:48 +0200
From: Stefano Lattarini <stefano.lattarini@gmail.com>
MIME-Version: 1.0
To: Eric Blake <eblake@redhat.com>
Subject: Re: [FYI] {master} refactor: use modern semantics of 'open'
References: <4F9726E1.7050602@redhat.com>
	<877gx4sq1e.fsf@windlord.stanford.edu>
	<4F973256.6020801@redhat.com> <4F9734A1.5030601@gmail.com>
	<4F973668.1050405@redhat.com>
In-Reply-To: <4F973668.1050405@redhat.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Cc: Russ Allbery <rra@stanford.edu>, Autoconf <Autoconf@gnu.org>,
	"automake-patches@gnu.org" <automake-patches@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 11:13:09 -0000

Hi Eric, sorry for the delay.

On 04/25/2012 01:25 AM, Eric Blake wrote:
>
> Actually, this appears to make _all_ the XFile uses work; all that
> remains broken is places such as bin/autoupdate.in calling raw open
> instead of using XFile.
> 
>>>
>>> diff --git i/lib/Autom4te/XFile.pm w/lib/Autom4te/XFile.pm
>>> index 19b73aa..95a452b 100644
>>> --- i/lib/Autom4te/XFile.pm
>>> +++ w/lib/Autom4te/XFile.pm
>>> @@ -138,7 +138,14 @@ sub open
>>>    # comment in IO::Handle.
>>>    ${*$fh}{'autom4te_xfile_file'} = "$file";
>>>
>>> -  if (!$fh->SUPER::open (@_))
>>> +  if (defined $mode && "$file" eq '-')
>>> +    {
>>> +      if (!$fh->SUPER::open ("$mode$file"))
>>>
What if "mode" is something like "w" or "r+"?

>>> +	{
>>> +	  fatal "cannot open $file: $!";
>>> +	}
>>> +    }
>>> +  elsif (!$fh->SUPER::open (@_))
> 
> In other words, since the point of XFile is to ensure binmode, and to
> make open nicer to use, making XFile the owner of '-' magic seems like
> the right thing to do, and the real remaining autoconf bug is that we
> aren't using XFile everywhere.
>
Makes sense.

>>
>> If anything, this issue shows that the Automake::XFile module (and
>> other similar modules as well) should live in their own git
>> repository, which both Autoconf and Automake should use as a
>> submodule -- and which (for $DEITY's sake!), should be unit-tested.
>> Any volunteer?
> 
> Alas, my perl-fu is weak enough that I'm not sure how good my
> unit-testing attempts would be.  But moving the files to a common
> repository seems doable (how about gnulib?).
>
This could be a good "interim" solution, as I the paperwork in place for
Gnulib, as well as pushing rights for its repository.  Unit tests can be
added later, as the need arise, and/or slowly step-by-step when we feel
like doing so.

Thanks,
  Stefano


From MAILER-DAEMON Thu Apr 26 10:15:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNPTU-00080h-5W
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 10:15:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58935)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SNPTN-0007xM-Fa
	for autoconf@gnu.org; Thu, 26 Apr 2012 10:15:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SNPTD-0006Bt-Cz
	for autoconf@gnu.org; Thu, 26 Apr 2012 10:15:05 -0400
Received: from mx1.redhat.com ([209.132.183.28]:23630)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1SNPTD-0006Bh-4o; Thu, 26 Apr 2012 10:14:55 -0400
Received: from int-mx09.intmail.prod.int.phx2.redhat.com
	(int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3QEEriK007442
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 26 Apr 2012 10:14:53 -0400
Received: from [10.3.113.99] (ovpn-113-99.phx2.redhat.com [10.3.113.99])
	by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
	id q3QEEq6u017797; Thu, 26 Apr 2012 10:14:52 -0400
Message-ID: <4F99585B.5060009@redhat.com>
Date: Thu, 26 Apr 2012 08:14:51 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Vincent Lefevre <vincent@vinc17.net>, autoconf@gnu.org,
	bug-gnulib <bug-gnulib@gnu.org>
Subject: Re: AC_C_NORETURN macro?
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
In-Reply-To: <20120426085422.GE3626@xvii.vinc17.org>
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig8F493C816C735C567BD3764F"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 14:15:11 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig8F493C816C735C567BD3764F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/26/2012 02:54 AM, Vincent Lefevre wrote:
> The gnulib code, as I can see it under Debian, looks strange.
> In lib/stdnoreturn.in.h:
>=20
> #if 1200 <=3D _MSC_VER
> /* Standard include files on this platform contain declarations like
>    "__declspec (noreturn) void abort (void);".  "#define noreturn
>    _Noreturn" would cause this declaration to be rewritten to the
>    invalid "__declspec (__declspec (noreturn)) void abort (void);".
>    Instead, define noreturn to empty, so that such declarations are
>    rewritten to "__declspec () void abort (void);", which is
>    equivalent to "void abort (void);"; this gives up on noreturn's
>    advice to the compiler but at least it is valid code.  */
> # define noreturn /*empty*/
> #else
> # define noreturn _Noreturn
> #endif
>=20
> IMHO, the problem with _MSC_VER (which is not a bug, because
> "noreturn" wasn't reserved) means that using the <stdnoreturn.h>
> header is not the right solution for code that needs to be pre-C11
> compatible;

If I write C11 code:

#include <stdnoreturn.h>
#include <stdio.h>

then I expect things to work.  But _MSC_VER system headers use noreturn
in a non-C11 manner, such that the only way for this to work via gnulib
is to make 'noreturn' a no-op on that platform, until such time as
Microsoft updates their headers.  Microsoft has a history of namespace
pollution; had their compiler used '__declspec (__noreturn)' instead of
'__declspec (noreturn)', we would not be facing this clash.  The whole
point of gnulib is to give me enough support so that I can write code
that is valid C11, and also which compiles under non-C11 compilers,
without any extra #ifdef work in my code (since gnulib took care of it
for me).

> indeed some implementations may have another use of
> "noreturn".

Not if they were compliant to C99 (since C99 didn't reserve 'noreturn',
then system headers under C99 mode should not be using that symbol).

>=20
> but I don't see how it can be correct on a non-GCC non-SunPro C11
> implementation: _Noreturn would get defined to nothing; the code
> would be valid, but the C11 _Noreturn function specifier would not
> be used.

Correct.  _Noreturn is an optimization hint; your code will still
function correctly if the specifier is not present.  The gnulib choice
to define it away on problematic systems is intentional.

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig8F493C816C735C567BD3764F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPmVhcAAoJEKeha0olJ0NqrQgIAIwa1jclncey3ySQDReJWvbM
MGKz7dnDPnd5WED4wap+cSRUeqMnkre89djQjXeftmRaQweHMnuQCGhS4GgybySC
A556Ao1Ve1g/P49YXshQvKedNuXY8jLmC/8zjhO3jnXDpOuYnjml3psCWUkNcriF
DcY2m26ggQCwRCcDjuCr+UFYrOl24L5zLopT2+nXquzot6CHWpi/UasaB6HXMDx3
wIuR2b2ykmnCpBZ0buZZx46IcwfyG9YJ662imsE9s2wTzi/ln+xy3DEFkHK5Xuq5
z0uGqZsV6IQnZgxPmCCJN8olq5S5QLUpamoaN1RsiF22zaq61nIEKhJAXuRpq0c=
=Zgp2
-----END PGP SIGNATURE-----

--------------enig8F493C816C735C567BD3764F--


From MAILER-DAEMON Thu Apr 26 10:21:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNPZ6-0000AE-6N
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 10:21:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38575)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SNPYy-00009V-DS
	for Autoconf@gnu.org; Thu, 26 Apr 2012 10:20:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SNPYr-00009A-UP
	for Autoconf@gnu.org; Thu, 26 Apr 2012 10:20:51 -0400
Received: from mx1.redhat.com ([209.132.183.28]:38123)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1SNPYr-00008r-MG; Thu, 26 Apr 2012 10:20:45 -0400
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3QEKg95004317
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 26 Apr 2012 10:20:43 -0400
Received: from [10.3.113.99] (ovpn-113-99.phx2.redhat.com [10.3.113.99])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id q3QEKg07030029; Thu, 26 Apr 2012 10:20:42 -0400
Message-ID: <4F9959BA.6070001@redhat.com>
Date: Thu, 26 Apr 2012 08:20:42 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Stefano Lattarini <stefano.lattarini@gmail.com>
Subject: Re: [FYI] {master} refactor: use modern semantics of 'open'
References: <4F9726E1.7050602@redhat.com>
	<877gx4sq1e.fsf@windlord.stanford.edu>
	<4F973256.6020801@redhat.com> <4F9734A1.5030601@gmail.com>
	<4F973668.1050405@redhat.com> <4F992DB0.5020800@gmail.com>
In-Reply-To: <4F992DB0.5020800@gmail.com>
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig41C366C49A51BCF3013A3E89"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
Cc: Russ Allbery <rra@stanford.edu>, Autoconf <Autoconf@gnu.org>,
	"automake-patches@gnu.org" <automake-patches@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 14:20:58 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig41C366C49A51BCF3013A3E89
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/26/2012 05:12 AM, Stefano Lattarini wrote:
> Hi Eric, sorry for the delay.
>=20
> On 04/25/2012 01:25 AM, Eric Blake wrote:
>>
>> Actually, this appears to make _all_ the XFile uses work; all that
>> remains broken is places such as bin/autoupdate.in calling raw open
>> instead of using XFile.
>>
>>>>
>>>> diff --git i/lib/Autom4te/XFile.pm w/lib/Autom4te/XFile.pm
>>>> index 19b73aa..95a452b 100644
>>>> --- i/lib/Autom4te/XFile.pm
>>>> +++ w/lib/Autom4te/XFile.pm
>>>> @@ -138,7 +138,14 @@ sub open
>>>>    # comment in IO::Handle.
>>>>    ${*$fh}{'autom4te_xfile_file'} =3D "$file";
>>>>
>>>> -  if (!$fh->SUPER::open (@_))
>>>> +  if (defined $mode && "$file" eq '-')
>>>> +    {
>>>> +      if (!$fh->SUPER::open ("$mode$file"))
>>>>
> What if "mode" is something like "w" or "r+"?

I hadn't thought about that - but we would indeed need to add some
smarts to XFile to handle it properly.

>>
>> In other words, since the point of XFile is to ensure binmode, and to
>> make open nicer to use, making XFile the owner of '-' magic seems like=

>> the right thing to do, and the real remaining autoconf bug is that we
>> aren't using XFile everywhere.
>>
> Makes sense.
>=20
>>>
>>> If anything, this issue shows that the Automake::XFile module (and
>>> other similar modules as well) should live in their own git
>>> repository, which both Autoconf and Automake should use as a
>>> submodule -- and which (for $DEITY's sake!), should be unit-tested.
>>> Any volunteer?
>>
>> Alas, my perl-fu is weak enough that I'm not sure how good my
>> unit-testing attempts would be.  But moving the files to a common
>> repository seems doable (how about gnulib?).
>>
> This could be a good "interim" solution, as I the paperwork in place fo=
r
> Gnulib, as well as pushing rights for its repository.  Unit tests can b=
e
> added later, as the need arise, and/or slowly step-by-step when we feel=

> like doing so.

Would we move all .pm files, or just the .pm files that both automake
and autoconf are sharing?  (The list of shared files is:
Configure_ac.pm, Channels.pm, FileUtils.pm, Getopt.pm, XFile.pm)

--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig41C366C49A51BCF3013A3E89
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPmVm6AAoJEKeha0olJ0NqcgkIAKusBsAfMU/MJU+4GRLSjo+L
0IKUpOjNoBLo0ey4636c06M6PaXzgr7OVEOvhCRHeT2ly0otWSeFOY+ORVfve8R1
l9xHRCV5jXDzsO1A7JS0HXECV7Lmuz/P+m56PK5l5hula05ZViz992hchdGVTGA7
xZVSAezWANJqzyt0a5wtqXuGtpkInogGz9Jf0ZqbE6IP0p/J1+ns07QVfQxB03rH
+zWuB+4yYuCi/Mc8st7jHnYnAuHj1PLvkRlytgS3/sfaU1aqUKrdARRu8LM1sDud
S5n8sz67MrDuKQlXmVXBrij7iXS6pc/FVDDvmLwknUtkmiqyW49pIeCWaCLNqzE=
=eDPM
-----END PGP SIGNATURE-----

--------------enig41C366C49A51BCF3013A3E89--


From MAILER-DAEMON Thu Apr 26 11:03:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNQE4-0002ur-S5
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 11:03:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37842)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNQDv-0002uj-Jb
	for autoconf@gnu.org; Thu, 26 Apr 2012 11:03:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNQDn-0000Ml-7d
	for autoconf@gnu.org; Thu, 26 Apr 2012 11:03:11 -0400
Received: from vinc17.pck.nerim.net ([213.41.242.187]:53215
	helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>)
	id 1SNQDm-0000M7-Sq; Thu, 26 Apr 2012 11:03:03 -0400
Received: by xvii.vinc17.org (Postfix, from userid 1000)
	id BD9BC21A036; Thu, 26 Apr 2012 17:02:59 +0200 (CEST)
Date: Thu, 26 Apr 2012 17:02:59 +0200
From: Vincent Lefevre <vincent@vinc17.net>
To: Eric Blake <eblake@redhat.com>
Subject: Re: AC_C_NORETURN macro?
Message-ID: <20120426150259.GH3626@xvii.vinc17.org>
Mail-Followup-To: Vincent Lefevre <vincent@vinc17.net>,
	Eric Blake <eblake@redhat.com>, autoconf@gnu.org,
	bug-gnulib <bug-gnulib@gnu.org>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F99585B.5060009@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F99585B.5060009@redhat.com>
X-Mailer-Info: http://www.vinc17.net/mutt/
User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.41.242.187
Cc: autoconf@gnu.org, bug-gnulib <bug-gnulib@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 15:03:19 -0000

On 2012-04-26 08:14:51 -0600, Eric Blake wrote:
> If I write C11 code:
>=20
> #include <stdnoreturn.h>
> #include <stdio.h>
>=20
> then I expect things to work.  But _MSC_VER system headers use noreturn
> in a non-C11 manner, such that the only way for this to work via gnulib
> is to make 'noreturn' a no-op on that platform, until such time as
> Microsoft updates their headers.  Microsoft has a history of namespace
> pollution; had their compiler used '__declspec (__noreturn)' instead of
> '__declspec (noreturn)', we would not be facing this clash.

GCC has the same kind of problem. Though the __ version can also
be used, it is poorly documented, and examples have the version
without __. And some libraries under GNU/Linux reuse this version
without __.

> The whole point of gnulib is to give me enough support so that I can
> write code that is valid C11, and also which compiles under non-C11
> compilers, without any extra #ifdef work in my code (since gnulib
> took care of it for me).

In MPFR, we want more: to be able to use the C99/C11 features and
extensions from compilers (because the feature is not in the C
standard or is too recent for the compilers). Not only the fact
that the code compiles, but also that the feature is used.

> > indeed some implementations may have another use of
> > "noreturn".
>=20
> Not if they were compliant to C99 (since C99 didn't reserve 'noreturn',
> then system headers under C99 mode should not be using that symbol).

Almost no compilers/systems are compliant to C99. For instance,
under Linux, GCC defines "unix" and "linux" to 1, while they are
not reserved.

> > but I don't see how it can be correct on a non-GCC non-SunPro C11
> > implementation: _Noreturn would get defined to nothing; the code
> > would be valid, but the C11 _Noreturn function specifier would not
> > be used.
>=20
> Correct.  _Noreturn is an optimization hint; your code will still
> function correctly if the specifier is not present.  The gnulib choice
> to define it away on problematic systems is intentional.

If I understand the gnulib code, gnulib defines it away also on pure
C11 implementations (and not complete implementations that understand
_Noreturn), which are not problematic systems!

#ifndef _Noreturn
# if (3 <=3D __GNUC__ || (__GNUC__ =3D=3D 2 && 8 <=3D __GNUC_MINOR__) \
      || 0x5110 <=3D __SUNPRO_C)
#  define _Noreturn __attribute__ ((__noreturn__))
# elif 1200 <=3D _MSC_VER
#  define _Noreturn __declspec (noreturn)
# else
#  define _Noreturn
# endif
#endif

--=20
Vincent Lef=E8vre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


From MAILER-DAEMON Thu Apr 26 11:16:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNQQS-0006WF-8m
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 11:16:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54290)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SNQQL-0006W9-OW
	for autoconf@gnu.org; Thu, 26 Apr 2012 11:16:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eblake@redhat.com>) id 1SNQQG-0005rU-Kl
	for autoconf@gnu.org; Thu, 26 Apr 2012 11:16:01 -0400
Received: from mx1.redhat.com ([209.132.183.28]:8851)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eblake@redhat.com>)
	id 1SNQQG-0005qg-Cj; Thu, 26 Apr 2012 11:15:56 -0400
Received: from int-mx01.intmail.prod.int.phx2.redhat.com
	(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])
	by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3QFFsht021624
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Thu, 26 Apr 2012 11:15:54 -0400
Received: from [10.3.113.99] (ovpn-113-99.phx2.redhat.com [10.3.113.99])
	by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id q3QFFsjC022553; Thu, 26 Apr 2012 11:15:54 -0400
Message-ID: <4F9966A9.3050702@redhat.com>
Date: Thu, 26 Apr 2012 09:15:53 -0600
From: Eric Blake <eblake@redhat.com>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: Vincent Lefevre <vincent@vinc17.net>, autoconf@gnu.org,
	bug-gnulib <bug-gnulib@gnu.org>
Subject: Re: AC_C_NORETURN macro?
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F99585B.5060009@redhat.com>
	<20120426150259.GH3626@xvii.vinc17.org>
In-Reply-To: <20120426150259.GH3626@xvii.vinc17.org>
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigC1B66D42BC2A822A8FD7B10E"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.132.183.28
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 15:16:07 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC1B66D42BC2A822A8FD7B10E
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/26/2012 09:02 AM, Vincent Lefevre wrote:
> On 2012-04-26 08:14:51 -0600, Eric Blake wrote:
>> If I write C11 code:
>>
>> #include <stdnoreturn.h>
>> #include <stdio.h>
>>
>> then I expect things to work.  But _MSC_VER system headers use noretur=
n
>> in a non-C11 manner, such that the only way for this to work via gnuli=
b
>> is to make 'noreturn' a no-op on that platform, until such time as
>> Microsoft updates their headers.  Microsoft has a history of namespace=

>> pollution; had their compiler used '__declspec (__noreturn)' instead o=
f
>> '__declspec (noreturn)', we would not be facing this clash.
>=20
> GCC has the same kind of problem. Though the __ version can also
> be used, it is poorly documented, and examples have the version
> without __. And some libraries under GNU/Linux reuse this version
> without __.

Any installed header that does not use the __ version is buggy.
Thankfully, in the open source world, you can post bug reports and
patches to get those buggy packages fixed; which is a much different
story than for the proprietary _MSC_VER system headers.

>=20
>> The whole point of gnulib is to give me enough support so that I can
>> write code that is valid C11, and also which compiles under non-C11
>> compilers, without any extra #ifdef work in my code (since gnulib
>> took care of it for me).
>=20
> In MPFR, we want more: to be able to use the C99/C11 features and
> extensions from compilers (because the feature is not in the C
> standard or is too recent for the compilers). Not only the fact
> that the code compiles, but also that the feature is used.

Fair enough.  But then check directly for that feature, instead of
asking gnulib to do it for you, and feel free to use gnulib's checks as
a starting point.  And I'm still not convinced that we are ready to
promote this into an autoconf macro quite yet; on the other hand, if we
had someone working on improving the family of C macros to make it
easier to tell C89, C99, and now C11 apart, as well as allowing packages
to specify which flavor of language they are specifically targetting,
then at that point, AC_C_NORETURN might make sense as a part of probing
for C11.

>>
>> Not if they were compliant to C99 (since C99 didn't reserve 'noreturn'=
,
>> then system headers under C99 mode should not be using that symbol).
>=20
> Almost no compilers/systems are compliant to C99. For instance,
> under Linux, GCC defines "unix" and "linux" to 1, while they are
> not reserved.

Even when in --std=3Dc99 mode?  I can understand this in --std=3Dgnu99 mo=
de
(since gnu99 explicitly allows extensions).  This particular pollution
is rather pervasive due to historical practice, but if it bothers you
that much, I'm sure you could file a bug report, and that someone
working on gcc or glibc might be willing to help you address it.

>> Correct.  _Noreturn is an optimization hint; your code will still
>> function correctly if the specifier is not present.  The gnulib choice=

>> to define it away on problematic systems is intentional.
>=20
> If I understand the gnulib code, gnulib defines it away also on pure
> C11 implementations (and not complete implementations that understand
> _Noreturn), which are not problematic systems!

You missed an aspect - gnulib only provides a replacement
<stdnoreturn.h> header on non-C11 systems; on systems where the system
header is compliant, there is no need for gnulib to interject a
replacement.  Therefore, under C11, gnulib is not defining anything away.=


--=20
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigC1B66D42BC2A822A8FD7B10E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPmWapAAoJEKeha0olJ0NqQl4IAKqB/b6SKqjUDpDVPc+agQe+
7h38Nv5EYwZYkt6pGLPRJI1+OIc5zFU6mvVPDOsIVuMJtlbnXCzoihgmWrRZs+Tx
C0oWel2/ufTWeo5eNQeVYJekc7pGRSCuxuN6TVD2oP56gdMPOp0gvzfIBhMndKF/
QT1XaBaZVGrHSB/7S70+EXrDl6lJk165i33DGZ7X9DzchojeTUQ+LLsu28bS1G3D
uTvJ2FEKvCeSi8ftmIO6c/4bTMRdJUXJ5Amabhc5xIP807f4FU018Jg2Lenol92I
ssbHqKge/UQaIVqVyTaXmY5QO0r5S/c+WekpzrRLvhDFyf04StdL52dXAP1fkh8=
=Avj/
-----END PGP SIGNATURE-----

--------------enigC1B66D42BC2A822A8FD7B10E--


From MAILER-DAEMON Thu Apr 26 11:26:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNQaH-0000jL-NS
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 11:26:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35448)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SNQaB-0000ir-Az
	for Autoconf@gnu.org; Thu, 26 Apr 2012 11:26:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>) id 1SNQa5-0001F4-4U
	for Autoconf@gnu.org; Thu, 26 Apr 2012 11:26:10 -0400
Received: from mail-bk0-f41.google.com ([209.85.214.41]:44276)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@gmail.com>)
	id 1SNQa4-0001Ep-Re; Thu, 26 Apr 2012 11:26:05 -0400
Received: by bkvi17 with SMTP id i17so1329705bkv.0
	for <multiple recipients>; Thu, 26 Apr 2012 08:26:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:mime-version:to:cc:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	bh=ZWCmaHFghIHSKUbk1doKA/cQ4MF9frQaFaTx9aOR0cA=;
	b=KISdzjgYzCKoGzP5vwyFTAS6cDAdwvYxjGDCa46pIquCUE1yIma7+JEt7066J71Vlm
	Ol9PZFCJJffDuZcpiqSun9oS36KKQObDVXPuwIKmJfFNSj85XS5p3H6vN9Jp99klwtvw
	uG6TG9iMjOyvbFmDXYMq8QGM4kuLggFUgIeAq6vwzg6fhISktyHdeMkAQF3QQxNxyPOf
	KDx/pfrUtOLu+uHqw7WajD3wrI+BAcspW1GqrPZiF++wC+/It1T6BQ1f5XqM0HsV0PkA
	CBbFWepskoLnPjmiJJ+ghbANWZvSP5030Wv0YaCGOloeP2p+rruJgF4WUjLte4AmOpLR
	woXw==
Received: by 10.204.148.89 with SMTP id o25mr2525743bkv.52.1335453962071;
	Thu, 26 Apr 2012 08:26:02 -0700 (PDT)
Received: from [87.2.97.159]
	(host159-97-dynamic.2-87-r.retail.telecomitalia.it. [87.2.97.159])
	by mx.google.com with ESMTPS id s16sm6446335bkt.3.2012.04.26.08.25.59
	(version=SSLv3 cipher=OTHER); Thu, 26 Apr 2012 08:26:00 -0700 (PDT)
Message-ID: <4F996906.2040502@gmail.com>
Date: Thu, 26 Apr 2012 17:25:58 +0200
From: Stefano Lattarini <stefano.lattarini@gmail.com>
MIME-Version: 1.0
To: Eric Blake <eblake@redhat.com>
Subject: Re: [FYI] {master} refactor: use modern semantics of 'open'
References: <4F9726E1.7050602@redhat.com>
	<877gx4sq1e.fsf@windlord.stanford.edu>
	<4F973256.6020801@redhat.com> <4F9734A1.5030601@gmail.com>
	<4F973668.1050405@redhat.com> <4F992DB0.5020800@gmail.com>
	<4F9959BA.6070001@redhat.com>
In-Reply-To: <4F9959BA.6070001@redhat.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Cc: Russ Allbery <rra@stanford.edu>, Autoconf <Autoconf@gnu.org>,
	"automake-patches@gnu.org" <automake-patches@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 15:26:17 -0000

[SNIP]

Eric Blake wrote:
>>>
>>> Alas, my perl-fu is weak enough that I'm not sure how good my
>>> unit-testing attempts would be.  But moving the files to a common
>>> repository seems doable (how about gnulib?).

I replied:
>>
>> This could be a good "interim" solution, as I the paperwork in place for
>> Gnulib, as well as pushing rights for its repository.  Unit tests can be
>> added later, as the need arise, and/or slowly step-by-step when we feel
>> like doing so.

Eric replied:
>
> Would we move all .pm files, or just the .pm files that both automake
> and autoconf are sharing?  (The list of shared files is:
> Configure_ac.pm, Channels.pm, FileUtils.pm, Getopt.pm, XFile.pm)
> 
I'd move only the shared files as a first step, for sake of simplicity.
Once more syncing and testing infrastructure is in place, we might
decide to move other files as well (if that will be deemed to offer
some advantage).  No need to hurry or overdo, right?

Thanks,
  Stefano



From MAILER-DAEMON Thu Apr 26 11:57:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNR4K-0000SQ-7f
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 11:57:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55733)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNR4C-0008UI-Oj
	for autoconf@gnu.org; Thu, 26 Apr 2012 11:57:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNR41-0003uY-Mo
	for autoconf@gnu.org; Thu, 26 Apr 2012 11:57:12 -0400
Received: from vinc17.pck.nerim.net ([213.41.242.187]:53739
	helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>)
	id 1SNR41-0003tm-2Y; Thu, 26 Apr 2012 11:57:01 -0400
Received: by xvii.vinc17.org (Postfix, from userid 1000)
	id 7483A21A036; Thu, 26 Apr 2012 17:56:57 +0200 (CEST)
Date: Thu, 26 Apr 2012 17:56:57 +0200
From: Vincent Lefevre <vincent@vinc17.net>
To: Eric Blake <eblake@redhat.com>
Subject: Re: AC_C_NORETURN macro?
Message-ID: <20120426155657.GI3626@xvii.vinc17.org>
Mail-Followup-To: Vincent Lefevre <vincent@vinc17.net>,
	Eric Blake <eblake@redhat.com>, autoconf@gnu.org,
	bug-gnulib <bug-gnulib@gnu.org>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F99585B.5060009@redhat.com>
	<20120426150259.GH3626@xvii.vinc17.org>
	<4F9966A9.3050702@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F9966A9.3050702@redhat.com>
X-Mailer-Info: http://www.vinc17.net/mutt/
User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.41.242.187
Cc: autoconf@gnu.org, bug-gnulib <bug-gnulib@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 15:57:19 -0000

On 2012-04-26 09:15:53 -0600, Eric Blake wrote:
> On 04/26/2012 09:02 AM, Vincent Lefevre wrote:
> > On 2012-04-26 08:14:51 -0600, Eric Blake wrote:
> >> If I write C11 code:
> >>
> >> #include <stdnoreturn.h>
> >> #include <stdio.h>
> >>
> >> then I expect things to work.  But _MSC_VER system headers use noret=
urn
> >> in a non-C11 manner, such that the only way for this to work via gnu=
lib
> >> is to make 'noreturn' a no-op on that platform, until such time as
> >> Microsoft updates their headers.  Microsoft has a history of namespa=
ce
> >> pollution; had their compiler used '__declspec (__noreturn)' instead=
 of
> >> '__declspec (noreturn)', we would not be facing this clash.
> >=20
> > GCC has the same kind of problem. Though the __ version can also
> > be used, it is poorly documented, and examples have the version
> > without __. And some libraries under GNU/Linux reuse this version
> > without __.
>=20
> Any installed header that does not use the __ version is buggy.
> Thankfully, in the open source world, you can post bug reports and
> patches to get those buggy packages fixed;

This is an optimistic view.

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D619933

(that's for the GCC documentation first).

Also, there's the problem that fixing old code may introduce new bugs.

> > In MPFR, we want more: to be able to use the C99/C11 features and
> > extensions from compilers (because the feature is not in the C
> > standard or is too recent for the compilers). Not only the fact
> > that the code compiles, but also that the feature is used.
>=20
> Fair enough.  But then check directly for that feature, instead of
> asking gnulib to do it for you,

My original question was against autoconf (which already provides
macros for similar features), not gnulib.

> and feel free to use gnulib's checks as a starting point. And I'm
> still not convinced that we are ready to promote this into an
> autoconf macro quite yet; on the other hand, if we had someone
> working on improving the family of C macros to make it easier to
> tell C89, C99, and now C11 apart, as well as allowing packages to
> specify which flavor of language they are specifically targetting,
> then at that point, AC_C_NORETURN might make sense as a part of
> probing for C11.

Not really. Implementations (like GCC/glibc) may start to support C11
while they do not support C99 completely, e.g.

  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D34678

Autoconf should work on a feature basis, not on ISO C version
information (which is unreliable).

> >> Not if they were compliant to C99 (since C99 didn't reserve 'noretur=
n',
> >> then system headers under C99 mode should not be using that symbol).
> >=20
> > Almost no compilers/systems are compliant to C99. For instance,
> > under Linux, GCC defines "unix" and "linux" to 1, while they are
> > not reserved.
>=20
> Even when in --std=3Dc99 mode?

No, but we want to be able to compile our code with --std=3Dgnu99.
This is needed to get some extra (optional) features.

We have no problem with that, but this shows you that compilers are
not perfect.

> >> Correct.  _Noreturn is an optimization hint; your code will still
> >> function correctly if the specifier is not present.  The gnulib choi=
ce
> >> to define it away on problematic systems is intentional.
> >=20
> > If I understand the gnulib code, gnulib defines it away also on pure
> > C11 implementations (and not complete implementations that understand
> > _Noreturn), which are not problematic systems!
>=20
> You missed an aspect - gnulib only provides a replacement
> <stdnoreturn.h> header on non-C11 systems; on systems where the system
> header is compliant, there is no need for gnulib to interject a
> replacement.  Therefore, under C11, gnulib is not defining anything awa=
y.

Ah, OK.

But I think that <stdnoreturn.h> is not a solution for MPFR, due to
the potential clashes with GMP (on which we depend), which uses GCC's
__attribute__ ((noreturn)). Though this may be fixed in the future,
problems would still appear with older versions. Thus we should use
_Noreturn directly, when supported.

--=20
Vincent Lef=E8vre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


From MAILER-DAEMON Thu Apr 26 12:09:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNRGU-00067W-6F
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 12:09:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44553)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=nbowler=4569d4c22@mail.ellipticsemi.com>)
	id 1SNRGN-00065h-JI
	for autoconf@gnu.org; Thu, 26 Apr 2012 12:09:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=nbowler=4569d4c22@mail.ellipticsemi.com>)
	id 1SNRGD-0001Qv-8k
	for autoconf@gnu.org; Thu, 26 Apr 2012 12:09:47 -0400
Received: from mx.scalarmail.ca ([98.158.95.75]:26791
	helo=ironport-01.sms.scalar.ca)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=nbowler=4569d4c22@mail.ellipticsemi.com>)
	id 1SNRGD-0000Vr-3N; Thu, 26 Apr 2012 12:09:37 -0400
Received: from unknown (HELO sms-zimbra-mta-01.sms.scalar.ca) ([192.168.32.56])
	by ironport-01.sms.scalar.ca with ESMTP; 26 Apr 2012 12:08:52 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by sms-zimbra-mta-01.sms.scalar.ca (Postfix) with ESMTP id BCCDD17F53; 
	Thu, 26 Apr 2012 12:08:52 -0400 (EDT)
Received: from sms-zimbra-mta-01.sms.scalar.ca ([127.0.0.1])
	by localhost (sms-zimbra-mta-01.sms.scalar.ca [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id ycvLHKRMeQB2; Thu, 26 Apr 2012 12:08:52 -0400 (EDT)
Received: from mail.ellipticsemi.com (dsl-67-204-24-19.acanac.net
	[67.204.24.19]) (Authenticated sender: nbowler@elliptictech.com)
	by sms-zimbra-mta-01.sms.scalar.ca (Postfix) with ESMTPSA id 368E917F4C;
	Thu, 26 Apr 2012 12:08:51 -0400 (EDT)
Received: by mail.ellipticsemi.com (nbSMTP-1.00) for uid 550
	(using TLSv1/SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	nbowler@mail.ellipticsemi.com; Thu, 26 Apr 2012 12:08:51 -0400 (EDT)
Date: Thu, 26 Apr 2012 12:08:50 -0400
From: Nick Bowler <nbowler@elliptictech.com>
To: Vincent Lefevre <vincent@vinc17.net>, Eric Blake <eblake@redhat.com>,
	autoconf@gnu.org, bug-gnulib <bug-gnulib@gnu.org>
Subject: Re: AC_C_NORETURN macro?
Message-ID: <20120426160850.GA6001@elliptictech.com>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F99585B.5060009@redhat.com>
	<20120426150259.GH3626@xvii.vinc17.org>
	<4F9966A9.3050702@redhat.com>
	<20120426155657.GI3626@xvii.vinc17.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120426155657.GI3626@xvii.vinc17.org>
Organization: Elliptic Technologies Inc.
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 98.158.95.75
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 16:09:53 -0000

On 2012-04-26 17:56 +0200, Vincent Lefevre wrote:
> On 2012-04-26 09:15:53 -0600, Eric Blake wrote:
> > On 04/26/2012 09:02 AM, Vincent Lefevre wrote:
> > > On 2012-04-26 08:14:51 -0600, Eric Blake wrote:
> > >> Correct.  _Noreturn is an optimization hint; your code will still
> > >> function correctly if the specifier is not present.  The gnulib choice
> > >> to define it away on problematic systems is intentional.
> > > 
> > > If I understand the gnulib code, gnulib defines it away also on pure
> > > C11 implementations (and not complete implementations that understand
> > > _Noreturn), which are not problematic systems!
> > 
> > You missed an aspect - gnulib only provides a replacement
> > <stdnoreturn.h> header on non-C11 systems; on systems where the system
> > header is compliant, there is no need for gnulib to interject a
> > replacement.  Therefore, under C11, gnulib is not defining anything away.
> 
> Ah, OK.
> 
> But I think that <stdnoreturn.h> is not a solution for MPFR, due to
> the potential clashes with GMP (on which we depend), which uses GCC's
> __attribute__ ((noreturn)). Though this may be fixed in the future,
> problems would still appear with older versions. Thus we should use
> _Noreturn directly, when supported.

Another alternative is to simply make sure that you always include the
GMP headers before including <stdnoreturn.h>.

Cheers,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)



From MAILER-DAEMON Thu Apr 26 12:56:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNRz8-00045U-UW
	for mharc-autoconf@gnu.org; Thu, 26 Apr 2012 12:56:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49556)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SNRz1-00044O-Ch
	for autoconf@gnu.org; Thu, 26 Apr 2012 12:56:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rra@stanford.edu>) id 1SNRyx-0001Zc-Vp
	for autoconf@gnu.org; Thu, 26 Apr 2012 12:55:54 -0400
Received: from smtp3.stanford.edu ([171.67.219.83]:57890
	helo=smtp.stanford.edu) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rra@stanford.edu>)
	id 1SNRXF-0000xa-89; Thu, 26 Apr 2012 12:27:13 -0400
Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id 94B95443C4F;
	Thu, 26 Apr 2012 09:27:09 -0700 (PDT)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.stanford.edu (Postfix) with ESMTPS id D7802443C5D;
	Thu, 26 Apr 2012 09:27:08 -0700 (PDT)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id B6F802F45D; Thu, 26 Apr 2012 09:27:08 -0700 (PDT)
From: Russ Allbery <rra@stanford.edu>
To: Eric Blake <eblake@redhat.com>
Subject: Re: AC_C_NORETURN macro?
In-Reply-To: <4F9966A9.3050702@redhat.com> (Eric Blake's message of "Thu, 26
	Apr 2012 09:15:53 -0600")
Organization: The Eyrie
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com> <20120426085422.GE3626@xvii.vinc17.org>
	<4F99585B.5060009@redhat.com> <20120426150259.GH3626@xvii.vinc17.org>
	<4F9966A9.3050702@redhat.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Date: Thu, 26 Apr 2012 09:27:08 -0700
Message-ID: <87r4vafogz.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.67.219.83
Cc: bug-gnulib <bug-gnulib@gnu.org>, autoconf@gnu.org,
	Vincent Lefevre <vincent@vinc17.net>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Apr 2012 16:56:01 -0000

Eric Blake <eblake@redhat.com> writes:
> On 04/26/2012 09:02 AM, Vincent Lefevre wrote:

>> Almost no compilers/systems are compliant to C99. For instance, under
>> Linux, GCC defines "unix" and "linux" to 1, while they are not
>> reserved.

> Even when in --std=c99 mode?

That, or -ansi, make GCC and glibc compliant, but almost no one uses them.
The experience of trying to use them with a large project will quickly
show why.  It's almost impossible to get the right set of feature-test
macros defined to let the code build without causing other strange
problems on other platforms, due to bugs in their strict standard
compliance mode or due to other weirdness (try, for example, requesting
_XOPEN_SOURCE 600 on Solaris, and you'll find you have to go to some
lengths to ensure that the source code and the compiler are configured for
consistently using the same standard or the system header files will throw
fatal errors and abort the compile).

I've done the experiment from time to time of supporting -ansi or
--std=c99, but even for small code bases I consider it the kind of thing
that one does as a hobby or out of curiosity.  It's not a very good way to
actually get work done and write code that is portable on a practical
level (meaning that people on multiple UNIX platforms can just run
./configure && make).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>


From MAILER-DAEMON Fri Apr 27 11:06:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNml3-00035C-9L
	for mharc-autoconf@gnu.org; Fri, 27 Apr 2012 11:06:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59788)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNml0-00034u-Eg
	for autoconf@gnu.org; Fri, 27 Apr 2012 11:06:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNmkx-0007gV-Dl
	for autoconf@gnu.org; Fri, 27 Apr 2012 11:06:50 -0400
Received: from vinc17.pck.nerim.net ([213.41.242.187]:52807
	helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>)
	id 1SNmkx-0007g8-3w; Fri, 27 Apr 2012 11:06:47 -0400
Received: by xvii.vinc17.org (Postfix, from userid 1000)
	id 8B04834C003; Fri, 27 Apr 2012 17:06:44 +0200 (CEST)
Date: Fri, 27 Apr 2012 17:06:44 +0200
From: Vincent Lefevre <vincent@vinc17.net>
To: Nick Bowler <nbowler@elliptictech.com>
Subject: Re: AC_C_NORETURN macro?
Message-ID: <20120427150644.GK3626@xvii.vinc17.org>
Mail-Followup-To: Vincent Lefevre <vincent@vinc17.net>,
	Nick Bowler <nbowler@elliptictech.com>,
	Eric Blake <eblake@redhat.com>, autoconf@gnu.org,
	bug-gnulib <bug-gnulib@gnu.org>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F99585B.5060009@redhat.com>
	<20120426150259.GH3626@xvii.vinc17.org>
	<4F9966A9.3050702@redhat.com>
	<20120426155657.GI3626@xvii.vinc17.org>
	<20120426160850.GA6001@elliptictech.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <20120426160850.GA6001@elliptictech.com>
X-Mailer-Info: http://www.vinc17.net/mutt/
User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.41.242.187
Cc: bug-gnulib <bug-gnulib@gnu.org>, autoconf@gnu.org,
	Eric Blake <eblake@redhat.com>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Apr 2012 15:06:51 -0000

On 2012-04-26 12:08:50 -0400, Nick Bowler wrote:
> On 2012-04-26 17:56 +0200, Vincent Lefevre wrote:
> > But I think that <stdnoreturn.h> is not a solution for MPFR, due to
> > the potential clashes with GMP (on which we depend), which uses GCC's
> > __attribute__ ((noreturn)). Though this may be fixed in the future,
> > problems would still appear with older versions. Thus we should use
> > _Noreturn directly, when supported.
>=20
> Another alternative is to simply make sure that you always include the
> GMP headers before including <stdnoreturn.h>.

Perhaps. But GMP requires some standard headers, like <stdio.h>
to be included before in order to use some functions. With all
constraints like that, this makes things less maintainable. And
there may be buggy C implementations, where some headers may
include other ones without enough guards. I've already seen that.

--=20
Vincent Lef=E8vre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


From MAILER-DAEMON Fri Apr 27 11:16:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNmuj-0005DK-8a
	for mharc-autoconf@gnu.org; Fri, 27 Apr 2012 11:16:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43898)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNmud-0005D8-CS
	for autoconf@gnu.org; Fri, 27 Apr 2012 11:16:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SNmuW-0002lN-7N
	for autoconf@gnu.org; Fri, 27 Apr 2012 11:16:46 -0400
Received: from vinc17.pck.nerim.net ([213.41.242.187]:52961
	helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>)
	id 1SNmuV-0002l4-Tw; Fri, 27 Apr 2012 11:16:40 -0400
Received: by xvii.vinc17.org (Postfix, from userid 1000)
	id 9F4F634C003; Fri, 27 Apr 2012 17:16:37 +0200 (CEST)
Date: Fri, 27 Apr 2012 17:16:37 +0200
From: Vincent Lefevre <vincent@vinc17.net>
To: Russ Allbery <rra@stanford.edu>
Subject: Re: AC_C_NORETURN macro?
Message-ID: <20120427151637.GL3626@xvii.vinc17.org>
Mail-Followup-To: Vincent Lefevre <vincent@vinc17.net>,
	Russ Allbery <rra@stanford.edu>, Eric Blake <eblake@redhat.com>,
	autoconf@gnu.org, bug-gnulib <bug-gnulib@gnu.org>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F99585B.5060009@redhat.com>
	<20120426150259.GH3626@xvii.vinc17.org>
	<4F9966A9.3050702@redhat.com>
	<87r4vafogz.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <87r4vafogz.fsf@windlord.stanford.edu>
X-Mailer-Info: http://www.vinc17.net/mutt/
User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.41.242.187
Cc: bug-gnulib <bug-gnulib@gnu.org>, autoconf@gnu.org,
	Eric Blake <eblake@redhat.com>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Apr 2012 15:16:52 -0000

On 2012-04-26 09:27:08 -0700, Russ Allbery wrote:
> I've done the experiment from time to time of supporting -ansi or
> --std=3Dc99, but even for small code bases I consider it the kind of th=
ing
> that one does as a hobby or out of curiosity.  It's not a very good way=
 to
> actually get work done and write code that is portable on a practical
> level (meaning that people on multiple UNIX platforms can just run
> ./configure && make).

In MPFR, we use that together with -pedantic-errors mainly for testing
purpose, to ensure that MPFR still builds on a C90 or C99 platform,
e.g. all non-portable extensions that we use should be optional.
And conversely, we do not want to require -ansi or --std=3Dc99, because
extensions are useful for efficiency or for some special features
(e.g. logging).

--=20
Vincent Lef=E8vre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


From MAILER-DAEMON Fri Apr 27 17:33:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SNsmz-0005KN-Pv
	for mharc-autoconf@gnu.org; Fri, 27 Apr 2012 17:33:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53033)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1SNsmw-0005JX-5V
	for autoconf@gnu.org; Fri, 27 Apr 2012 17:33:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1SNsmu-0005kQ-4I
	for autoconf@gnu.org; Fri, 27 Apr 2012 17:33:13 -0400
Received: from mail-we0-f169.google.com ([74.125.82.169]:60064)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>)
	id 1SNsmp-0005ip-Rz; Fri, 27 Apr 2012 17:33:08 -0400
Received: by werj55 with SMTP id j55so921845wer.0
	for <multiple recipients>; Fri, 27 Apr 2012 14:33:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:user-agent:mime-version:to:subject
	:x-enigmail-version:content-type;
	bh=D+Cexu+JZLdmL+vljEboyCjQ9FdQHKlhTuLeoQJ4yNM=;
	b=grY8qffbuhmEGiL8wVsKQc7Y4yanRovWzWWU8isW0rbRccRhcDT8o/AoXq+S42K9J+
	wKZo7F3OrApXtUN/f3PgG9qLLRpM92HMq/qDCoLh/1ByhEdZ0xV4uiT7ciRRU7ZyRVdi
	ItLiHvvcUekC6vrHjrT26tFi2fiXAa7aCyjh09ggqHKVrhYqKFsqlvOm9bTv/mNqYQN1
	5LcCXavzzujd5X/xGPbfSC+oGKNfmcdXcxA0PCpuZh2GcoLjmxe3Qi0Q1UQZWeAEWGu3
	rkN/JR5V9Uu00jx34PfeS3xgV3M5wrSuzW8+VHsWXOojVcgyCurlWa/Ox75OD93acEi8
	HlGw==
Received: by 10.216.137.22 with SMTP id x22mr8986193wei.69.1335562385070;
	Fri, 27 Apr 2012 14:33:05 -0700 (PDT)
Received: from [10.0.0.1] (242.91.broadband5.iol.cz. [88.100.91.242])
	by mx.google.com with ESMTPS id ff9sm7451256wib.2.2012.04.27.14.33.02
	(version=SSLv3 cipher=OTHER); Fri, 27 Apr 2012 14:33:03 -0700 (PDT)
Message-ID: <4F9B108C.7050608@gmail.com>
Date: Fri, 27 Apr 2012 23:33:00 +0200
From: =?UTF-8?B?VsOhY2xhdiBaZW1hbg==?= <vhaisman@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120410 Thunderbird/11.0.1
MIME-Version: 1.0
To: libtool@gnu.org, autoconf@gnu.org
Subject: FYI: Solaris Studio compiler on Linux and PIC support in C++
X-Enigmail-Version: 1.4.1
Content-Type: multipart/mixed; boundary="------------060205010205050802090602"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.169
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Apr 2012 21:33:15 -0000

This is a multi-part message in MIME format.
--------------060205010205050802090602
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi.

I am having getting log4cplus compile with Solaris Studio 12.3 compiler
using Libtool 2.4.2, Autoconf 2.69 and Automake 1.12. The problems I am
having is that despite configuration with --with-pic no -KPIC or -fPIC
option is being passed to the compiler.

(...some time passes...)

I am not sure whose bug is this anymore. I have reduced the problem to
the -v option that I was passing to the compiler, which was itself added
by detection by configure.in. First the output configure script shows
the problem:

checking for /opt/solarisstudio12.3/bin/cc option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.3/bin/cc PIC flag -KPIC -DPIC works... yes
checking if /opt/solarisstudio12.3/bin/cc static flag -Bstatic works... yes
checking if /opt/solarisstudio12.3/bin/cc supports -c -o file.o... yes
checking if /opt/solarisstudio12.3/bin/cc supports -c -o file.o...
(cached) yes
checking whether the /opt/solarisstudio12.3/bin/cc linker (/usr/bin/ld
-m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/solarisstudio12.3/bin/CC -E
checking whether the /opt/solarisstudio12.3/bin/CC linker (/usr/bin/ld
-m elf_x86_64) supports shared libraries... yes
checking for /opt/solarisstudio12.3/bin/CC option to produce PIC...
-KPIC -DPIC
checking if /opt/solarisstudio12.3/bin/CC PIC flag -KPIC -DPIC works... no
checking if /opt/solarisstudio12.3/bin/CC static flag -Bstatic works... no
checking if /opt/solarisstudio12.3/bin/CC supports -c -o file.o... no
checking if /opt/solarisstudio12.3/bin/CC supports -c -o file.o...
(cached) no
checking whether the /opt/solarisstudio12.3/bin/CC linker (/usr/bin/ld
-m elf_x86_64) supports shared libraries... yes


As you can see above, for C compiler, the PIC support is detected fine.
But for C++ compiler it says no. If I remove the -v option detection and
the option is not present on the command line then PIC supports gets
correctly detected for C++ compiler as well. Here is the interesting
part from config.log showing the "result: no" (full log is attached):

configure:17042: checking for /opt/solarisstudio12.3/bin/CC option to
produce PIC
configure:17049: result: -KPIC -DPIC
configure:17057: checking if /opt/solarisstudio12.3/bin/CC PIC flag
-KPIC -DPIC works
configure:17075: /opt/solarisstudio12.3/bin/CC -c
-L/lib/x86_64-linux-gnu/ -L/usr/lib/x86_64-linux-gnu/ -mt=yes -O -v
-library=stlport4 -library=Crun   -D_REENTRANT -KPIC -DPIC -DPIC
conftest.cpp >&5
### CC: Note: NLSPATH =
/opt/solarisstudio12.3/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/solarisstudio12.3/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
###     command line files and options (expanded):
### -c -L/lib/x86_64-linux-gnu/ -L/usr/lib/x86_64-linux-gnu/ -mt=yes -O3
-v -library=Crun,stlport4 -D_REENTRANT -xcode=pic32 -DPIC -DPIC conftest.cpp
/opt/solarisstudio12.3/prod/bin/ccfe -xarch=amd64 -D__SUNPRO_CC=0x5120
-D__unix -D__unix__ -Dlinux -D__linux -D__linux__ -D__gnu__linux__
"-D__builtin_expect(e,x)=e" -D__x86_64 -D__x86_64__ -D__amd64 -D__amd
64__ -D_LP64 -D__LP64__ -D__BUILTIN_VA_STRUCT -Dunix -D_REENTRANT
-D__SUN_PREFETCH -D__SUNPRO_CC_COMPAT=5 -I-xbuiltin
-I/opt/solarisstudio12.3/prod/lib/compilers/rtlibs/usr/include
-I/opt/solarisstudio12.3/p
rod/include/CC/stlport4 -I/opt/solarisstudio12.3/prod/include/CC
-I/opt/solarisstudio12.3/prod/include/cc -D_REENTRANT -DPIC -DPIC -ptf
/tmp/ccfe.1335561892.25089.04.%1.%2 -ptx /opt/solarisstudio12.3/prod/bi
n/CC -ptk "-c -mt=yes -O3 -v -library=stlport4 -library=Crun
-D_REENTRANT -xcode=pic32 -DPIC -DPIC " -compat=5
-instlib=/opt/solarisstudio12.3/prod/lib/stlport4/amd64/libstlport.a
-xdbggen=no%stabs+dwarf2+us
edonly -xF=%none -xbuiltin=%default -pic -xldscope=global -xivdep=loop
-xdepend -O3 conftest.cpp -o /tmp/ccfe.1335561892.25089.01.ir -s
/tmp/ccfe.1335561892.25089.02.sd 2> /tmp/ccfe.1335561892.25089.03.err
/opt/solarisstudio12.3/prod/bin/iropt -Qy -O3 -fstore -xarch=sse2 -m64
-xchip=generic -xcache=generic -fsimple=0 -fstore -depend -mt -k
-xbuiltin=%default -I -xprefetch=auto,explicit -xprefetch_level=1 -xpre
fetch_auto_type=no%indirect_array_access -xvector=simd -F -o
/tmp/iropt.1335561892.25089.05.ir -is /tmp/ccfe.1335561892.25089.02.sd
/tmp/ccfe.1335561892.25089.01.ir 2> /tmp/iropt.1335561892.25089.06.err
rm /tmp/ccfe.1335561892.25089.01.ir
/opt/solarisstudio12.3/prod/bin/ir2hf -Qy -O3 -xbuiltin=%default -m64
/tmp/iropt.1335561892.25089.05.ir /tmp/ccfe.1335561892.25089.02.sd
/tmp/ir2hf.1335561892.25089.07.hf
rm /tmp/ccfe.1335561892.25089.02.sd
rm /tmp/ccfe.1335561892.25089.03.err
rm /tmp/iropt.1335561892.25089.05.ir
rm /tmp/iropt.1335561892.25089.06.err
/opt/solarisstudio12.3/prod/bin/ube -Qy -verbose -iropt -O3 -fstore
-comdat -m64 -xarch=sse2 -xchip=generic -xcache=generic -fsimple=0 -ZW
-fstore -PIC -xbuiltin=%default -xprefetch=auto,explicit -xprefetch_
level=1 -xthreadvar=dynamic -mt -fbe /opt/solarisstudio12.3/prod/bin/fbe
-ipo conftest.o -S /tmp/ube.1335561892.25089.08.s
/tmp/ir2hf.1335561892.25089.07.hf
rm /tmp/ir2hf.1335561892.25089.07.hf
/opt/solarisstudio12.3/prod/bin/fbe -Qy -xarch=amd64 -xchip=generic
-warn=%none -o conftest.o /tmp/ube.1335561892.25089.08.s
rm /tmp/ube.1335561892.25089.08.s
configure:17079: $? = 0
configure:17092: result: no


-- 
VZ



--------------060205010205050802090602
Content-Type: application/x-bzip;
 name="config.log.bad.txt.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="config.log.bad.txt.bz2"

QlpoOTFBWSZTWdWklC0A1ED/gH+2MgB///////////////5gUy98YDiPvl76UvbUUpFEK3wA
e+AKLvgpIBSqD6uM3GYiCq+AAAAWQhBy0ERRFwz0e87t2e7sd69a60o9e8WAbe4pwxuQ755y
vvGH3rhuN5U2yS91iZEKAoTWegAGqAoUEinQYtFFsFFCQQqiiDRlrKVFJApUqAoRBFIFUiA2
1JCQQhVU4gylI2jDQKqogJEqpUFMMgIIFNMJo0Jop+mqbCnqbUZpPU9Gpo9EYGUGgBiaNPUA
RPTCFUpqQ0AAAAAAA0AAAAAAAAhT//elVVNGgGjIDQGgyaAGRoAAAGEAAAADPUqTSMqT1HqN
NDQA0A0A0AAAAAAAAAAmqSIEGhDRMSY0jIk9pMTJtU8mp6jTyRozUyYQMnqPU9QBoIkhAgBA
KbQjJoTJlGNQTMmmqbxKNPRij1HpP1TEeUMmR3RxEAk9AQFAE+Q/Yfo04N9acv1fdXrZQ3Oo
wsgRB+/wA7HDhllmZmZk/cR+AjuS+gHO5yqWpE+1BvuoVn5IFtji/6cE/zjwixkgJAYH8BFu
qicETI0RO44S20/37cig7kO2XeJu2CEf0IlkG8Bdqif5yyH8d6Wbv/rsF8o0/qlGAVU99ONw
BIIArhZERBUbqLt+xVxwn6UxxL0IAx1jXfKgz+1RUmTT6ONR/ZCQPXR+4CepBycR+3Gl9Jbi
TeE0dTDMzIWRmXMITOz4+inwSVuFC2qgZlKlEsdSbkRE05WjIcx6mf+Ejm5Mk71CqbHWvIrv
2/79TSmulGbHZ/5otNLfcZbY3NVhUbTNk0uV5Zzztnau/Hba88r8zu92IxogEaYb0d+rsV/Q
qsq0VWVeZVsF3LozNyasY3w7Szs3UJ3KFVQq0sNmAve5YgdogIQL9VC5ef93502W786bLd+d
Ow7bvzpst3502W786dh23fnTZbvzpst3502W786dts+dPKJuru0SWSfkSUSdJJJN1d3V3rZm
ZmQepVGKqIVRKq+3cx0hcMG0evP11YYhI72WHH6lMbvTo29e+x4IHS90RclK7hmvBJ2bU39X
z3PgNK00TJOyMp8U98hghHfQALjqbwysb3azooVURGZUA28WvdJ4+v7bbbbbbbbbbbbbbbbb
bbbYAAAAAAAAAAAAAAAANttttttttttttttuO1lnEst6SWW+gSCGoi0ieWQHw3e77vpyPSH3
v/ZJwWIfc/L8n862X/i+ha2X2/q2NlzwfZFXE+k1UWALoEBAs8CrcCBn7kDJzmSlcfHJd2+t
8d3vFg7C3F/QfACGUIqAa+8K4//wLQir9lq/sS/b9ZG6Xz8JfT9zR8V/Bqr+/9/FJFoXvgv2
HuEOQn5iD8TQdFD5Ng1wLytZPtb0gWJsGwGr+iblYO5R+vp9WWNwvxb51w+nn0J+IwrL/lmG
Ksl8vy/ckfwJe8EE/UPsII+kEC/k/ECBuAIHw/F8nxt+jnBZoeG8HWAAQ+Y7ff9yIv0+p7uv
wP5/sZAbCyM/mHZRZwpL+tcV93qn4dKtLZ9m+iu26379OCX3kOP2JZE+v7tDp/StYMjJ0/JV
RD6xFyQ1/nEXxvHFmM2VvrbJh+bjI2pH4pHZI2kbSMkc6R+ORkj8sjeRvI4SO2/FkrLM8JGX
vkdv5pHOXDCp3CLmIvIRfcbHY/FE7b0kkCKyLCsRllWFYT8QpeyotpH4ZGpRkjLvkd3oS4SP
dI2pGoi8duHjr7M9R5kRPERf0aukNkU9iIVXKvtceyR4yMkeaXXvr2VnUjtdrKR/2/tkeMjJ
GlHW3vbI7qR9qR22FOG/P3omvIUbEAX5fQi2gjeigBZbPO1Inr7JcE2p8kk2YwAgBRgEy9mn
tQPmmaRXhR449iB5omvG/+rv70TAdBF+EjJH5675mZSymGY561wkeSivAFgISk5ILw/WIuBP
UE1uwAm8NhkgJAYsgTAV3HvRJxLQ+zprv0AHNd0IIvMRZbI79uiJETcIsvibZb++3t64ozMi
YizJc+3pw9kjUjF80zMpZTDMZnCRkjJHtkcBPry5yNyjnzpHGR4yMkeV0S/VI9MjukdonPCP
75GeqRlI8Ot2v3iL/jw/w+ueL9X4KBSesPcPsRPssgpK9CU2zIs1t9GrZ98j6pHCR8EvcliX
kQQhBG8ghCCL3XFYwT8rYpMrEpLSkysSktIktwQwSW4IYJLcEMEluCGCS3BDBJbghgktwQwS
W4IYJLcEMEluCGCS3BDBJbghgktwQwSW4IYJLcEMEluCGCS3BDBJbghgktwQwSW4IYJLcEME
luCGCS3BDBJbghgktwQwSW4IYJLcEMEluCGCS3BDBJbghgktwQwSW4IYJLcEMEluCGCS3BDB
JbghgktwQwSW4IYJLcEMEluCGCS3BDBJbghgktwQwSW4IYJLcEMEluCGCS3BDBJbghgktwQw
SW4IYJLcEMEluCGCS3BDBJbghgktwQz9fHAAAAAAAE687AAAAAAAAAAAAAAAAAAAAAAAAAAA
AHU924WpalqWpalqWpalqWpalqWpalqWpalqWpalqWpalqWpalqWpalqWpalqWpalqWpalqW
palqWpalqWpalqWpalqWpalqWpbjjcOONwEdWAAAAANt0/KAAAAAAAAAAAAAAAAAAAAAAAAb
bbbbbbbbbbbbd/GJ3XycXWew8tltnxIPDwJLbh7v9B5urzef29XUrKvvu8OQyK6rMVss0WtQ
7tYHcBk5hs6uzs5urq02aadm7fDdWzGm7TTk4dHVpyc2nR0G7ds2EC55qHaR6xDgAeh+8+3x
8RFgi+SJlf/LT0ibP3i/LX+zCdcfj1RPnRIov8EVPjAHXu/6bfh255e9E+XEJDIBMqUOM/0u
ZST6bWMzDHPItln3a8ieXzB2faMYcaey7uA47lT7ZJIA4uGgC/fgzIUD0aC8h/GhdDn+iocD
zsUAD3VxN9AiXFAPf+Ju5YREeXvzFR6dcGeuZ/bmGDbeNKv+d9XZ/KcSEEhNMtYwHu9GsH1H
93rACKid8+G6Enziva9UTcczDVNNeyA8COxuHavvQkEuu5vevciFRwgRLtNal+2cUTJsVgdV
vlp/RYugCf0QztlOlFuHDn+DJJPhb2iHFA+i2mtbW5qDvMyoB85utT5w+u9hv97kxBtkjZ84
AH6RFsOWeQ2ADB/q+ZEyQXS6hSC/X/st4/lxPu8U9lzvyAbdm6J6utvUfaPiZy45on1oU41w
W6IPsQNrXP0+zMPZHlx6lhQ/pRNccPuP2W6B1cZSlF5f8xsHmep4/DuBMz7RoF/kiFoC8u/q
O7jRaqlpiJXI33EuXpDqJAgmRmPfd6d4t5XmbdxuglsMwRMEQ9W8YwBGYI3jm1HA7kF/y6ss
SMxL46wQLCraa9DKjeIlGh4me1uwvVpxKy93Kr99FZXxfljIq902mKJCv6TIQvF3DydRq5eE
47ZVPDYqTY0GqnwISCfED6bBgRv8iG7363fAOiDaBtOv3HRTTQhfLegWPfrv/s8/C0+km7Id
NZkhdVQKewCfZUB5kLk55253EoGGC87R0xiDw3WeQgQJVVyhlPAnGFv16Gp8O+G4yz3EYSEY
TciXhbhECr3t9Vg8Sz74W84Zap3Wwbadf+1sFHwRNUSiKTIkh4HHunwccHqbH5kOYNInANKA
e8zHXBkZVZAy5kYCczhv51u75M7a8ODvOX5s7qiegviexPsKGwvuLp+f9/8xyqeX5+/l0yXM
QuSrSrFXp1V0y9Mjol2yMSxA0elf9D+d9/iRIkhC6gpc+J/eIWqCj/MpKyVhG1MkphKr2TbW
MzFKUpSlKUpSlKFKUpSlKWlpSlKUpSlKUpSlKUpSlKUpZGRkZGSRAkQJECRAkQJECRP8kkSL
/CHLDUP5K9H+QgUiLhxX/hT3QdMK/qpG1EempHtkZSONoh8pJJGo/WOfc2vDt7+fwLTr4dGn
m7X3nfj+HF8zqSifP2+5xiq+Kce6sfKvp07+G+PIjQoqid5FWm5h7ma+O1Gw4Vb4Rt2utwIF
ERE5Ozr1R2eVeHvLwX4n6MELzKw8W27tT+XycO2L5Ab15tOHu/G1sbb+e3SvyFgnn7h4XuCB
An1iHwoGWoB3RszCZxshYIxUxUWhfx43UPn1Posuf3rcuwt/2LxVdkjYjjx0kvd61b+Gbrvv
WDnYl8+vP4LUfVH8/d9v8C8HxK8fk9Xvfmvl/psy5nLT9ea5Ef0d1tnhP0yOdf6PyX1WmgCH
oIlihIQKf2AcQPb4/l7xFx+Ii5gXTy9pPeidwJcQ64+J1959afcCLqAuQi44/eDw+6UAwUT8
R2z3/7USH3ZAwiiSvCRgJXdhUW1iLMUZn1WrRSjdLJH7cgv3V1miLdKyQ6/6tSP1JYHiSxVX
rSyqi+n0oS8ktoir3peNOEKXxJb1PKyC8spayEq6lYZZVtzSpEANoCKYn5t6UAjp318n+7Xe
DrhFFzUyRnglqR6UsqR+iRkkQPsDT9XCEF/d9nRGoH+82H+O1ByEX6BF7+F/RfVfdI2yI+6R
qzLIj7fKqd36/s/azuj+4/Bv/XHIkkLKSSSSw9Nm73dwsrAceVJxKg3Hu32ORJIWUkkklh6b
N3u7hZWA48qTiVBuPdvsciSQspJJJLD02bvd3CysBx5UnEqDce7fY5EkhZSSSSWHps3e7uFl
YDjypOJUG492+xyJJCykkkksPTZu93cLKwHHlScSoNx7t9jkSSFlJJJJYemzd7u4WVgOPKk4
lQbj3b7HIkkLKSSSSw9Nm73dwsrAceVJfAqDce7fY5EkhZSSSSWHps3e7uFlYDjyTiVBuPdv
sciSQspJJJLD02bvd3CysBx5Ul2Tsm6kkLKSSSQjx4I9Q7FseBtzt3N7uF67SHY82+xyJJCy
kkkksPTZu93cLKwHHlScSoNx7t9jkSSFlJJJJYemzd7u4WVgOPKk4lQbj3b7HIkkLKSSSSw9
Nm73dwsrAceVJfApdmdySQspJJJCPHgj1Q43A2+7dze7heu0h2PNvsciSQspJJJLD02bvd3C
ysBx5UnEpdmdySQspJJJCPHgj2lDjcDb7t3N7uF67SHY82+xyJJCykkkksPTZu93cLKwHHlS
cSoNx7t9jkSSFlJJJJYemzd7u4WVgOPKkayTA2+7dze7hdqptpLeyu5WgikkkkI8eCdzzBse
bfY5EkhZSSSSWHps3e7uFlYDjypOJUG492+xyJJCykkkksPTZu93cLKwHHlSBGCTO7tze7gO
sC5IEn3dub3cL71VXhZkgSnd25vdwoNsJd3dub3cL6uV0vZL6l+lpNLTSaWmk0tNJpaafieZ
Ql0u03LlCXS7Tcu3bCRLtNy5Ql0u03LlCXS7TcuUJdLtI0mmm9valut2k0tNJpaaTS00mlpp
NLTSaWmk0tNJpaaTS00mlppNLTSaWmk0tNJpaaTS00mlppNLTSaWmk0tNJpaablyhLpdpuXK
Eul2m5coS6XablyhLpdpuXKEul2m5coS6XablyhLpdpuXKEul2m5coS6XablyhLpdpuXKEul
2m5coS6XaRpKaRpKaRpaaTS00mlppNLTSaWmm9valut2k0tNJpaaTS00mlppvb2pbrdp91Lp
0ROkSu5VTuqS8KhdQl1lVdUTwiiWgsu/rlR+VLHsxH/GIxUnye3n4yM6yMojBQQSwIJVgiEg
fLtvbzv0uHzVd0rNGnd2oo1QQKtSKrNHhpWHlYl4agIFDUIdoJIIbEEHrpGSMkZI15e77X71
tzfDurSWyUQXyiBI3+QidUT6US6C4siYsWZXF8cJbVI8b7CXpR8PrSv4l+iFL5L1X3vREffi
PXfy5KvSR9JGEe2sqcZGKVZI8JL8n8UR/Rezu4/N13HlaV8FJdijJLJLJLEsS121x6+/8P1+
2I+kiyRlOPqz177ishK3z6mCRs3BFiAZYxglxLVbF4IuKmy8xIIQAYgh9gICG3EEHj4kI9R1
yeiq4+k9dTuNwIuD8+tu/YRKQx1Wt7kI6Z5Qlre92SOcJZIyVKy6pYTEtEtVv5pcYFyktJap
TXjEaUbSWJe0Ut6C7UP1omwppEF/V8e/NxQovQfA68sdEpLQD296XtsSrWVa1aqZitOoVaSP
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
--------------060205010205050802090602--


From MAILER-DAEMON Sat Apr 28 19:02:26 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOGeo-0002BJ-7W
	for mharc-autoconf@gnu.org; Sat, 28 Apr 2012 19:02:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51093)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOGem-0002BC-29
	for autoconf@gnu.org; Sat, 28 Apr 2012 19:02:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOGek-00040p-DS
	for autoconf@gnu.org; Sat, 28 Apr 2012 19:02:23 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:56349)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>)
	id 1SOGek-00040i-7n; Sat, 28 Apr 2012 19:02:22 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 770ED39E800F;
	Sat, 28 Apr 2012 16:02:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id vgsZAZt07kBg; Sat, 28 Apr 2012 16:02:19 -0700 (PDT)
Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net
	[71.189.109.235])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0ECBB39E8006;
	Sat, 28 Apr 2012 16:02:18 -0700 (PDT)
Message-ID: <4F9C76FC.2000001@cs.ucla.edu>
Date: Sat, 28 Apr 2012 16:02:20 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120411 Thunderbird/11.0.1
MIME-Version: 1.0
To: Vincent Lefevre <vincent@vinc17.net>, Eric Blake <eblake@redhat.com>, 
	autoconf@gnu.org, bug-gnulib <bug-gnulib@gnu.org>
Subject: Re: AC_C_NORETURN macro?
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
In-Reply-To: <20120426085422.GE3626@xvii.vinc17.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 28 Apr 2012 23:02:25 -0000

My experience with this in Gnulib is that
<stdnoreturn.h> is dubious due to its
problems with MSVC.  But perhaps Autoconf
could #define _Noreturn in <config.h>,
for compilers that do not already support it.

Gnulib already does this, but in a way that
is not Autoconfish, and it might make sense to
try to do it in a more Autoconfish way.  However,
I don't know how this would address the problem
of library headers using _Noreturn that are
intended to be used by other compilers (which I
recall is why Gnulib does it in the strange way
that it does).


From MAILER-DAEMON Sat Apr 28 22:00:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOJRQ-0002FO-1f
	for mharc-autoconf@gnu.org; Sat, 28 Apr 2012 22:00:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57240)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SOJRN-0002Ez-3d
	for autoconf@gnu.org; Sat, 28 Apr 2012 22:00:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SOJRK-0004EJ-RJ
	for autoconf@gnu.org; Sat, 28 Apr 2012 22:00:44 -0400
Received: from cs-smtp-1.stanford.edu ([171.64.64.25]:56128)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <blp@cs.stanford.edu>) id 1SOJRK-0004Dl-Kn
	for autoconf@gnu.org; Sat, 28 Apr 2012 22:00:42 -0400
Received: from [76.14.48.202] (helo=blp.benpfaff.org)
	by cs-smtp-1.Stanford.EDU with esmtpsa (TLSv1:AES128-SHA:128)
	(Exim 4.76) (envelope-from <blp@cs.stanford.edu>) id 1SOJRG-0002An-C7
	for autoconf@gnu.org; Sat, 28 Apr 2012 19:00:38 -0700
From: Ben Pfaff <blp@cs.stanford.edu>
To: autoconf@gnu.org
Subject: license of Makefile.in
Date: Sat, 28 Apr 2012 19:00:55 -0700
Message-ID: <87ipgj9u08.fsf@blp.benpfaff.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Scan-Signature: f69c4e6b4bf914f22ae37cd490358bf0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 171.64.64.25
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: blp@cs.stanford.edu
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 02:00:46 -0000

While packaging Autoconf 2.69 for Debian, I am trying to update
the copyright information in the package using the new Debian
copyright format here:
          http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

In the process, I'm looking at each file in Autoconf to
understand its licensing.  One file that has a confusing license
is Makefile.in.  It contains one license at the top, output by
Automake:

    # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    # 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
    # Inc.
    # This Makefile.in is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.

    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    # PARTICULAR PURPOSE.

with another license below it copied from Makefile.am:

    # Copyright (C) 1999-2004, 2006-2012 Free Software Foundation, Inc.

    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.

    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.

    # You should have received a copy of the GNU General Public License
    # along with this program.  If not, see <http://www.gnu.org/licenses/>.

My guess is that the overall license of Makefile.in is then the
conjunction of the two, that is, GPLv3+.  At any rate, the double
license is somewhat confusing, so I'd like to hear feedback in
case I'm wrong.

Thanks,

Ben.


From MAILER-DAEMON Sat Apr 28 22:50:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOKDG-0004Xr-Ga
	for mharc-autoconf@gnu.org; Sat, 28 Apr 2012 22:50:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44649)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOKDE-0004Xl-54
	for autoconf@gnu.org; Sat, 28 Apr 2012 22:50:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOKDB-0001Uc-Vn
	for autoconf@gnu.org; Sat, 28 Apr 2012 22:50:11 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:48454)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOKDB-0001Ry-Pv
	for autoconf@gnu.org; Sat, 28 Apr 2012 22:50:09 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 3E83739E800D;
	Sat, 28 Apr 2012 19:50:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ZtnbRw2T+Bsg; Sat, 28 Apr 2012 19:50:05 -0700 (PDT)
Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net
	[71.189.109.235])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8EBB039E8006;
	Sat, 28 Apr 2012 19:50:05 -0700 (PDT)
Message-ID: <4F9CAC60.1010704@cs.ucla.edu>
Date: Sat, 28 Apr 2012 19:50:08 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120411 Thunderbird/11.0.1
MIME-Version: 1.0
To: blp@cs.stanford.edu
Subject: Re: license of Makefile.in
References: <87ipgj9u08.fsf@blp.benpfaff.org>
In-Reply-To: <87ipgj9u08.fsf@blp.benpfaff.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 02:50:13 -0000

On 04/28/2012 07:00 PM, Ben Pfaff wrote:
> My guess is that the overall license of Makefile.in is then the
> conjunction of the two, that is, GPLv3+.

Yes, that's normal practice when multiple licenses are attached;
you have to obey them all, i.e., take their intersection.


From MAILER-DAEMON Sun Apr 29 02:01:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SONCf-0007Dz-P0
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 02:01:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58871)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1SONCc-0007Db-Qu
	for Autoconf@gnu.org; Sun, 29 Apr 2012 02:01:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1SONCb-0004EF-0Q
	for Autoconf@gnu.org; Sun, 29 Apr 2012 02:01:46 -0400
Received: from mx.meyering.net ([88.168.87.75]:55491)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>)
	id 1SONCa-0004E5-Q2; Sun, 29 Apr 2012 02:01:44 -0400
Received: from rho.meyering.net (localhost.localdomain [127.0.0.1])
	by rho.meyering.net (Acme Bit-Twister) with ESMTP id D31A260056;
	Sun, 29 Apr 2012 08:01:39 +0200 (CEST)
From: Jim Meyering <jim@meyering.net>
To: Eric Blake <eblake@redhat.com>
Subject: Re: [FYI] {master} refactor: use modern semantics of 'open'
In-Reply-To: <4F973668.1050405@redhat.com> (Eric Blake's message of "Tue, 24
	Apr 2012 17:25:28 -0600")
References: <4F9726E1.7050602@redhat.com>
	<877gx4sq1e.fsf@windlord.stanford.edu> <4F973256.6020801@redhat.com>
	<4F9734A1.5030601@gmail.com> <4F973668.1050405@redhat.com>
Date: Sun, 29 Apr 2012 08:01:39 +0200
Message-ID: <878vhfm5z0.fsf@rho.meyering.net>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 88.168.87.75
Cc: Russ Allbery <rra@stanford.edu>, Autoconf <Autoconf@gnu.org>,
	Stefano Lattarini <stefano.lattarini@gmail.com>,
	"automake-patches@gnu.org" <automake-patches@gnu.org>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 06:01:48 -0000

Eric Blake wrote:
...
>> If anything, this issue shows that the Automake::XFile module (and
>> other similar modules as well) should live in their own git
>> repository, which both Autoconf and Automake should use as a
>> submodule -- and which (for $DEITY's sake!), should be unit-tested.
>> Any volunteer?
>
> Alas, my perl-fu is weak enough that I'm not sure how good my
> unit-testing attempts would be.  But moving the files to a common
> repository seems doable (how about gnulib?).

Fine with me.


From MAILER-DAEMON Sun Apr 29 10:11:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOUqk-0007Az-F7
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 10:11:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59196)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOUqi-00079K-0M
	for autoconf@gnu.org; Sun, 29 Apr 2012 10:11:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOUqg-0005c7-DE
	for autoconf@gnu.org; Sun, 29 Apr 2012 10:11:39 -0400
Received: from mo-p00-ob.rzone.de ([81.169.146.161]:37505)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>)
	id 1SOUqd-0005bq-DM; Sun, 29 Apr 2012 10:11:35 -0400
X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRbvY44zMkpA==
X-RZG-CLASS-ID: mo00
Received: from linuix.haible.de
	(dslb-088-068-070-142.pools.arcor-ip.net [88.68.70.142])
	by smtp.strato.de (jorabe mo89) (RZmta 28.14 DYNA|AUTH)
	with ESMTPA id G01fc5o3TC6QI7 ; Sun, 29 Apr 2012 16:11:19 +0200 (CEST)
From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Bcc: bruno@haible.de
Subject: Re: AC_C_NORETURN macro?
Date: Sun, 29 Apr 2012 16:11:38 +0200
Message-ID: <1455312.oqp52tTLhT@linuix>
User-Agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )
In-Reply-To: <4F9C76FC.2000001@cs.ucla.edu>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F9C76FC.2000001@cs.ucla.edu>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 81.169.146.161
Cc: Eric Blake <eblake@redhat.com>, Paul Eggert <eggert@cs.ucla.edu>,
	Vincent Lefevre <vincent@vinc17.net>, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 14:11:41 -0000

Paul Eggert wrote:
> it might make sense to try to do it in a more Autoconfish way.

The reason why we do this with explicit #ifs that test for a compiler
brand, not in an "Autoconfish way", is that we use the result in .h
files that should be installable and, after installation, used by a
potentially different compiler. Simon's and my packages use this feature.
The best way to get this done correctly are cascades of explicit #ifs.

Bruno



From MAILER-DAEMON Sun Apr 29 10:19:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOUyS-00080d-42
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 10:19:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37424)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOUyO-000804-6B
	for autoconf@gnu.org; Sun, 29 Apr 2012 10:19:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOUyL-00004t-8A
	for autoconf@gnu.org; Sun, 29 Apr 2012 10:19:35 -0400
Received: from mo-p00-ob.rzone.de ([81.169.146.161]:38647)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>)
	id 1SOUyH-0008Ro-Uv; Sun, 29 Apr 2012 10:19:30 -0400
X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRbvY44zMkpA==
X-RZG-CLASS-ID: mo00
Received: from linuix.haible.de
	(dslb-088-068-070-142.pools.arcor-ip.net [88.68.70.142])
	by smtp.strato.de (joses mo2) (RZmta 28.13 DYNA|AUTH)
	with ESMTPA id Z06cd9o3T9rpfZ ; Sun, 29 Apr 2012 16:19:16 +0200 (CEST)
From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Bcc: bruno@haible.de
Subject: Re: AC_C_NORETURN macro?
Date: Sun, 29 Apr 2012 16:19:35 +0200
Message-ID: <1718724.Iug06CYecm@linuix>
User-Agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )
In-Reply-To: <20120426085422.GE3626@xvii.vinc17.org>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 81.169.146.161
Cc: Eric Blake <eblake@redhat.com>, autoconf@gnu.org,
	Vincent Lefevre <vincent@vinc17.net>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 14:19:38 -0000

Vincent Lefevre wrote:
> modules/snippet/_Noreturn references build-aux/snippet/_Noreturn.h,
> which is:
> 
> #ifndef _Noreturn
> # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
>       || 0x5110 <= __SUNPRO_C)
> #  define _Noreturn __attribute__ ((__noreturn__))
> # elif 1200 <= _MSC_VER
> #  define _Noreturn __declspec (noreturn)
> # else
> #  define _Noreturn
> # endif
> #endif
> 
> but I don't see how it can be correct on a non-GCC non-SunPro C11
> implementation: _Noreturn would get defined to nothing; the code
> would be valid, but the C11 _Noreturn function specifier would not
> be used.

If we get to know a different compiler which support _Noreturn but
does not have a working <stdnoreturn.h> file, we can add it to the
#ifs here.

> I had changed the MPFR code to:
> ...
> #if defined(MPFR_HAVE_NORETURN)
> /* _Noreturn is specified by ISO C11 (Section 6.7.4);
>    in GCC, it is supported as of version 4.7. */
> # define MPFR_NORETURN _Noreturn
> #elif __MPFR_GNUC(3,0) || __MPFR_ICC(8,1,0)
> # define MPFR_NORETURN __attribute__ ((noreturn))
> #else
> # define MPFR_NORETURN
> #endif
>
> I think that something like
> 
> #elif 1200 <= _MSC_VER
> # define MPFR_NORETURN __declspec (noreturn)
> 
> could be added.

Sure. What you do here is reasonable. However, for gnulib the goal is
different: In programs that use gnulib we don't want to have the user
(developer) to learn new set of macros, different from what ISO C or
POSIX specify. Rather, we want the user to be able to use *exactly*
the syntax that is specified in ISO C or POSIX. And it happens that
the task of defining a MPFR_NORETURN macro that works like 'noreturn'
is an easier task than to define a 'noreturn' macro. The reason is that
with MSVC, the compiler wants to see   __declspec (noreturn)  but this is
hardly possible if 'noreturn' is at the same time defined as a macro without
arguments.

Bruno



From MAILER-DAEMON Sun Apr 29 11:25:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOVzw-0005cV-Qw
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 11:25:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57071)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SOVzt-0005cN-T0
	for autoconf@gnu.org; Sun, 29 Apr 2012 11:25:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SOVzr-0005kL-O1
	for autoconf@gnu.org; Sun, 29 Apr 2012 11:25:13 -0400
Received: from vinc17.pck.nerim.net ([213.41.242.187]:51769
	helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>)
	id 1SOVzr-0005k2-EI; Sun, 29 Apr 2012 11:25:11 -0400
Received: by xvii.vinc17.org (Postfix, from userid 1000)
	id 48909310003; Sun, 29 Apr 2012 17:25:07 +0200 (CEST)
Date: Sun, 29 Apr 2012 17:25:07 +0200
From: Vincent Lefevre <vincent@vinc17.net>
To: Bruno Haible <bruno@clisp.org>
Subject: Re: AC_C_NORETURN macro?
Message-ID: <20120429152507.GA22994@xvii.vinc17.org>
Mail-Followup-To: Vincent Lefevre <vincent@vinc17.net>,
	Bruno Haible <bruno@clisp.org>, bug-gnulib@gnu.org,
	Paul Eggert <eggert@cs.ucla.edu>, Eric Blake <eblake@redhat.com>,
	autoconf@gnu.org
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F9C76FC.2000001@cs.ucla.edu> <1455312.oqp52tTLhT@linuix>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <1455312.oqp52tTLhT@linuix>
X-Mailer-Info: http://www.vinc17.net/mutt/
User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.41.242.187
Cc: Eric Blake <eblake@redhat.com>, Paul Eggert <eggert@cs.ucla.edu>,
	bug-gnulib@gnu.org, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 15:25:15 -0000

On 2012-04-29 16:11:38 +0200, Bruno Haible wrote:
> Paul Eggert wrote:
> > it might make sense to try to do it in a more Autoconfish way.
>=20
> The reason why we do this with explicit #ifs that test for a compiler
> brand, not in an "Autoconfish way", is that we use the result in .h
> files that should be installable and, after installation, used by a
> potentially different compiler. Simon's and my packages use this featur=
e.
> The best way to get this done correctly are cascades of explicit #ifs.

But there is a risk of clash if some application uses some library
with this gnulib feature and another library with different
conventions. I think that an installable <stdnoreturn.h> should
be done globally at the system level.

--=20
Vincent Lef=E8vre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


From MAILER-DAEMON Sun Apr 29 11:34:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOW9L-0007Q2-77
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 11:34:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33998)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SOW9I-0007Pw-TV
	for autoconf@gnu.org; Sun, 29 Apr 2012 11:34:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vincent@vinc17.net>) id 1SOW9E-0000Rb-FD
	for autoconf@gnu.org; Sun, 29 Apr 2012 11:34:56 -0400
Received: from vinc17.pck.nerim.net ([213.41.242.187]:51888
	helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vincent@vinc17.net>)
	id 1SOW9E-0000QJ-55; Sun, 29 Apr 2012 11:34:52 -0400
Received: by xvii.vinc17.org (Postfix, from userid 1000)
	id 04FFE310003; Sun, 29 Apr 2012 17:34:49 +0200 (CEST)
Date: Sun, 29 Apr 2012 17:34:49 +0200
From: Vincent Lefevre <vincent@vinc17.net>
To: Bruno Haible <bruno@clisp.org>
Subject: Re: AC_C_NORETURN macro?
Message-ID: <20120429153449.GR3626@xvii.vinc17.org>
Mail-Followup-To: Vincent Lefevre <vincent@vinc17.net>,
	Bruno Haible <bruno@clisp.org>, bug-gnulib@gnu.org,
	Eric Blake <eblake@redhat.com>, autoconf@gnu.org
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org> <1718724.Iug06CYecm@linuix>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <1718724.Iug06CYecm@linuix>
X-Mailer-Info: http://www.vinc17.net/mutt/
User-Agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.41.242.187
Cc: Eric Blake <eblake@redhat.com>, autoconf@gnu.org, bug-gnulib@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 15:34:58 -0000

On 2012-04-29 16:19:35 +0200, Bruno Haible wrote:
> Vincent Lefevre wrote:
> > modules/snippet/_Noreturn references build-aux/snippet/_Noreturn.h,
> > which is:
> >=20
> > #ifndef _Noreturn
> > # if (3 <=3D __GNUC__ || (__GNUC__ =3D=3D 2 && 8 <=3D __GNUC_MINOR__)=
 \
> >       || 0x5110 <=3D __SUNPRO_C)
> > #  define _Noreturn __attribute__ ((__noreturn__))
> > # elif 1200 <=3D _MSC_VER
> > #  define _Noreturn __declspec (noreturn)
> > # else
> > #  define _Noreturn
> > # endif
> > #endif
> >=20
> > but I don't see how it can be correct on a non-GCC non-SunPro C11
> > implementation: _Noreturn would get defined to nothing; the code
> > would be valid, but the C11 _Noreturn function specifier would not
> > be used.
>=20
> If we get to know a different compiler which support _Noreturn but
> does not have a working <stdnoreturn.h> file, we can add it to the
> #ifs here.

But I don't like the fact that you assume by default that compilers
are non-conforming. However the C committed is partly in fault by not
providing a macro (e.g. __STDC_NORETURN__) to check whether _Noreturn
is supported with a #if (for the C99 -> C11 transition).

--=20
Vincent Lef=E8vre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


From MAILER-DAEMON Sun Apr 29 12:28:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOWyk-0000QX-8B
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 12:28:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57437)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOWyh-0000NX-Il
	for autoconf@gnu.org; Sun, 29 Apr 2012 12:28:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOWyf-0008Qy-JR
	for autoconf@gnu.org; Sun, 29 Apr 2012 12:28:03 -0400
Received: from mo-p00-ob.rzone.de ([81.169.146.162]:45115)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>)
	id 1SOWyc-0008QO-Bv; Sun, 29 Apr 2012 12:27:58 -0400
X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRbvY44zMkpA==
X-RZG-CLASS-ID: mo00
Received: from linuix.haible.de
	(dslb-088-068-070-142.pools.arcor-ip.net [88.68.70.142])
	by smtp.strato.de (joses mo93) (RZmta 28.13 DYNA|AUTH)
	with ESMTPA id 607ab5o3TGAmx5 ; Sun, 29 Apr 2012 18:27:44 +0200 (CEST)
From: Bruno Haible <bruno@clisp.org>
To: Vincent Lefevre <vincent@vinc17.net>
Bcc: bruno@haible.de
Subject: Re: AC_C_NORETURN macro?
Date: Sun, 29 Apr 2012 18:28:03 +0200
Message-ID: <1403466.bj5dMyfdQo@linuix>
User-Agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )
In-Reply-To: <20120429152507.GA22994@xvii.vinc17.org>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<1455312.oqp52tTLhT@linuix>
	<20120429152507.GA22994@xvii.vinc17.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 81.169.146.162
Cc: Eric Blake <eblake@redhat.com>, Paul Eggert <eggert@cs.ucla.edu>,
	bug-gnulib@gnu.org, autoconf@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 16:28:04 -0000

Vincent Lefevre wrote:
> > we use the result in .h
> > files that should be installable and, after installation, used by a
> > potentially different compiler. Simon's and my packages use this feature.
> > The best way to get this done correctly are cascades of explicit #ifs.
> 
> But there is a risk of clash if some application uses some library
> with this gnulib feature and another library with different
> conventions. I think that an installable <stdnoreturn.h> should
> be done globally at the system level.

In Simon's and my packages, we rename system headers, i.e. we should not
install <stdnoreturn.h> but rather <unistring/stdnoreturn.h> or similar.
This avoids clashes at the package system level (we won't install
/usr/include/stdnoreturn.h).

And clashes regarding the 'noreturn' macro? I don't see any. In a compilation
unit, the last definition matters, and since both definitions (from gnulib
and from the other package) are supposedly correct, what is the problem?

Bruno



From MAILER-DAEMON Sun Apr 29 12:56:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOXPv-000369-MB
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 12:56:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46429)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOXPs-00034I-NE
	for autoconf@gnu.org; Sun, 29 Apr 2012 12:56:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOXPq-0000sv-Lz
	for autoconf@gnu.org; Sun, 29 Apr 2012 12:56:08 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:38226)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>)
	id 1SOXPq-0000sj-DO; Sun, 29 Apr 2012 12:56:06 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id CA819A60006;
	Sun, 29 Apr 2012 09:56:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id IXX-Dbgd1TEj; Sun, 29 Apr 2012 09:56:01 -0700 (PDT)
Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net
	[71.189.109.235])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 22333A60004;
	Sun, 29 Apr 2012 09:56:01 -0700 (PDT)
Message-ID: <4F9D72A3.3040006@cs.ucla.edu>
Date: Sun, 29 Apr 2012 09:56:03 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120411 Thunderbird/11.0.1
MIME-Version: 1.0
To: Vincent Lefevre <vincent@vinc17.net>, Bruno Haible <bruno@clisp.org>, 
	bug-gnulib@gnu.org, Eric Blake <eblake@redhat.com>, autoconf@gnu.org
Subject: Re: AC_C_NORETURN macro?
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<4F982533.2060003@redhat.com>
	<20120426085422.GE3626@xvii.vinc17.org> <1718724.Iug06CYecm@linuix>
	<20120429153449.GR3626@xvii.vinc17.org>
In-Reply-To: <20120429153449.GR3626@xvii.vinc17.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 16:56:10 -0000

On 04/29/2012 08:34 AM, Vincent Lefevre wrote:
> I don't like the fact that you assume by default that compilers
> are non-conforming

Nor do I.  How about the following improvement to the heuristic?
It is just a heuristic so we can't do a perfect job, but the
following should be better than what we have now:

---
  ChangeLog                     |   10 ++++++++++
  build-aux/snippet/_Noreturn.h |    2 +-
  m4/gnulib-common.m4           |    2 +-
  3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b81a470..83ad2bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+	_Noreturn: future-proof non-GNU and non-MSVC compilers
+	* build-aux/snippet/_Noreturn.h (_Noreturn):
+	* m4/gnulib-common.m4 (gl_COMMON_BODY):
+	Do not define _Noreturn if __STDC_VERSION__ indicates this is
+	C11 or later.  This is more likely to work with random future C
+	compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
+	<http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
+
  2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
  	bootstrap: support Automake-NG in $buildreq
diff --git a/build-aux/snippet/_Noreturn.h b/build-aux/snippet/_Noreturn.h
index 1a7b4da..c44ad89 100644
--- a/build-aux/snippet/_Noreturn.h
+++ b/build-aux/snippet/_Noreturn.h
@@ -1,4 +1,4 @@
-#ifndef _Noreturn
+#if !defined _Noreturn && __STDC_VERSION__ < 201112
  # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
        || 0x5110 <= __SUNPRO_C)
  #  define _Noreturn __attribute__ ((__noreturn__))
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index ae4d254..ab3c43d 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -14,7 +14,7 @@ AC_DEFUN([gl_COMMON], [
  AC_DEFUN([gl_COMMON_BODY], [
    AH_VERBATIM([_Noreturn],
  [/* The _Noreturn keyword of C11.  */
-#ifndef _Noreturn
+#if !defined _Noreturn && __STDC_VERSION__ < 201112
  # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
        || 0x5110 <= __SUNPRO_C)
  #  define _Noreturn __attribute__ ((__noreturn__))
-- 
1.7.6.5



From MAILER-DAEMON Sun Apr 29 12:56:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOXQY-0003M7-1J
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 12:56:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46561)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOXQW-0003M0-7e
	for autoconf@gnu.org; Sun, 29 Apr 2012 12:56:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOXQU-0000xK-B2
	for autoconf@gnu.org; Sun, 29 Apr 2012 12:56:47 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:38262)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>)
	id 1SOXQU-0000xF-5M; Sun, 29 Apr 2012 12:56:46 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 541E6A60007;
	Sun, 29 Apr 2012 09:56:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 77TeAGzew5iA; Sun, 29 Apr 2012 09:56:44 -0700 (PDT)
Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net
	[71.189.109.235])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C12A1A60006;
	Sun, 29 Apr 2012 09:56:43 -0700 (PDT)
Message-ID: <4F9D72D2.8040300@cs.ucla.edu>
Date: Sun, 29 Apr 2012 09:56:50 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120411 Thunderbird/11.0.1
MIME-Version: 1.0
To: Bruno Haible <bruno@clisp.org>
Subject: Re: AC_C_NORETURN macro?
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<20120426085422.GE3626@xvii.vinc17.org>
	<4F9C76FC.2000001@cs.ucla.edu> <1455312.oqp52tTLhT@linuix>
In-Reply-To: <1455312.oqp52tTLhT@linuix>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: Vincent Lefevre <vincent@vinc17.net>, autoconf@gnu.org, bug-gnulib@gnu.org,
	Eric Blake <eblake@redhat.com>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 16:56:49 -0000

On 04/29/2012 07:11 AM, Bruno Haible wrote:
> The reason why we do this with explicit #ifs that test for a compiler
> brand, not in an "Autoconfish way", is that we use the result in .h
> files that should be installable

That makes sense for the definition of _Noreturn in
build-aux/snippet/_Noreturn.h, since that file is
copied into installable .h files.  But it makes less
sense for the common Autoconf situation where _Noreturn
is defined in <config.h>; such definitions are not intended
to be copied into installable .h files, and it might make
sense for Autoconf to support that.


From MAILER-DAEMON Sun Apr 29 18:36:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOcix-0000gZ-0i
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 18:36:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41147)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOciu-0000dY-4C
	for autoconf@gnu.org; Sun, 29 Apr 2012 18:36:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOcis-0003G2-Jd
	for autoconf@gnu.org; Sun, 29 Apr 2012 18:36:07 -0400
Received: from mo-p00-ob.rzone.de ([81.169.146.160]:41166)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>)
	id 1SOcip-0003Fh-Ra; Sun, 29 Apr 2012 18:36:03 -0400
X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRbvY44zMkpA==
X-RZG-CLASS-ID: mo00
Received: from linuix.haible.de
	(dslb-088-068-070-142.pools.arcor-ip.net [88.68.70.142])
	by smtp.strato.de (jored mo39) (RZmta 28.14 DYNA|AUTH)
	with ESMTPA id q0220eo3TKZ8X2 ; Mon, 30 Apr 2012 00:24:39 +0200 (CEST)
From: Bruno Haible <bruno@clisp.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Bcc: bruno@haible.de
Subject: Re: AC_C_NORETURN macro?
Date: Mon, 30 Apr 2012 00:24:57 +0200
Message-ID: <3624293.c27TOAar2P@linuix>
User-Agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )
In-Reply-To: <4F9D72A3.3040006@cs.ucla.edu>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<20120429153449.GR3626@xvii.vinc17.org>
	<4F9D72A3.3040006@cs.ucla.edu>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 81.169.146.160
Cc: bug-gnulib@gnu.org, autoconf@gnu.org, Vincent Lefevre <vincent@vinc17.net>,
	Eric Blake <eblake@redhat.com>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 22:36:09 -0000

Paul Eggert asks:
> How about the following improvement to the heuristic?

Looks good to me.

Bruno



From MAILER-DAEMON Sun Apr 29 19:16:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOdLh-0004Ir-Ia
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 19:16:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57016)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOdLd-0004Gw-Cg
	for autoconf@gnu.org; Sun, 29 Apr 2012 19:16:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bruno@clisp.org>) id 1SOdLb-00078A-TZ
	for autoconf@gnu.org; Sun, 29 Apr 2012 19:16:08 -0400
Received: from mo-p00-ob.rzone.de ([81.169.146.160]:60771)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bruno@clisp.org>)
	id 1SOdLY-00077q-WC; Sun, 29 Apr 2012 19:16:05 -0400
X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRbvY44zMkpA==
X-RZG-CLASS-ID: mo00
Received: from linuix.haible.de
	(dslb-088-068-070-142.pools.arcor-ip.net [88.68.70.142])
	by smtp.strato.de (jorabe mo64) (RZmta 28.14 DYNA|AUTH)
	with ESMTPA id t00eb1o3TL3Q6Q ; Mon, 30 Apr 2012 00:30:57 +0200 (CEST)
From: Bruno Haible <bruno@clisp.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Bcc: bruno@haible.de
Subject: Re: AC_C_NORETURN macro?
Date: Mon, 30 Apr 2012 00:31:15 +0200
Message-ID: <1625449.2YbS4inXIX@linuix>
User-Agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )
In-Reply-To: <4F9D72D2.8040300@cs.ucla.edu>
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<1455312.oqp52tTLhT@linuix> <4F9D72D2.8040300@cs.ucla.edu>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 81.169.146.160
Cc: Vincent Lefevre <vincent@vinc17.net>, autoconf@gnu.org, bug-gnulib@gnu.org,
	Eric Blake <eblake@redhat.com>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 23:16:12 -0000

Hi Paul,

> > The reason why we do this with explicit #ifs that test for a compiler
> > brand, not in an "Autoconfish way", is that we use the result in .h
> > files that should be installable
> 
> That makes sense for the definition of _Noreturn in
> build-aux/snippet/_Noreturn.h, since that file is
> copied into installable .h files.  But it makes less
> sense for the common Autoconf situation where _Noreturn
> is defined in <config.h>; such definitions are not intended
> to be copied into installable .h files, and it might make
> sense for Autoconf to support that.

Currently gnulib covers both use-cases well:
  - use of _Noreturn in source files of the same package that don't
    include <stdnoreturn.h>,
  - use of 'noreturn' in installable .h files.
This is because we put the same snippet both into m4/gnulib-common.m4
(from where it goes to config.h) and into a build-aux/snippets/ file
(from where it gets copied into the installable .h file).

What kind of service from Autoconf, do you imagine, could help or simplify
this?

Bruno



From MAILER-DAEMON Sun Apr 29 19:26:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOdW7-0004wB-QY
	for mharc-autoconf@gnu.org; Sun, 29 Apr 2012 19:26:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52470)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOdW5-0004v3-9B
	for autoconf@gnu.org; Sun, 29 Apr 2012 19:26:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1SOdW3-0001r5-LO
	for autoconf@gnu.org; Sun, 29 Apr 2012 19:26:56 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:58034)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>)
	id 1SOdW3-0001qu-FY; Sun, 29 Apr 2012 19:26:55 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id 2E8E639E800D;
	Sun, 29 Apr 2012 16:26:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id WGxKJYxJoNLr; Sun, 29 Apr 2012 16:26:52 -0700 (PDT)
Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net
	[71.189.109.235])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 898C039E8006;
	Sun, 29 Apr 2012 16:26:52 -0700 (PDT)
Message-ID: <4F9DCE45.9060102@cs.ucla.edu>
Date: Sun, 29 Apr 2012 16:27:01 -0700
From: Paul Eggert <eggert@cs.ucla.edu>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120411 Thunderbird/11.0.1
MIME-Version: 1.0
To: Bruno Haible <bruno@clisp.org>
Subject: Re: AC_C_NORETURN macro?
References: <20120425154055.GA11348@ypig.lip.ens-lyon.fr>
	<1455312.oqp52tTLhT@linuix> <4F9D72D2.8040300@cs.ucla.edu>
	<1625449.2YbS4inXIX@linuix>
In-Reply-To: <1625449.2YbS4inXIX@linuix>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 131.179.128.62
Cc: bug-gnulib@gnu.org, autoconf@gnu.org, Vincent Lefevre <vincent@vinc17.net>,
	Eric Blake <eblake@redhat.com>
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Apr 2012 23:26:58 -0000

On 04/29/2012 03:31 PM, Bruno Haible wrote:
> What kind of service from Autoconf, do you imagine, could help or simplify
> this?

I was thinking of the case where a package uses Autoconf but not gnulib.
(Sorry, I don't have a solution for this problem, but I expect it is
a problem.)


