]> granicus.if.org Git - python/commitdiff
#1676135: remove trailing slashes from --prefix argument.
authorGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 21:45:18 +0000 (21:45 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 21:45:18 +0000 (21:45 +0000)
configure
configure.in

index 328629d3511257b2833a91bab46d1a5b89a86fbd..82542b3b2a7b0fb26cfa03ecd17f7787f3fdc004 100755 (executable)
--- a/configure
+++ b/configure
@@ -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 @@ ac_config_headers="$ac_config_headers pyconfig.h"
 
 
 
+if test "$prefix" != "/"; then
+    prefix=`echo "$prefix" | sed -e 's/\/$//g'`
+fi
+
+
 
 
 
index acfec69dd75cfa8d8e7b78315eb72b43b64be63f..69ae036dde22f2f100751cdd6f40b72b4557f7d0 100644 (file)
@@ -12,6 +12,15 @@ AC_INIT(python, PYTHON_VERSION, http://www.python.org/python-bugs)
 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([