Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fknrr-0005k1-2g for pgsql-bugs@arkaria.postgresql.org; Wed, 01 Aug 2018 09:56:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fknrp-0008G9-8x for pgsql-bugs@arkaria.postgresql.org; Wed, 01 Aug 2018 09:56:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fknro-0008DO-S7 for pgsql-bugs@lists.postgresql.org; Wed, 01 Aug 2018 09:56:29 +0000 Received: from frontdoor.pr.hu ([2a02:808:1:101:250:56ff:fe8e:136b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fknrl-00014c-Ap for pgsql-bugs@lists.postgresql.org; Wed, 01 Aug 2018 09:56:27 +0000 Received: from [2a02:808:3:101::5] (helo=mail.pr.hu) by frontdoor.pr.hu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fknrZ-0000qI-LC; Wed, 01 Aug 2018 11:56:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pr.hu; s=pr20170203; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=w3IJjRNciyiHeUC4RJ5BWKOFrrGaCbmatA+vBqGZqU4=; b=V5nSUrmKFGIitMKBdhbozgiCK5 4eb2bI1wIjPfo9kdMF95ImHypOwe7c/q+5nvk8WXaYWUAmONlltXn/Fc2aGcsbS4yHH8arWrY2fuW MEg9EdQjIKHH10O+VijZwuMgw7jNBbDq0dqFjjrnoHsFS+46Npvdhg977t7p7IzaSlQu/UGoMCGwa 5rQ8hz5hmzfPsARP59bYFNYdJIGvILbR650hbmJi460BptUsMV+GXgysmICItIIcqVD1KTSc+UM24 ilpGqEoDIFdLBbqNt7H61W3Hhv0JOdhgep4vpYnFlv2yiGlKYzndSuGXXZrNT+lMSSC1LbUV9RaYt m1Ci6JJw==; Received: from host-87-242-51-253.prtelecom.hu ([87.242.51.253] helo=localhost.localdomain) by mail.pr.hu with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1fknrV-00047n-Hb; Wed, 01 Aug 2018 11:56:11 +0200 Subject: Re: BUG #15306: Use pkg-config for searching libxml2 header To: Tom Lane , dingxiangfei2009@gmail.com Cc: pgsql-bugs@lists.postgresql.org References: <153300834113.1397.11820371991264228844@wrigleys.postgresql.org> <3694.1533062014@sss.pgh.pa.us> From: =?UTF-8?B?QsO2c3rDtnJtw6lueWkgWm9sdMOhbg==?= Message-ID: <7e67be73-3c52-bc29-133f-64da148e0261@pr.hu> Date: Wed, 1 Aug 2018 11:56:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <3694.1533062014@sss.pgh.pa.us> Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Scan-Signature: 7572fbe1482f51d378d5cb517c4344f1 X-Spam-Tracer: backend.mail.pr.hu 0.0 20180801095611Z List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 2018-07-31 20:33 keltezéssel, Tom Lane írta: > =?utf-8?q?PG_Bug_reporting_form?= writes: >> This is an improvement suggestion. In the configure script, >> https://github.com/postgres/postgres/blob/master/configure.in#L896 >> this part uses `xml2-config` program to find the `libxml2` headers. > > Right ... > >> It would be more appropriate to use pkg-config program to search `libxml2` >> headers. > > Why? Under what circumstances would xml2-config not be present > (assuming that libxml2 is) or give a less desirable answer than > pkg-config? The Yocto cross-compiler framework (since Yocto 2.2 IIRC) does not allow the "binconfig" scripts for XML2 and GD and for some other libraries. The pkg-config scripts are not just preferred but mandatory. > What would you have us do on platforms lacking pkg-config? That should be kept as a fallback in PKG_CHECK_MODULES(). Best regards, Zoltán Böszörményi > > regards, tom lane > >