From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: configure's dependency on pkg-config Date: Sat, 12 Nov 2011 23:33:18 +0100 Message-ID: <87boshgedt.fsf@escher.home> References: <87pqgybgx8.fsf@escher.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1321137218 12092 80.91.229.12 (12 Nov 2011 22:33:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 22:33:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jan =?utf-8?Q?Dj=C3=A4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 12 23:33:31 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RPM8f-0001bo-Qg for ged-emacs-devel@m.gmane.org; Sat, 12 Nov 2011 23:33:29 +0100 Original-Received: from localhost ([::1]:38343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPM8e-0004gb-V0 for ged-emacs-devel@m.gmane.org; Sat, 12 Nov 2011 17:33:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPM8c-0004gW-Sw for emacs-devel@gnu.org; Sat, 12 Nov 2011 17:33:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPM8b-0004JD-M5 for emacs-devel@gnu.org; Sat, 12 Nov 2011 17:33:26 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:38110) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RPM8b-0004J3-9I for emacs-devel@gnu.org; Sat, 12 Nov 2011 17:33:25 -0500 Original-Received: (qmail invoked by alias); 12 Nov 2011 22:33:22 -0000 Original-Received: from i59F55081.versanet.de (EHLO escher.home) [89.245.80.129] by mail.gmx.net (mp018) with SMTP; 12 Nov 2011 23:33:22 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/F4xpmOYfFy2PtxG1STskPx8GRs5JBPWiYxcvN5u VUkSgeYWQMSXsX Original-Received: by escher.home (Postfix, from userid 1000) id 365FA224D0; Sat, 12 Nov 2011 23:33:20 +0100 (CET) In-Reply-To: ("Jan =?utf-8?Q?Dj=C3=A4rv=22's?= message of "Sat, 12 Nov 2011 15:13:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146012 Archived-At: On Sat, 12 Nov 2011 15:13:49 +0100 Jan Dj=C3=A4rv wrot= e: > Hi. > > 11 nov 2011 kl. 20:25 skrev Stephen Berman: [...] >> Is there a better way to override configure's dependency on pkg-config >> for libraries such as libxml2, so that it would suffice to pass the >> standard variable CPPFLAGS, LDFLAGS and LIBS? Or if there isn't, should >> there be? > > I would assume libxml2 installs its .pc-file in /usr/lib/pkgconfig (or > similar) when you install it, so all the info is there. So why not just > install pkg-config? It is a very small package. No doubt pkg-config is convenient and of course I could install it; but my experience shows that even though it's not necessary, you can't avoid it by setting the recommended variables at configure time. So this seems to be at least a doc bug in INSTALL, which should explicitly say that pkg-config is required in order for Emacs to use certain libraries and also list all of these libraries. The alternative would be to patch configure (or rather configure.in) to allow setting the standard configure time variables to override using pkg-config. This seems better to me in principle (though it might be judged not to be worth the effort); are there any platforms Emacs runs on that cannot use pkg-config but on which Emacs could use libxml2 etc.? Steve Berman