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: configure's dependency on pkg-config Date: Fri, 11 Nov 2011 20:25:07 +0100 Message-ID: <87pqgybgx8.fsf@escher.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321039535 2503 80.91.229.12 (11 Nov 2011 19:25:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 19:25:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 11 20:25: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 1ROwjB-0005DA-8T for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2011 20:25:29 +0100 Original-Received: from localhost ([::1]:44291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROwjA-0007aJ-Pb for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2011 14:25:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROwj8-0007a2-2Q for emacs-devel@gnu.org; Fri, 11 Nov 2011 14:25:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROwj7-0004Nq-14 for emacs-devel@gnu.org; Fri, 11 Nov 2011 14:25:26 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:49321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROwj6-0004Nf-P2 for emacs-devel@gnu.org; Fri, 11 Nov 2011 14:25:24 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ROwj4-00058v-JE for emacs-devel@gnu.org; Fri, 11 Nov 2011 20:25:22 +0100 Original-Received: from i59f548ee.versanet.de ([89.245.72.238]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Nov 2011 20:25:22 +0100 Original-Received: from stephen.berman by i59f548ee.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Nov 2011 20:25:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: i59f548ee.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:145989 Archived-At: I built a GNU/Linux system from sources (Linux From Scratch) and then built the current Emacs pretest on it with configure && make, but was surprised that configure failed to use libxml2, although I had built and installed the libxml2 files in the standard locations. I then reconfigured Emacs, passing the libxml2 requirements to configure via CPPFLAGS, LDFLAGS and LIBS, but it still failed to use libxml2. Then I looked at configure and found the reason: if test "$PKG_CONFIG" = "no" ; then HAVE_LIBXML2=no I don't have pkg-config installed on this system. I tried passing PKG_CONFIG=1 to configure, but that didn't help, because if that variable is set, configure looks for the pkg-config executable. Finally, I simply hacked out the pkg-config bits around the libxml2 tests in configure and passed the requirements via LIBXML2_CFLAGS and LIBXML2_LIBS, and this worked. 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? Steve Berman