From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13973 invoked by alias); 4 Mar 2010 21:45:19 -0000 Received: (qmail 13958 invoked by uid 22791); 4 Mar 2010 21:45:16 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Mar 2010 21:45:12 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o24Lj9JZ018234 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 4 Mar 2010 16:45:10 -0500 Received: from ns3.rdu.redhat.com ([10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o24Lj99x004017; Thu, 4 Mar 2010 16:45:09 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o24Lj8UR003793; Thu, 4 Mar 2010 16:45:08 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id D48203798F1; Thu, 4 Mar 2010 14:45:07 -0700 (MST) From: Tom Tromey To: Chris Sutcliffe Cc: gdb@sourceware.org Subject: Re: configure: error: no usable python found References: <4B8E49EC.2080501@technosis.de> <20100303115437.GD15364@adacore.com> <2bf229d31003030453k302064caq29a75976637203ba@mail.gmail.com> <2bf229d31003030825k4bb08a75h582b0da7a2d72637@mail.gmail.com> <2bf229d31003030854v7418caa8qd1cdaa2e0eef37c4@mail.gmail.com> <2bf229d31003031823t2825f09fu62340b70c22bdcba@mail.gmail.com> Reply-To: tromey@redhat.com Date: Thu, 04 Mar 2010 21:45:00 -0000 In-Reply-To: <2bf229d31003031823t2825f09fu62340b70c22bdcba@mail.gmail.com> (Chris Sutcliffe's message of "Wed, 3 Mar 2010 21:23:28 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00033.txt.bz2 >>>>> "Chris" == Chris Sutcliffe writes: Chris> I've hacked the configure script to allow for Python support under Chris> Windows, but the source itself is also going to need some fixing up. Chris> what I'm unclear on is how to make (line 9470): Chris> version=python2.6 Chris> conditional on Windows to be: Chris> version=python26 You'll want to change configure.ac, not configure. One idea would be to change AC_TRY_LIBPYTHON to try both forms, by removing the "."; or look at $host_os. There are other examples of the latter in the code. Chris> and similarly (line 9456): Chris> python_libs="-L${with_python}/lib" Chris> to conditionally be: Chris> python_libs="-L${with_python}/libs" Chris> on Windows. Examining $host_os seems reasonable here. Tom