diff options
author | Jeff Law <law@redhat.com> | 2000-07-23 17:42:34 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2000-07-23 17:42:34 +0000 |
commit | 25c6c1126869b8a7070f37b8a0f8a1fa5a3ade47 (patch) | |
tree | c7547b751eb959290979e159e51f5a51910c18ef | |
parent | 7d3ffcaf8540b6a29edc9d24ea1fe3bddbd96004 (diff) | |
download | binutils-gdb-25c6c1126869b8a7070f37b8a0f8a1fa5a3ade47.tar.gz |
* configure (topsrcdir): Don't use dirname.
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | configure | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 080ed2d2d27..0e57d7fbefe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG> + + * configure (topsrcdir): Don't use dirname. + 2000-07-20 Jason Merrill <jason@redhat.com> * configure.in: Remove all references to libg++ and librx. diff --git a/configure b/configure index 5bb72227d9f..dfc176263cf 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. |