Kaydet (Commit) bcd64a3f authored tarafından Georg Brandl's avatar Georg Brandl

#1676135: remove trailing slashes from --prefix argument.

üst 69036218
#! /bin/sh #! /bin/sh
# From configure.in Revision: 70479 . # From configure.in Revision: 70730 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7. # Generated by GNU Autoconf 2.61 for python 2.7.
# #
...@@ -1807,6 +1807,11 @@ ac_config_headers="$ac_config_headers pyconfig.h" ...@@ -1807,6 +1807,11 @@ ac_config_headers="$ac_config_headers pyconfig.h"
if test "$prefix" != "/"; then
prefix=`echo "$prefix" | sed -e 's/\/$//g'`
fi
......
...@@ -12,6 +12,15 @@ AC_INIT(python, PYTHON_VERSION, http://www.python.org/python-bugs) ...@@ -12,6 +12,15 @@ AC_INIT(python, PYTHON_VERSION, http://www.python.org/python-bugs)
AC_CONFIG_SRCDIR([Include/object.h]) AC_CONFIG_SRCDIR([Include/object.h])
AC_CONFIG_HEADER(pyconfig.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 This is for stuff that absolutely must end up in pyconfig.h.
dnl Please use pyport.h instead, if possible. dnl Please use pyport.h instead, if possible.
AH_TOP([ AH_TOP([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment