summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorDavid J. MacKenzie <djm@gnu.org>1994-09-21 17:02:10 +0000
committerDavid J. MacKenzie <djm@gnu.org>1994-09-21 17:02:10 +0000
commitaccf89257c772b46b51eda24dbbd3b03ef307912 (patch)
treec79fa69fa79d8ccc025ff6b352699888eae57a80 /configure1.in
parent5f5e62e075c0b61ef464e562261451f148163f82 (diff)
downloademacs-accf89257c772b46b51eda24dbbd3b03ef307912.tar.gz
remove trailing slashes from srcdir
Diffstat (limited to 'configure1.in')
-rwxr-xr-xconfigure1.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure1.in b/configure1.in
index 53c798a0e9d..5d36e7c47b5 100755
--- a/configure1.in
+++ b/configure1.in
@@ -421,6 +421,9 @@ case "${srcdir}" in
* ) srcdir="`(cd ${srcdir}; pwd)`" ;;
esac
+### Remove trailing slashes.
+srcdir=`echo "${srcdir}" | sed 's,\([^/]\)/*$,\1,'`
+
#### Check if the source directory already has a configured system in it.
if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
&& [ -f "${srcdir}/src/config.h" ] ; then