From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18884 invoked by alias); 27 Jan 2012 18:27:19 -0000 Received: (qmail 18874 invoked by uid 22791); 27 Jan 2012 18:27:18 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Jan 2012 18:27:00 +0000 Received: by vcbfl11 with SMTP id fl11so1690399vcb.0 for ; Fri, 27 Jan 2012 10:26:59 -0800 (PST) Received: by 10.220.107.79 with SMTP id a15mr4112589vcp.61.1327688819676; Fri, 27 Jan 2012 10:26:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.107.79 with SMTP id a15mr4112582vcp.61.1327688819559; Fri, 27 Jan 2012 10:26:59 -0800 (PST) Received: by 10.220.229.1 with HTTP; Fri, 27 Jan 2012 10:26:59 -0800 (PST) In-Reply-To: <20120127102813.GZ31383@adacore.com> References: <20120127052515.GW31383@adacore.com> <83fwf1zdq3.fsf@gnu.org> <20120127102813.GZ31383@adacore.com> Date: Fri, 27 Jan 2012 19:01:00 -0000 Message-ID: Subject: Re: GDB 7.4 --with-python doesn't like d:/foo/bar From: Doug Evans To: Joel Brobecker Cc: Eli Zaretskii , gdb-patches@sourceware.org X-System-Of-Record: true Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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-01/txt/msg00956.txt.bz2 On Fri, Jan 27, 2012 at 2:28 AM, Joel Brobecker wro= te: >> This is a standard way of Autoconf's catering to DOS and Windows >> platforms. =A0You can see it at work elsewhere in the configure script, >> because it's part of AC_PROG_PATH. =A0In fact, you can find it just a >> few lines below the test that failed. > > You're right. I wasn't thinking clearly in the morning. For some > reason, I was seeing both expressions as equivalent, when clearly > they are not! So your proposed change is on the table instead. Hi. I copied over the same test that autoconf uses and committed that. [ref: autoconf 2.64, programs.m4, _AC_PATH_PROG] Tested with an absolute path on amd64-linux. 2012-01-27 Doug Evans * configure.ac (with_python): Fix absolute path handling for win32. * configure: Regenerate. Index: configure =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/configure,v retrieving revision 1.341 diff -u -p -r1.341 configure --- configure 20 Jan 2012 09:47:32 -0000 1.341 +++ configure 27 Jan 2012 18:20:21 -0000 @@ -10814,7 +10814,7 @@ $as_echo "$as_me: WARNING: python suppor have_libpython=3Dno else case "${with_python}" in - /*) + [\\/]* | ?:[\\/]*) if test -d ${with_python}; then # Assume the python binary is ${with_python}/bin/python. python_prog=3D"${with_python}/bin/python" Index: configure.ac =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/configure.ac,v retrieving revision 1.156 diff -u -p -r1.156 configure.ac --- configure.ac 20 Jan 2012 09:47:32 -0000 1.156 +++ configure.ac 27 Jan 2012 18:20:21 -0000 @@ -734,7 +734,7 @@ if test "${with_python}" =3D no; then have_libpython=3Dno else case "${with_python}" in - /*) + [[\\/]]* | ?:[[\\/]]*) if test -d ${with_python}; then # Assume the python binary is ${with_python}/bin/python. python_prog=3D"${with_python}/bin/python"