[Python-checkins] r70903 - in python/trunk: configure configure.in
georg.brandl
python-checkins at python.org
Tue Mar 31 23:45:19 CEST 2009
Author: georg.brandl
Date: Tue Mar 31 23:45:18 2009
New Revision: 70903
Log:
#1676135: remove trailing slashes from --prefix argument.
Modified:
python/trunk/configure
python/trunk/configure.in
Modified: python/trunk/configure
==============================================================================
--- python/trunk/configure (original)
+++ python/trunk/configure Tue Mar 31 23:45:18 2009
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 70479 .
+# From configure.in Revision: 70730 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7.
#
@@ -1807,6 +1807,11 @@
+if test "$prefix" != "/"; then
+ prefix=`echo "$prefix" | sed -e 's/\/$//g'`
+fi
+
+
Modified: python/trunk/configure.in
==============================================================================
--- python/trunk/configure.in (original)
+++ python/trunk/configure.in Tue Mar 31 23:45:18 2009
@@ -12,6 +12,15 @@
AC_CONFIG_SRCDIR([Include/object.h])
AC_CONFIG_HEADER(pyconfig.h)
+dnl Ensure that if prefix is specified, it does not end in a slash. If
+dnl it does, we get path names containing '//' which is both ugly and
+dnl can cause trouble.
+
+dnl Last slash shouldn't be stripped if prefix=/
+if test "$prefix" != "/"; then
+ prefix=`echo "$prefix" | sed -e 's/\/$//g'`
+fi
+
dnl This is for stuff that absolutely must end up in pyconfig.h.
dnl Please use pyport.h instead, if possible.
AH_TOP([
More information about the Python-checkins
mailing list