From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29707 invoked by alias); 20 Dec 2012 16:13:27 -0000 Received: (qmail 29681 invoked by uid 22791); 20 Dec 2012 16:13:24 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from youngberry.canonical.com (HELO youngberry.canonical.com) (91.189.89.112) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Dec 2012 16:13:19 +0000 Received: from dslb-088-073-099-101.pools.arcor-ip.net ([88.73.99.101] helo=[192.168.42.216]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1TlikH-0000I6-QZ; Thu, 20 Dec 2012 16:13:17 +0000 Message-ID: <50D3391A.4000506@ubuntu.com> Date: Thu, 20 Dec 2012 16:13:00 -0000 From: Matthias Klose User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Joel Brobecker CC: gdb-patches@sourceware.org Subject: Re: [patch] use python-config if available References: <50D331A6.5070102@ubuntu.com> <50D3321C.5030902@ubuntu.com> <20121220155906.GB5370@adacore.com> In-Reply-To: <20121220155906.GB5370@adacore.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00754.txt.bz2 Am 20.12.2012 16:59, schrieb Joel Brobecker: >>> This patch does use the python-config, which comes shipped with the python >>> interpreter, and falls back to the internal copy of python-config.py. >>> AC_CHECK_TOOL is used to find a possible python-config for the host. >>> >>> Tested with 7.5 with a native and a cross build. > > Can you tell us what problem you are trying to solve? cross building in a multiarch environment, where the host libraries are installed, and a -python-config is shipped as part of the system python. This -python-config is a backport of http://bugs.python.org/issue16235 (not yet applied upstream). > Your patch would most certainly break the build in my case, as > I rely on some local changes made to our copy of python-config.py, > which I cannot contribute because they break some setups different > than ours. so what is your recommendation? configure.ac reads: dnl /path/to/python/executable - dnl Run python-config.py with this version of python to fetch the dnl compilation parameters. dnl NOTE: This needn't be the real python executable. dnl In a cross-compilation scenario (build != host), this could be dnl a shell script that provides what python-config.py provides for dnl --ldflags, --includes, --exec-prefix. do I really have to provide a shell script, which shifts the first parameter, and then calls the real python-config? Matthias