aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-07-23 17:42:34 +0000
committerJeff Law <law@redhat.com>2000-07-23 17:42:34 +0000
commit25c6c1126869b8a7070f37b8a0f8a1fa5a3ade47 (patch)
treec7547b751eb959290979e159e51f5a51910c18ef /configure
parent7d3ffcaf8540b6a29edc9d24ea1fe3bddbd96004 (diff)
downloadgdb-25c6c1126869b8a7070f37b8a0f8a1fa5a3ade47.zip
gdb-25c6c1126869b8a7070f37b8a0f8a1fa5a3ade47.tar.gz
gdb-25c6c1126869b8a7070f37b8a0f8a1fa5a3ade47.tar.bz2
* configure (topsrcdir): Don't use dirname.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 5bb7222..dfc1762 100755
--- a/configure
+++ b/configure
@@ -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.