summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 17:41:56 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 17:41:56 +0000
commit2dce220bb53b5dae53a273ec72dc640f1058c712 (patch)
tree9361f4ce7f3e276dd83e608f124f98b10889036c /configure
parenta1824e2fe8841516286cd20d8b749ebdf68479cb (diff)
downloadgcc-2dce220bb53b5dae53a273ec72dc640f1058c712.tar.gz
* configure (topsrcdir): Don't use dirname.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 553a089af5e..9de3cc4eb12 100755
--- a/configure
+++ b/configure
@@ -86,7 +86,7 @@ subdirs=
target_alias=NOTARGET
target_makefile_frag=
undefs=NOUNDEFS
-version="$Revision: 1.24 $"
+version="$Revision: 1.26 $"
x11=default
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
@@ -518,7 +518,8 @@ fi
configsub=`echo ${progname} | sed 's/configure$/config.sub/'`
moveifchange=`echo ${progname} | sed 's/configure$/move-if-change/'`
-topsrcdir=`cd \`dirname ${progname}\`; pwd`
+## the sed command below emulates the dirname command
+topsrcdir=`cd \`echo ${progname} | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'\`; pwd`
# this is a hack. sun4 must always be a valid host alias or this will fail.